Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Want to read the y position of a subfrom

Avatar

09-07-2008

There is a subform which has content set as 'Flowed'. Under this subform we have children subform. One child subform having content as 'Flowed' so we can not specify X and Y position in the layout pallette.

I want to read the Y position of this child subform in the scripting but it gives 0inch. This y position will help me to adjust height of another subform.



Here is the script used to read the Y position of the subform.



xfa.host.messageBox(PurchaseOrderForm.page.mainPageSF.Signature.y);



Result: Always 0inch.



Your help would be appreciated.

Replies

Avatar

Avatar
Boost 500
Level 10
pguerett
Level 10

Likes

611 likes

Total Posts

7,689 posts

Correct Reply

692 solutions
Top badges earned
Boost 500
Boost 50
Boost 5
Boost 3
Boost 250
View profile

Avatar
Boost 500
Level 10
pguerett
Level 10

Likes

611 likes

Total Posts

7,689 posts

Correct Reply

692 solutions
Top badges earned
Boost 500
Boost 50
Boost 5
Boost 3
Boost 250
View profile
pguerett
Level 10

11-07-2008

I use a different means of getting the x, y coordinates. I query the layout Dom to get hat info. Here is a typical query:



var obj = formname.pageName.objectName;

var oY = xfa.layout.y(obj, "in");



If you need to set the x,y value of an object you do not do it through the layout Dom. You would use:



objectname.x = "10in";



I see you trying this with a signature .....note that a signature is not really an object in XFA but a placeholder that is transformed into a signature when a PDF is created. I would wrap the signature in a subform and operate on the subform instead.



Hope this helps