on 09-17-2009 12:16 PM
hi all,
can someone please explains me how to use the method .addContextChange.
also i have a child node which can occurs unbounded times, i want to know how to use .addContextChange to replicate this child node.
thanks in advance.
Hi,
>>can someone please explains me how to use the method .addContextChange.
addContextChange is a providion of providing a context change in the output. This we need to use in a udf.
>>also i have a child node which can occurs unbounded times, i want to know how to use .addContextChange to replicate this child node.
if the maxoccurence of child node unbounded, then if you don't use addContextChange in udf all values will be put as child of same parent
eg :
-A
--1
--2
--3
if you use addContextChange after each value, the output will be
-A
--1
-A
--2
-A
--3
Regards
Suraj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
For using it properly you need to understand what a context is how does it influence the output structure and what all ways are there to add it.
What a Context Change is
Message mapping in XI works by means of queues. A queue contains an entire XML instance of the source message. Depending on the hierarchy in the source message, different nodes and elements can be categorized into different contexts. All the nodes and elements that belong to the same parent node are said to be in the same context. Hence, the nodes and elements that belong to different parent nodes have to be separated by a context change.
Refer http://www.riyaz.net/blog/xipi-introduction-to-context-handling-in-message-mapping/
what all ways are there to add it.
1. By standard mapping functions Splitbyvalue,
2. For removing context collapsecontext and removecontext.
3. By UDF (as you mentioned)
Context is needed to align the output, so if you a correct output you need to handle the context
Regards
Suraj
refer http://help.sap.com/saphelp_nw70/helpdata/en/b1/83a09f668320419dbe00a741e0fe6a/content.htm this
explains clearly
https://wiki.sdn.sap.com/wiki/display/XI/UDFExecutionType-ContextandQueue.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
this blog should be helpful:
/people/harrison.holland5/blog/2006/12/08/mapping-context-changes-in-xi
Regards
Patrick
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi ,
You can achive your aim by using node functions .
Addcontextchange() method will append a context change to the list .
Regards,
Jude
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.