7 Replies Latest reply: Apr 18, 2011 11:40 AM by 524753 RSS

    How to refer a field of group that is just above the current group

    DharV
      Hi All,

      I have xml data like this
      - <LIST_G_HEADERS>
      - <G_HEADERS>
      <BUYER_NAME1>xxxxxx</BUYER_NAME1>
      - <LIST_G_LINES>
      - <G_LINES>
      <POL_UOM>UNITS</POL_UOM>
      - <LIST_G_SHIPMENTS>
      - <G_SHIPMENTS>
      <PLL_NEED_BY_DATE>04-MAY-11</PLL_NEED_BY_DATE>
      ..................
      ...............
      I am using the code for my loops as below

      <?for-each@section:G_HEADERS?>
      <?for-each:G_LINES?>
      <?for-each:G_SHIPMENTS?>
      <?POL_UOM?> <?PLL_NEED_BY_DATE?>
      <?end for-each?><?end for-each?><?end for-each?>
      Now I could not get the POL_UOM value, I tried to refer with // but the same value got repeated many times, I mean for all shipment lines, the first value of po lines uom is displayed.
      Please let me know what to use.