cancel
Showing results for 
Search instead for 
Did you mean: 

Mapping - reusing other queue

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi Swarup,

you can't do this when you mark more than one mapping rectangle. Then you can only delete them and copying them one by one is not exactly what I'm looking for.

Any other ideas?

Thank you,

Olian

Edited by: Olian Saludew on Sep 8, 2008 1:54 PM

Former Member
0 Kudos

>>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)

Former Member
0 Kudos

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

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Instead of making a check on NodeB you can make a check on src element which was mapped to NodeB.