Refreshing All Documents

Depending on database design changes, you may need to refresh all documents stored in the database for the change to be applied. For example, say a new computed field is added to the form. For the change to be visible, each document in the database needs to be opened and saved. This routine illustrates how to create an agent that automatically refreshes all documents in the database.

How It Works

Using the ToolsRefreshAllDocs command, every document in the database can be refreshed and saved.

Implementation

To implement this solution, perform the following steps.

Step 1.

From the Domino Designer, open the database and select the Create > Design > Agent menu options. Name the agent Refresh all data (see Figure 18.13). Because this agent will affect every document in the database, consider changing the agent from Shared to Private. When this option is selected, only the author of the agent will have the ability to see the agent from the Actions menu.

Figure 18.13. Property settings for a private agent

Step 2.

Change the Language Selector from Simple action to Formula and insert the following in the Programmers pane.

@Command([ToolsRefreshAllDocs]); @All

Категории

© amp.flylib.com,