also if computerd
How to refresh computed fields on a form, quickly?
Last Modified: Wed, Jan 13 1999
If you frequently change the design of a form, especially making a few fields computed from editable, you need to know this (maybe you know this already!).
Details
Computed fields on a form won't get computed unless you open the document in the UI and refresh it. If you have changed the design of a field from editable to computed and if you had a lot of documents already in the database, it is a nightmare to open each document, edit it and save it. Instead there is a short-cut to recalculate the computed fields. Here is how:
Create an agent which would run Manually from the Actions Menu / Run Once. In the formula for the agent, simply use the following @functions:
@Command([ToolsRefreshAllD
or
@Command([ToolsRefreshSele
When this agent is run from the view, the former @Command will refresh all documents in the view and the latter will refresh only the selected documents in the view.
Remarks
Be careful doing this, because many times you might have a computed field which stores the last modified date and user name, which may get recalculated to your name and the current time!! The workaround in this case is to write an agent which will only update the fields that you need to update. (Even in this case, you can't prevent Notes from writing the internal field $UpdatedBy ;-))
Main Topics
Browse All Topics





by: mbonaciPosted on 2009-08-18 at 06:14:29ID: 25122808
Have you tried something like this:
Select allOpen in new window