Hi everyone!
My problem is:
I try to write an agent to substitute one lotus-name with another (in the field of type ‘Names’ of some documents in db). The problem is that these documents have many computed fields, that depend on that ‘name’…
Is there any way to refresh a document from a agent? I could use @Command([ToolsRefreshAllDocs]), but I don’t want to refresh ALL documents - just some of them.
Thanks in advance,
Dmitry.
Subject: Refreshing a document from a back-end?..
ToolsRefreshSelectedDocs!!
Subject: Re:Re:Refreshing a document from a back-end?..
…still not the solution.
What if I pass through all docs in db, and choose which to recalculate programmatically?
Subject: RE: Re:Re:Refreshing a document from a back-end?..
Well ComputeWithForm property of notesdocument class will do that for u.

Subject: RE: Re:Re:Refreshing a document from a back-end?..
… But make sure you don’t have any computed fields who’s value is based on a “computed for display” field - otherwise it will fail.
ToolsRefreshSelectedDocs will work in the above situation because it has access to the UI, but when using NotesDocument.ComputeWithForm, even though the form is there, it fails to “see” the computed-for-display values.
Nicolas Abesdris
Quintessence e-solutions Inc.