cancel
Showing results for 
Search instead for 
Did you mean: 

xMii Logic Editor : Adding/Setting columns dynamically?

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Former Member
0 Kudos

Thanks, I tried that and it doesn't seem to do anything. Maybe there is something else wrong though

Here are the results, I was expecting to see a 5 for each item

[http://img.imagedash.com/S6TN.jpg]

Former Member
0 Kudos

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

Answers (0)