Skip to Content
avatar image
Former Member

Creating dynamic table in adobe form ( Adding rows to existing table rows)

Hi all,

The requirement is initially i have to display the 3 empty table rows in adobe form. If required I have to add row by row when all three rows are filled up. For that I put a button called 'ADD'.

After filled all table rows i have to push the table data into database.

Please let me know how to create the dynamic rows from the table. The condition is i should add the row only when all 3 rows are filled.

I am able to print 3 empty rows. I have to add new rows.

I have done the designing part in interactive form and coding in WD using ABAP.

I am not able to creating empty row from 4th position but creating a row after 1 row even if i have given 3 in addInstance method. 2nd and 3rd rows are moving down.

var anInstanceManager = ADOBE.Bodypage.HEADER.ITEM.DATA.instanceManager;
var newInstance = anInstanceManager.addInstance(3);
var aToIndex = ADOBE.Bodypage.HEADER.ITEM.DATA.index + 1;
var aFromIndex = newInstance.index;
anInstanceManager.moveInstance(aFromIndex, aToIndex);

And one more issue is i am able to read only 1st record not all records. Please help me to resolve this issue.

Thanks in advance

Edited by: MVPhani Diwakar on Jun 16, 2009 2:33 PM

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Jun 16, 2009 at 06:07 PM


    Do review this thread [Dynamic Table Index Number|dynamic-table-index-number]

    Also do make changes as per your requirement.


    Pradeep Goli

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Phani,

      In WebDynpro ABAP we cannot capture the dynamic rows that were added in the Adobe Form. To get capture data we have a work around like adding the selected number of null rows at the WebDynpro WDDOINIT method. This will help you in some way or other.

      Reference SAP NOTE: 1098009


      Pradeep Goli

  • Jun 18, 2009 at 05:07 AM

    Hi Diwakar,

    Two ways of creating the 3 static rows intially is either create 3 rows manually Or create a single row in table and then in Binding check the check box "Repeat Row for each Item Data" and set min count to "1" and initial count to "3"

    and in add button use the same code as you are using with addInstance(1)

    Or try this below:



    Add comment
    10|10000 characters needed characters exceeded