Loop in selected documents from a view in formula

Hi,

We want to create a tool for our Notes Programmers that will save a lot of support time.

We already have a tool called Edit Field (took on the sandbox) that is very useful. It allows to edit whatever field in whatever database without opening the document by the note toolbar

This tool could be really much better if we could call it on several documents (loop).

We tried to loop in the code using @Command([NavNextSelected]) but the function @DocumentUniqueID always return the UNID of the first selected document.

Furthermore, we can’t run an agent because we don’t want modify the design elements from all our databases.

Because this tool reside on the toolbar of notes, we must do it in formula.

Does someone know a way to loop over the selected documents in a view in formula language??

Thanks in advance,

Philippe

Subject: Loop in selected documents from a view in formula

If you create an agent, the agent gives the option to act on selected documents only. Then you can call the agent from your action button using the @command([toolsrunmacro]; “agentname”).

This has worked for me in a number of context.

HTH

Subject: RE: Loop in selected documents from a view in formula

Hi Jon,

Thanks for your post, this solution works well, the only disavantage is that you have to change de desing (adding the agent) to makes code works. I’m wandering if a solution really exist without doing that…