Technote Number: 1098792
Problem:
This issue occurs only when all of the following are true:
- The response document's form is not set to be of the type 'Response'.
- The response document has been edited and saved (which given the above,
clears the $Ref field used to identify the response's parent document).
- The MakeResponse method is applied to the same parent and response document.
The issue does not occur if one uses the MakeResponse method to a make a
document a response to a different parent than previously applied.
This issue has been reported to Lotus Quality Engineering and has been
addressed in Notes 5.0.7. As a workaround for Notes 5.0.6a, where applicable,
set the response document's form Type property to be 'Response' rather than
'Document'.
Supporting Information:
The following steps recreate this issue:
1. Create an agent with the code included below. The agent should be designed
to act on 'Selected Documents'.
2. Create two documents.
3. Select the two documents and run the agent.
4. Edit and save the second document.
5. Select both documents and run the agent.
The agent will fail with the noted error when it executes the Save method.
Sub Initialize
Dim s As New notessession
Dim db As notesdatabase
Dim col As notesdocumentcollection
Dim pdoc As notesdocument
Dim cdoc As notesdocument
Set db=s.currentdatabase
Set col=db.unprocesseddocuments
Set pdoc=col.getfirstdocument
Set cdoc=col.getlastdocument
Call cdoc.makeresponse(pdoc)
Call cdoc.save(True, True)
End Sub
Related Documents:
How to Make a New or Existing Document a Response to Another Document via
LotusScript
Document #: 158717 More >
|  |
|
|
|
|