cancel
Showing results for 
Search instead for 
Did you mean: 

Add a subform using button

Former Member
0 Kudos

Hi,

I have one problem. I have created subform with create button and I have 10 records on the form once it rendered. Each and every record has the create button. When I press the button, it should add the subform underneath the immediate record not on the last record. Rightnow It is adding after the last subform. I wrote the "addinstance" in click event.

Please lemme know, how to add it every record when I press the button.

Thanks

GJ

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

I have used "subform.instanceManager.insertInstance(this.parent.index+1)". But it added the one subform underneath the immediate one I selected. If I select the another record, It added under the previous added record. Like let say, I have A, B, C, D , E, F and each record has create button. If I press second record ie B record, It is adding one row under B named as B1. If I press E record, It is adding under B1. But it should added as E1 not as B2.

Thanks for your help in advance.

GJ