on 09-11-2009 7:24 PM
Hi. I am having trouble figuring out how to specify things dynamically in the xMii Logic Editor.
Here is an image of what I have:
[http://img2.imagedash.com/HvAE.jpg]
Currently I specify this in the OutputXML in Transaction -> Properies -> OutputXML
<?xml version="1.0" encoding="UTF-8"?>
<row>
<IORG/>
<month/>
<month/>
<month/>
</row>
What I need to do is to set a specific month based on the value of a For Loop.
Transaction.outputXml{/row/month[2]}
Currently I have to hardcore this value in the TargetXPath as you can see in the image. How can I tell it to set a certain column based on the output of the for loop, like Transaction.outputXml{/row/month[ForNextRepeater_0.CurrentItem]} .. which doesn't work
Ideally I'd also like to create the columns in the XML Dynamically, if there is a way to do that.
Thanks
Hi,
For dynamically passing the valuse use #. For eg: #Local.Tag# .For your case try as below:
Transaction.outputXml{/row/month[#ForNextRepeater_0.CurrentItem#]}
-Suresh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
By seeing your trnsaction ,you u are passing in wrong way. You have to pass that in Expression block. Do as explained below:
Put your tracer action block below your For Loop action block. And the link Message of tracer with the expression in I gave earlier in expression blcok. Run the ttransaction by pressing F6.Test the results.
Hope this helps you.
-Suresh
User | Count |
---|---|
13 | |
7 | |
3 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.