cancel
Showing results for 
Search instead for 
Did you mean: 

Graphical mapping

Former Member
0 Kudos

Hi Gurus,

I have a following structure:

Source:

<RootNodeS> 0..50

<A>key</A> 1..1

<B>value</B> 1..1

</RootNodeS>

Target:

<RootNodeT> 1..1

<TargetField1>value1</TargetField1>

<TargetField2>value2</TargetField2>

<TargetField3>value3</TargetField3>

.

.

.

<TargetField50>value50</TargetField50>

</RootNodeT>

My question is ,Is the above mapping possible using graphical mapping?

If yes,then to generate the above target structue ,to which target element should i map source node 'RootNodeS'

null

Message was edited by:

Amit Chandnani

Message was edited by:

Amit Chandnani

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member189387
Active Contributor
0 Kudos

Hi ,

yes , you can use Remove context Node function to achieve this in Graphical mapping .

will your source and target like this ?

<RootNodeS>

<sourcetField1>value1</sourcetField1>

</RootNodeS>

<RootNodeS> 0..50 key 1..1 value 1..1

<sourcetField2>value2</sourcetField2>

</RootNodeS>

.

.

.

.

50

Target:

<RootNodeT> 1..1

<TargetField1>value1</TargetField1>

<TargetField2>value2</TargetField2>

<TargetField3>value3</TargetField3> . . .

<TargetField50>value50</TargetField50>

</RootNodeT>

Change the context for <sourcetField > to MT_XXXX not to <RootNodeS> then use Remove context to get the desired result

<RootNodeS> --- > <RootNodeT>

the use removcontext() -


> <TargetField >

      • Assign Points if you found helpful

V.Rangarajan

Former Member
0 Kudos

For simplycity i have modified your structue. Let me know if I did somethinbg wrong in it.

<b>Source:

<RootNodeS> 0..50

KeyForTargetField 1..1

value 1..1

</RootNodeS>

Target:

<RootNodeT> 1..1

<TargetField1>value1</TargetField1>

<TargetField2>value2</TargetField2>

<TargetField3>value3</TargetField3> . . . <TargetField50>value50</TargetField50>

</RootNodeT>

My question is ,Is the above mapping possible using graphical mapping? If yes,then to generate the above target structue ,to which target element should i map source node 'RootNodeS' .</b>

Amit,

First of all i have modified your structure, so if above one is correct then

<b>My question is ,Is the above mapping possible using graphical mapping?</b>

<b>Ans:</b> Yes it is possible via graphical mapping.

<b>To which target element should i map source node 'RootNodeS' .</b>

<b>Ans:</b> RootNodeS -


> RootNodeT

But one thing, as your RootNodeS is 0...50 and target RootNodeT is 1:1 so there can be a problem i mean you will get only one record, so if you wat it should be generate multiple times make it 0...50.

Regards,

Sarvesh