on 09-08-2008 9:55 AM
Hi guys,
Is there any way how I can use already mapped values for mapping for other target element?
let's say, my target document is:
><body>
><nodeA>
> <nodeB>
> <nodeC>
></nodeA>
><nodeA>
> <nodeB>
> <nodeC>
></nodeA>
></body>
I have already mapped nodeB and I need the same value also for nodeC, because the condition is, if nodeB equals "xxxxx" then C = '0' else '1'.
Thanks for your answers.
Olian
Hi,
simple apply same mapping logic for node C that you have already applied for node B.
Just Copy the nodes and paste it for C in graphical mapping.
Thanks
Swarup
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
>>you can't do this when you mark more than one mapping rectangle.
I dont understand what you mean here.
Any way, you can make use of Java Sections. Just declare a string variable in Java section and map the result of the conditions to this String variable (you need a simple udf).
In Node c, just use the content of the string(Again you need a simple udf)
Hi,
As Jai had mentioned you can either go for UDF or
reflect the same mapping conditions for node C.
you can't do this when you mark more than one mapping rectangle
---> Here you need not have to mark each and every node. Just copy the final node as per below e.g.
field A --->
field B ---> Equals -
>If then (Constant 10) -
> Node B
here you need not have to mark each n every mapping API.
Just copy the Mapping rectangle of IF then and paste it... all subsequent APIs will copied with this.
I hope this will help you
Thanks
Swarup
Hi,
Instead of making a check on NodeB you can make a check on src element which was mapped to NodeB.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.