Changing computed values in child documents automatically when the parent is changed
Posted on 2003-11-10
I've got a database in which I have documents, responses, and responses to responses (r2rs).
These response and r2r forms both have a field that is composed when the r or r2r is created from the value of this field, called "node", in the initial document.
I want to allow users to change the value of "node" and then the computed values in the children also changed automatically. I have the following code in the main document form:
Sub Postsave(Source As Notesuidocument)
If Not(Source.IsNewDoc) Then
Dim doc As NotesDocument
Dim dc As NotesDocumentCollection
Set doc = Source.Document
Set dc = doc.Responses
Call dc.StampAll("Node" , doc.Node(0))
This works fine for the response documents. The snag is, this doesn't do the trick for the r2rs. Notes help seems to suggest that it does deal with the r2rs. Any ideas why it doesn't for me?