Skip to main content
Participant
January 22, 2019
Question

Copy data from a table and fill into another table on master page

  • January 22, 2019
  • 1 reply
  • 669 views

I have to print the footer of the form on only the last page. This footer has two tables. Content area  has multiple tables and they are coming good.. This footer has to come at a fixed position on the final page. I could get these Footer tables only on the first page. When the data overflows to multiplepages it does not work.

I was thinking of having a table with data on the model and copy the data to the footer tables on the last page using scripting.

I placed this code on the Initialization- event the footer table. But no luck.

Could you please help me.

    This topic has been closed for replies.

    1 reply

    Participant
    January 22, 2019

    I am working on  Adobeforms in SAP. Here's the code I am using:

      var norows = xfa.resolveNodes("data.main.T_MAKT2.row

  • ").length;

      for(i = 0; i<norows; i++)

    {

       xfa.resolveNode("data.master.Page1.T_COPY.row["+i+"].MATNR").rawValue = xfa.resolveNode("data.main.T_MAKT2.row["+i+"].MATNR").rawValue;

       xfa.resolveNode("data.master.Page1.T_COPY.row["+i+"].SPRAS").rawValue = xfa.resolveNode("data.main.T_MAKT2.row["+i+"].SPRAS").rawValue;

       xfa.resolveNode("data.master.Page1.T_COPY.row["+i+"].MAKTX").rawValue = xfa.resolveNode("data.main.T_MAKT2.row["+i+"].MAKTX").rawValue;

    }