Anyone know if you can use the new looping functions on selected docs in a view ? How would you write the condition statement ?
Subject: @For or @While on selected documents ?
Not using @For or @While. The way to loop thru selected documents in macro language, is to write an agent that runs on selected documents. You can run it with @Command([RunAgent]). If you need to provide inputs to the loop or accumulate a value, use a profile document or environment variable (note, however, the length restriction on environment variables).
Subject: @For or @While on selected documents ?
No – formulas still run on a once-per-document basis. That being said, you can use a picklist or an OKCancelListMult to get “key” handles for a number of documents, then loop through the docs (using the UNID if altering multiple fields). Still, it’s easier to get actual documents in LS if you need to do different things to different docs.