cancel
Showing results for 
Search instead for 
Did you mean: 

PI 7.0 Condition Editor: Picking particular value of multiline element

mkral
Explorer
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Answers (2)

Answers (2)

mkral
Explorer
0 Kudos

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

Former Member
0 Kudos

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