on 02-21-2011 12:10 PM
Hi Experts,
I am doing JMS to FILE scenario, receiver file structure got 100 fields, i need to create the file with all 100 fields, if anything doesn't exist in source side i need to put empty value in the receiver file, i know i can achieve this using MapWithDefault node function, but i got more than 100 fields.
is there any simple way to cheive this ????
i know i can achieve this using MapWithDefault node function
is there any simple way to cheive this ????
I dont think that you can find anything simpler
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can achieve this by keeping the receiver field occurance as 0..1. So, if it doesn't have any value then it would be empty.
Thanks,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Hareen,
If the source field does not exist even the reciever side field occurance 0..1, the field is not coming in recever structure after the mapping, so in the file it is not creating empty value, for example if the source side 20 fields exist after the mapping target side only 20 fields appearing in target xml because we have 0..1 occurance.
hi.
I don't think that is possible in the mapping. but you could switch to xslt and then it is easier to change.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
92 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.