I have a bizarre problem.
In Designer 8.2, I am dealing with a dynamic form with four different pages . Each page is a complete subform. Page1 and Page2 are initially the only pages. Page1 has a button to add a continuation page of Page3. Each Page3 has a button to add additional instances of Page3, with item numbering increasing with each subsequent page. Likewise, Page4 is the continuation page for Page2.
Page3 and Page4 each have "Repeat subform for each data item" checked, with no initial and no minimum value. So the form first appears in Preview with only Page1 and Page2.
On each instance of Page3 and Page4, there is a delete button to delete that specific page. When I add multiple instances of Page3 and Page4, then try to delete one of the earliest pages, it is always the most recently added instance which is deleted. My delete button click code is:
_Page4.removeInstance(this.parent.index);
xfa.form.remerge();
What is even more baffling is that when I delete any Page4, it adds a random number (in the 3-5 range) of instances of Page3! It also deletes the most recently added Page4.
I put a messageBox within the add button routine of Page3, and these instances are not going through that button routine. All four pages are defined as Positioned and Visible.
Help, please!
Devra
the handling of body pages is very difficult and causes alot of problems, especially when ading/removing instances of them.
I suggest to use only one body page in a form, that is much easier to handle!
So the form hierachie will look like:
I have an example form I designed for another topic, but will also match this one.
[url]http://thelivecycle.blogspot.com/2010/04/xfa-form-control-view-settings.php[/url]
radzmar
• LoveCycle Blog
Documents you need:
• LiveCycle Designer ES2 Docs