[PUB] How to dynamically pass multiple xml file input for URI for Report Generation
![]() Hello All,
I have stored multiple path to xml response files in the machine. I will add it to an array.
I need to iterate the array and pass it each xml path to URI dynamically to print the contents. Could you please help ?
Regards,
Chandan
|
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.
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.
Chandan M B selected this answer as the correct answer
|
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.