cancel
Showing results for 
Search instead for 
Did you mean: 

How to insert and delete rows through buttons use webdynpro for java

Former Member
0 Kudos

Hi Experts,

Now i develop interactive form by adobe use webdynpro for java,I have an interactive form with a dynamic table inside that. i Have Add and Delete Buttons to insert and delete rows.

Can you tell me how can i finish it?

Thanks a lot.

yours zunxian.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Zunxian,

Add the below code to the buttons:

Add button code:

Body_Page_Name.Subform_Name.Section_Name.TableRow.instanceManager.addInstance(1);

xfa.form.recalculate(1);

ActionGO.AddInst();

Remove Rows:

Body_Page_Name.Subform_Name.Section_Name.TableRow.instanceManager.removeInstance(this.parent.index);

Do reward points if found helpful.

Regards,

Arafat

Answers (1)

Answers (1)

Former Member
0 Kudos

Dear Arafat:

But where i can add these code .

Thank you !

yours zunxian

Former Member
0 Kudos

Hi,

You can place these codes in the respective OnClick event of the buttons that you created for Adding/Removing the rows.

Open form in Adobe Lifecycle Designer > Select the button> From script editor choose on Click event and place this code there.

Hope this resolves your issue.

Regards,

Arafat

Former Member
0 Kudos

Hi zunxian,

Standard template can help you in adding and deleting rows from table. You can find these templates at following location:

C:\Program Files\Adobe\Designer 7.1\EN\Samples\Purchase Order\Dynamic Interactive\Forms