parent doesn't know response, but response knows its parent
Posted on 2001-07-03
Form A and his response form B.
We create a document A' with form A. On this form A there is a button to create a response document with form B, this response document we call B. the code for this action is in brief
where ws is the current workspace
In a view with selection @All I see them both as main and response ( OK so far).
Then later I trigger another action button on Form(document) A. In this action I want to do things with the response form. The LS - code looks like this :
Dim ws As New NotesUIWorkspace
Dim uidoc As NotesUIDocument
Dim newdoc As NotesUIDocument
Dim responses As Notesdocumentcollection
Dim numberresponses As Integer
Set uidoc = ws.currentdocument
Set responses = uidoc.document.responses
numberresponses = responses.count
The messagebox returns me 0 for the number of responses to document A But I know there has to be one.
Furthermore the $Ref field of the responsedocument B gives me the ID of maindocument A.
So the response knows its parent, but the parent doesn't know its response.
What can I do. I already thied the makeresponse method of NotesDocument to explicite link main and response but still the same problem.