I am creating a form for meeting minutes. It has two flowable tables titled Old Business and New Business. I want to be able to create a button that will transfer the user input for New Business to Old Business and clear out the input for New Business. This way the next meeting the notes from the previous New Business table will be moved over to Old Business.
Example:
Minutes would be taken.
[img]http://i26.tinypic.com/23pvdv.jpg[/img]
Form would be saved and then,
[img]http://i31.tinypic.com/2uzqk9s.jpg[/img]
click on the "Button" that would move New Business to Old Business, and do a SaveAs for the next committee meeting.
---
Then I thought, maybe I could make 4 different Script buttons;
Save;
Old Business = New Business;
Rest New Business;
SaveAs;
I have the scipts down for Save, and SaveAs but I am runing into trouble with "Old=New" and "Rest New Business"
For the "Old=New" I have this in FormCalc, but this will only make the first Row equal. I'm not sure how to make this script work if I was to add another line?? I have the button down to add and remove rows but I'm not sure how to handle the information in the second and onward rows?
form1.Sub1.CommitteeReport.Table1.Row1.Subform2.Discussion = form1.Sub1.CommitteeReport.Table2.Row1.Subform2.Discussion;
For the "Rest New Business", I have this in JavaScript, but has the same issue of just clearing the first row in New Business.
xfa.host.resetData("xfa.form.form1.Sub1.CommitteeReport.Table2.Row1.Subform2.Discussion");
Thank you for your help.
[img]http://i27.tinypic.com/jt4gsn.jpg[/img]
You’re very close.
Here is one solution. You'll need to adapt the script to your form but this should give you an idea:
Make sure both rows are allowed to repeat and the form is saved as an Adobe Dynamic XML Form.
There are a few Help topics you might find useful:
Scripting > Scripting Reference > Scripting Objects > instanceManagerScripting > Scripting Using LiveCycle Designer ES > Examples of Common Scripting Tasks > Using the instance manager to control subforms at run timeScripting > Scripting Using LiveCycle Designer ES > Examples of Common Scripting Tasks > Using the properties of the instance manager to control subformsScripting > Scripting Using LiveCycle Designer ES > Examples of Common Scripting Tasks > Using the methods of the instance manager to control subformsScripting > Scripting Using LiveCycle Designer ES > Events > List of events > indexChange eventThe last Help topic isn't useful in this scenario however you might find it useful in the future.
Hope this helps,
Hélène