0 Replies Latest reply on May 11, 2016 6:24 PM by abhifirewall

    Read table from data connection

    abhifirewall

      Hi,

       

      I am designing a PDF form which has a data connection with SAP which is loading correctly on the mapped fields when the document is generated.

      Apart from those fields I have a requirement to hide tables rows in this form after reading data from the data connection. The table looks like the highlighted one below - ET_COND_TEXT1:

      Capture.PNG

      I have to read the data in the field CCONDTYPE and CCONDGRP. I've tried logic as below but it doesn't seem to be working:

      var lt_cond = xfa.datasets.dataDescription.Z_FM_PNC_CORRResponse.resolveNode("ET_COND_TEXT1");
      var rowCount = lt_cond.nodes.length;
      for( var i = 0; i<rowCount; i++){
      thisValue = lt_cond.nodes.item(i).COND_DET.CCONDTYPE;
      if(thisValue != "BC0269" ) this.presence = "hidden";
      }
      

       

      Please help on this.

       

      Thanks,

      Abhi