on 10-23-2007 7:37 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
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.