OK my last post didn’t get me any answers so I am going to try to rephrase the question.
I have a form (form A) with an embedded view. An action on this embedded view opens a document that is used to create a ‘ticket’ (form B). When the user saves this ‘ticket’ (form B), they are returned to the original form (form A).
The problem I am having is that there are fields on the form (form A) that need to be updated with the results of the data entered in the ‘ticket’ (form B).
These fields are dblookups to the values in the view which makes up the embedded view.
How can I get these fields to recalculate upon returning from the ‘ticket’ (form B)? Automatically refresh fields doesn’t do it. Is there a form action that I am not seeing that I can use to force a recalc?
the problem is that form “A” doesn’t know when form “B” did something, so you need to run code from form “B” to tell “A” that it should refresh.
look into notesUIWorkspace.ReloadWindow( ) and/or notesUIDocument.Refresh methods.
you could create a frameset “F” (with only one frame), which holds your form A.
Then, in the PostSave() event of form B, you set the target frame (via @SetTargetFrame( targetframe )) to “F” and then open or edit the doc again, which will re-calc the fields.
Mind going into a little more detail on either of these options? I am either missing something or I simply don’t understand how to use either of these functions.