Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

[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

0 votes


Accepted answer

Permanent link

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.

Chandan M B selected this answer as the correct answer

1 vote

Your answer

Register or log in to post 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,938

Question asked: Jul 13 '21, 7:54 a.m.

Question was seen: 525 times

Last updated: Jul 13 '21, 2:19 p.m.

Confirmation Cancel Confirm