These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Dynamic changing of Y-Axis of a positioned subform within a flowed form.

prabhukrishna_ibm
Registered: Mar 7 2011
Posts: 1

Hi Good Evening.
 
This is my structure that I've built.
 
Parentform(flowed){
childsubform - 1(positioned)
childsubform - 2(positioned)
childsubform - 3(positioned)}
 
Note: all the three child subform are of different types.
 
For a particular case i need to move the childnode - 3 to the first position so that the structure need to appear like this.
 
Parentform(flowed){
childsubform - 3(positioned)
childsubform - 1(positioned)
childsubform - 2(positioned)}
 
I have tried assigning "xfa.form.data.parentform.childform - 3. y = "4in";(for example have mentioned this as 4 also consider previous y axis is of some "8in")(just tried, i knew this wont work)
 
All the naming conventions are just for example.
 
Could any one guide me how to resolve this?
 
Thanking you in Advance.

Prabhukrish

My Product Information:
LiveCycle Designer, Windows
radzmar
Expert
Registered: Nov 3 2008
Posts: 1202
Hi,

please check this Tech Talk Tech Talk: Developing Flowable Form Content.
At the end you can download a package of very useful sample forms.
It includes a sample "Dynamic Tables" which shows how to move instances of repeating subforms (table rows).
This might be the technique you need for your form.

radzmar
LoveCycle Blog
Documents you need:
LiveCycle Designer ES2 Docs

thomp
Expert
Registered: Feb 15 2006
Posts: 4411
First, it's a particularly bad idea to use spaces and punctuation in your field names. Especially if they'll be used in a script. Remember, they have to be parsed by the JavaScript engine.

Next, if the parent subform is flowed, then the Y property of the child subforms is meaningless. The children are laid out according to the position in the parent. I haven't seen that there is any way to change the order of objects in a subform, unless they are controlled by an instance manager, i.e., they are repeated items.

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script