Posted: Thu Sep 18, 2008 3:02 am Post subject: Looping in Mapping
Master
Joined: 07 Sep 2008 Posts: 240
Can somebody tell me how can I put the for loop in on the database insert node as i need to process the whole input data. The flow works well with one input data. My flow is MQINPUT NODE ----> DATABASE INSERT NODE
works fine but for
<details>
<name>asd</name>
<address>
<city>djd</city>
<zip>767</zip>
</address>
</details>
<details>
<name>sdddsd</name>
<address>
<city>dddvvjd</city>
<zip>76744</zip>
</address>
</details> it takes only the first xml data.
When I put the for loop in the map then I get the error as " "FOR" has no source path expression. Provide a source path or delete the "FOR".
Can you please tell what I am missing in this as it clearl says that source is missing but I have given the source.
Thanks saper for your reply , I did what you have given and the error is gone now, but still the database shows only the first XML data and no other data.
CAn you tell what need to be done so that the whole of the XML data is stored in the database
I am using WMBv6.0 on windows and the flow is just MQINPUT node ---> DATAINSERT node.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum