on 02-16-2011 3:04 PM
Hi PI-Gurus,
we're on PI 7.0 with the old condition editor. Within a condition we have to check a value of an element at a particular position. If the value in the second E1EDK14 segment (QUALF 007) is "04", we can process the message. Otherwise the message hast to be stopped.
Example:
<E1EDK14 SEGMENT="1">
<QUALF>006</QUALF>
<ORGID>01</ORGID>
</E1EDK14>
<E1EDK14 SEGMENT="1">
<QUALF>007</QUALF>
<ORGID>04</ORGID>
</E1EDK14>
<E1EDK14 SEGMENT="1">
<QUALF>008</QUALF>
<ORGID>1000</ORGID>
</E1EDK14>
Is this possible to address a particular element in the ORGID list?
As I understand, normally the ORGID's come as a multiline element and can be addressed like this:
/ORDERS05/IDOC/E1EDK14/ORGID
My guess is the following:
/ORDERS05/IDOC/E1EDK14<b>[1]</b>/ORGID - and unchecking the multiline checkbox
Am I right, or is there any other solution?
Help is as always highly appreciated and will be rewarded!
Thanks in advance!
Matthias
Hi,
The condition editor uses full-blown xpath expressions so you could even use something like
ORDERS05/IDOC/E1EDK14[QUALF='007' and ORGID='04']/ORGID
and then for the operator use EX
or
/ORDERS05/IDOC/E1EDK14[QUALF='007']/ORGID
and then operator = and value 04
Edited by: ciochinah on Feb 16, 2011 7:59 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Gurus,
sorry for the delayed answer. Finally, the following condition did the trick:
/ORDERS05/IDOC/E1EDK14[QUALF='007']/ORGID = 04
Thank you all for your ideas!
Cheers,
Matthias
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Check the Multi line check box in the X-Path editor, then it will check the condition for all the segments and when ever it is satisfied the corresponding receiver will be determined. else stop it
Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
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.