Question

I create a new computed field called txt_new in a form, which has a default value based on some calculations between other fields.

I also create a new column in my view named vwMain which has the default value: txt_new.

The problem is that the column is empty considering the fact that the .nsf has already >10k documents. Is there any posibility to update/(re)save the documents in a safe method ?

Thanks for your time!

Was it helpful?

Solution

Write an agent which contains the default formula of your field txt_new and execute agent for all 10K documents. That should be fast enough or to be more exactly: there is no faster way.

Example for agent:

SELECT txt_new = "";
FIELD txt_new := ... here is your default formula code ...

OTHER TIPS

You can create an agent to run against all the documents in the view/selected documents only using

@Command([ToolsRefreshAllDocs]) 
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top