title: Workspace.ComposeDocument and QueryOpen and PostOpen events
body: <p>I'm using the following code to create a document in an action on another form:</p>
  
  <pre><code>Sub Click(Source As Button)
      Dim ws As New NotesUIWorkspace
      Dim NewItemDoc As NotesUIDocument
      Dim ParentUNID As String
  
      ParentUNID = ws.CurrentDocument.Document.UNID(0)
  
      Set NewItemDoc = ws.ComposeDocument("","","Item")
  
      Call NewItemDoc.Document.ReplaceItemValue("ParentUNID", ParentUNID)
  End Sub
  </code></pre>
  
  <p>I have code in the <code>Item</code> form's <code>QueryOpen</code> and <code>PostOpen</code> event handlers, however they are not running at all. When i used the <code>@Command([Compose])</code> there were called.</p>
  
  <p>When debugging lotusscript it doesn't step through those event handlers.</p>
  
  <p>How do i get the equivalent in lotusscript?
  i.e. How do i get the <code>QueryOpen</code> and <code>PostOpen</code> events to trigger?</p>