[PUB] How to dynamically pass multiple xml file input for URI for Report Generation
Accepted answer
Use a template variable (_count) with default value = 0. After adding the xml file paths to the array, you can iterate over that array using an Iteration element in the template.
For the "Do while condition" (property) of Iteration element, you can set _count1 < _xmlArray.length.
Inside the array element, you can use a Data Source Configuration element by setting its URI to _xmlArray[_count1]. You should increment _count (_count = _count*1 + 1) within the Iteration element.