Hello,
First, thank you in advance for your help. I am trying to learn how to make dynamic subforms using livecycle designer 8.2 and I ran across a problem that i have been trying to solve and so far have had no success. I have been tried to find examples and answers on the forums and the web but have been unable to so far. If anyone would be willing to point me in the right direction I would really appreciate it.
In my dynamic form below I have two buttons, Add set and add action. AddSet(Subform1) adds a new subform below the current one and that works fine. However, AddAction is inside my Subform1 and when I click it adds a new "Action subform(subform3)" to Subform1 and continues to do so. I understand why this is happening because I have decent experience with C# and if i look at it as objects I keep thinking that "subform3" should have a new instance everytime I "instance" a new object. However this is clearly not the case and so I am disoriented.
https://acrobat.com/#d=gzzf45sdI94R7gx94NIw8w
I went searched through the livecycle forums and found a couple of examples of how this works but they are long( about 2000 lines) and so I am losing what is the essence of the solution. I have included another pdf that I used as a test bed. They are essentially the same but the second one is a lot simpler and I have made some changes that I thought were needed. https://acrobat.com/#d=8JLtCyqFIQPskygNXTzEtg
Thank you - Roger
Solved! Go to Solution.
Views
Replies
Total Likes
Hi Roger,
This is closer to what you want: https://acrobat.com/#d=MfW2Hxdlt02lwDGjaJce1Q
However it is difficult to explain the steps I took.
Basically try and trim down the number of subforms to a minimum. When you have repeating subforms inside repeating subforms and the number of objects on one side are going to increase, it is useful to group the internal ones in a horizontal flowed subform and then the overall subforms flow vertically. You will just need to have a close look at the pagination and subform settings.
Here are some more examples:
https://acrobat.com/#d=pxy*P4aVfhyjmMHXuOEy*Q
https://acrobat.com/#d=aFfqJJrwjDbVOuT96bD8Ug
Hope that helps,
Niall
Views
Replies
Total Likes
Hi Roger,
Your page container was unnamed, so I called it 'page1'.
The references jumped past the unnamed page, so were falling over.
This:
var sSubformSOM2 = "xfa.form.form1.Subform1.Subform2.Subform3.Subform4";
became this:
var sSubformSOM2 = "xfa.form.form1.page1.Subform1.Subform2.Subform3.Subform4";
Form attached here: https://acrobat.com/#d=MfW2Hxdlt02lwDGjaJce1Q
I think you may have some flowed issues between the subforms.
Good luck,
Niall
Hi Niall,
First thanks for your help. i didnt know about the subforms going past the first page and how to prevent it.
However, my question was related to the "flowed issues" that you mentioned in your last line. I was wondering how to prevent this.
Again thank you for your help.
Thanks,
Roger
Views
Replies
Total Likes
Hi Roger,
This is closer to what you want: https://acrobat.com/#d=MfW2Hxdlt02lwDGjaJce1Q
However it is difficult to explain the steps I took.
Basically try and trim down the number of subforms to a minimum. When you have repeating subforms inside repeating subforms and the number of objects on one side are going to increase, it is useful to group the internal ones in a horizontal flowed subform and then the overall subforms flow vertically. You will just need to have a close look at the pagination and subform settings.
Here are some more examples:
https://acrobat.com/#d=pxy*P4aVfhyjmMHXuOEy*Q
https://acrobat.com/#d=aFfqJJrwjDbVOuT96bD8Ug
Hope that helps,
Niall
Views
Replies
Total Likes
Thank you so much Niall. I love the examples. Thank you very much for the advice too. As i said I am totally new to this and its wonderful that people like you are willing to help a newbie like me.
Again thank you for all your help.
Roger
Views
Replies
Total Likes