on 09-07-2007 1:20 AM
Hi All,
Source structure of my message is :
<recordset>
<Query></Query>----
0 to unbounded
</recordset>
Target Structure :
<SQL>
<key></key>----
0 to unbounded
</SQL>
Now my requirement is such that....if the source message has 3 Query elements then XI should generate key node in target message 3 times but with names key1,key2,key3.
I am not able to set the names of these target nodes at runtime based on the number of query elements in source message.
Can anybody please help me?
Hi ,
I have created the UDF with context type....but with result.addValue() it is not updating the field name.
How should I update the field name on the basis of occurence of source field?
Please help!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi shweta,
try by using <b>Remove Contexts</b> function. between Query and key. It should work. or make a UDF type <b>context</b> take one input parameter check occurance of Query print the output by using result.addValue();
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 not change the names of your "Fields".
Hi,
If you want to change Value you can do that by writing UDF.
Enter this code in UDF.
for(int i=0;i<a.length();i++)
{
result.addValue("");
}
Regards,
Akshay Jamgoankar.
Reward points if find useful.>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Try writing UDF for the same...
In the UDF check occurrence of Query element and correspondingly generate key elements using result.addValue( ) in the target..
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 |
---|---|
76 | |
9 | |
8 | |
7 | |
6 | |
5 | |
5 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.