1 Reply Latest reply: Sep 5, 2012 1:29 PM by Umesh Pendhare RSS

    XQUERY Count function

    JP
      Hi,

      I have an xquery statement below. The count function, even though im looping through each line item, it always returns a multiple result making my if condition always false. Any suggestions?


      for $LineItem in $LineItemList//ns1:OrderItem
      if (
      (upper-case(data($LineItem/ns1:Action))="UPDATE" and
      count(data($LineItem/ns1:ListOfOrderItemXA/ns1:OrderItemXA[ns1:ActionCode="Update"]/ns1:ActionCode))=0))