on 01-21-2008 2:18 PM
Hi
I need to write logic in Interface determination. In source file Code field can have values as AB22 or BC22 or CD22 or MX00. There is no mapping for Code in target system.
Source file
Record
Name
Code
Target File
Record
name
I have two message mapping and interface mappings. I want to check substring code = 22 instead of AB22. The reason in future I may get many fields like this. I want to have generic logic.
Note:I dont want to have a condition like (/p1:Record/Code = AB22) OR (/p1:MT_Sender/Code = BC22) OR (/p1:MT_Sender/Code = CD22)
Try to put there XSLT substring function.
Peter
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
left operand i have
/p1:MT_Sender[substring(/p1:MT_Sender/Code,2,4)]
op.
=
Right Operand
22
one more condition i have is
left operand i have
/p1:MT_Sender[substring(/p1:MT_Sender/Code,2,4)]
op.
=
Right Operand
00
now depending upon above condition MM1 or MM2 has to pick up.
I think substring function is evaluating false every time.
thanks..
hi,
you can try with endswith function .
check this url
http://www.w3schools.com/xpath/xpath_functions.asp
sri
User | Count |
---|---|
88 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
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.