on 10-13-2008 10:10 AM
Hi All,
How to replicate a target node with respect to one occurence of source element and how to map different values in its child elements?
For eg in my case currency line item should be replicated twice for one occurence of amount field and its child elements (ie for currency line item )should hold different values in each of its occurence ?
can we achieve this with out udf if udf is required how to proceed with it ?
Full Points will be awarded
Regards
Satish
Hi Satish,
You can write one udf with follwoing code and the input will be the amount field also change the context of your amount field to 1 level up. Use this UDF and map to LineItem segment
for(int i=0;i<amount.length*2;i++)
result.addValue("");
These many child nodes will be generated for Lineitem therefore
for the child nodes also you can do like this but dont forget to use splitByValue node function for child nodes and map them with corresponding source fields.
Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi sudhir
thank u for your valuable suggestion.
I have created a UDF and given splitbyvalue to it .in the display queue for the target node is getting replicating but not while testing it.
and also for the child nodes i am able to replicate them but how to edit the value in it. eg the item no and posting key fields are there they hold different values as they replicate .
Please do the needful
Full Points will be Awarded
Thanks
Regards
Satish
Use node functions SplitByValue (Each Value) and RemoveContext for multiple occurrence of node.
Same functions could be used at child level also.
Regards,
Prateek
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey,
as far as my understanding,
you can use node funciton exists and createif for header node and a one to one mapping for child node.
amount-> exists-> createif-> currency line item.
amount-> child node.
this will be the case if amount is repeating.
if the amount node is not repeating, you can map the child node of amout, which must be repeating.
regards,
Milan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
94 | |
11 | |
11 | |
10 | |
9 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.