< Back

Document Subject: Quick way to refresh all or selected documents in a view
Hint Short Cut: Add this to your code & documentation to help you find this page.
http://#QuickRefreshDocs or http://A555F9/nn.nsf/ByAlias/QuickRefreshDocs

Sometimes you need to refresh all computed values of documents in a view, for example an Authors field. You could write lotusscript code that does a Computewithform, but here is a quicker way.




There is a handy command called ToolsRefreshAllDocs. (also ToolsRefreshSelectedDocs ).

In the desired view, create an action called "Refresh Docs" or whatever.

In the button put in:

@command([ToolsRefreshAllDocs])

Save the view, open it in the browser and press it and you are off.

Remove the button or hide it for all except anyone with the Developer role and you are sorted.

 

Example use:

If you needed to add allmembers of a new canonical group in to the Authors field, say */GuestCom, all you need to do is add a new authors field "AuthorsGuestCom" to the form with the value "*/GuestCom" and then save the form and add the code in to the view as specified earlier. Doddle.