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

How to iterate over search results?

How can we do that?

Using a simple starting query such as this:


<ram:search server="ramServer" id="environmentResults" query="type:(Environment)" />


I can see from the RAM Web Client, that I have 63 results.

How can I iterate through the returned seach results?

In essence, I'd like to be able to do something like this:


<ram:search server="ramServer" id="environmentResults" query="type:(Environment)" />
<for list="environmentResults" param="environment">
<sequential>
<echo>Env Name: ${environment.name}</echo>
</sequential>
</for>

0 votes



One answer

Permanent link
How can we do that?

Using a simple starting query such as this:


<ram:search server="ramServer" id="environmentResults" query="type:(Environment)" />


I can see from the RAM Web Client, that I have 63 results.

How can I iterate through the returned seach results?

In essence, I'd like to be able to do something like this:


<ram:search server="ramServer" id="environmentResults" query="type:(Environment)" />
<for list="environmentResults" param="environment">
<sequential>
<echo>Env Name: ${environment.name}</echo>
</sequential>
</for>


<ram:search> was originally conceived as something to put inside another element (e.g. <ram:submit>). There's currently no way to iterate over the result. I opened an enhancement: https://jazz.net/jazz02/resource/itemName/com.ibm.team.workitem.WorkItem/64258

0 votes

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

Question asked: Mar 19 '12, 1:34 a.m.

Question was seen: 3,838 times

Last updated: Mar 19 '12, 1:34 a.m.

Confirmation Cancel Confirm