I have a LotusScript agent which runs against selected documents in a view. The following lines execute after the documents have been modified and saved:
call view.Refresh
call workspace.ViewRefresh
After the agent runs, computed fields on any document do not show updated values assigned by the agent unless the document is edited and refreshed using the F9 key. The view in which the agent runs is set to refresh on ‘Auto,after first use’. Is there any reason why the ViewRefresh method is not refreshing the computed fields while the agent runs?
If you’re going to use notesdoc.ComputeWithForm, be sure to set the raiseError parameter to True, not False. If you don’t, any errors in your form calculations will generate error codes in your fields, which will prevent proper execution of the ComputeWithForm. You can really trash your data this way.
Subject: RE: Not anymore. Try it. Create a form with 1 field Default Value @Error, Design Preview in Notes.
Fine. I still think it’s a terrible idea to architect a solution that stores bad data in documents. We can debate the effects of this until the cows come home. But NotesDocument.ComputeWithForm (true, false) is a line of Lotuscript that causes me to delete entire applications and salt the ground on which they were grown until those developers learn how to debug software.