Updating a field on a background document through lotusscript

Hi

I use lotusscript to get a handle to a background document. On the document there is a field of which the value is used in a second field for a Formula dblookup. Whenever I change the value of the first field the second field is not updated untill I open the document and do a manually refresh or save.

How can I update this second field in lotusscript without manually opening the document?

Regards

Subject: Updating a field on a background document through lotusscript

There are several ways: 1) Use “ComputeWithForm” method in the NotesDocument class. It will recalculate all computed fields.

  1. Do the lookup through lotusscript; open the view, use GetDocumentByKey etc…

  2. Use Evaluate to performe @DbLookup.

By far, the first solution is easiest to do, but will also take the longest time to perform if You have a lot of computed fields.

hth

Subject: Thank you for the yip. It worls!!