LOOP in developer

Can we use substitution variable in a LOOP statement on the input Array property.

If No then is there an alternative to loop over a document list that name of which we can only determine during run time after convertToValues has run

Pass the dynamically available documentList to pub.document:documentToXMLValues and generate the XMLValues.
Using pub.string:replace, replace the name of the dynamic documentList to a fixed value in the above XML Values
Regenerate the Document using pub.document:XMLValuesToDocument

Then Loop through the fixed value. That should work fine.

Of course, LOOP does not have the functionality to loop over substituted variables.


Forgot to mention that this logic should work for any complicated structure, as long as the names do not collide.

Bhavani you are good man! Thanks very much

It was simple and great solution