cancel
Showing results for 
Search instead for 
Did you mean: 

Adding rows dynamically in ADOBE

Former Member
0 Kudos

Hi All,

I am creating ADOBE form for first time.

I have tried adding rows dynamically as it is mentioned in saptechnical as well as in adobe lifecycle designer.

Also I have searched forums & tried doing it but it is not working.

I have created a table inside a subform.

The javascript code I have used,

For adding a row,

xfa.form.PDFDataSource.Subform1.Table1.Row1.instanceManager.addInstance(1);

I have used the link:

But still I am not able to add rows dynamically.

Please help me on this.

Thanks,

Lina

Edited by: Lina sap on Mar 22, 2011 11:29 AM

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Lina,

The content type of your subform which holds the table should be 'flowed' instead of 'positioned'.

Thanks & regards,

Sanoosh

Former Member
0 Kudos

Hi Sanoosh,

I have put the content type as flowed only.But still its not working.

Thanks,

Lina

Former Member
0 Kudos

Hi Lina,

Make sure that you have followed the correct path in the hierarchy view. On the button click event it should be,

xfa.form.rootNode.Page1.subForm1.Table1.Row1.InstanceManager.addInstance(1);

Thanks & Regards,

Sanoosh

Former Member
0 Kudos

Hi Lina,

I think you might have missed out one setting in the object palette.

Select the entire row, Goto Object palette --> Binding, check 'Repeat Row for Each Data Item'.

Thanks & Regards,

Sanoosh

Former Member
0 Kudos

Hi Sanoosh,

The setting was already there.

Still not working...

Thanks,

Lina

Former Member
0 Kudos

Hi Lina,

Sanoosh's suggestion should solve the issue, please recheck if there are any java script errors occuring before executing your statement of adding new row instance to the table. if such java script error exist it will not execute any code beneath.

else if you can send your form to my ID in my business card, I can have a look.

Cheers,

Sai

Former Member
0 Kudos

Replied to your mail with the attachment.

Cheers,

Sai

Former Member
0 Kudos

Thanks Sanoosh & Sai for your help.

My issue is resolved.

Thanks ,

Lina

Answers (0)