on 07-14-2011 10:03 AM
Hi experts,
I'm creating an Adobe Interactive Form and wanted to know how it is possible to access the absolute height, width and the x,y-coordinates of a dynamic object. The dynamic object, lets say a text field, cab expand to fit for height and width and is in a flowed subform (...Subform1.TextField1).
When I try to access the properties w and h as well as (x,y)-coordinates I get a 0 (zero - because it's dynamic). But how can I find out the absolute values of the field on the printed form?
Using Javascript I can get the value for w (similar for h, and (x,y)-coordinates) of a static text field with:
TextField1.getAttribute("w");
I tried that method in every event: init, calculate, validat, preSave, postSave, ready:form, ready:layout... but unfortunately it didn't work for a dynamic text field. I always got always 0 (zero) as value! I think this is because the dimensions of the object are calculated dynamically when the objects are put on the form.
Can anybody provide me where and how to get the dimensions of dynamic objects?
I appreciate any help, hints and good advices which leads to a solution of my problem.
Thanks & regards,
Phil
Hi Phil,
Please check below thread from Adobe forum:
http://forums.adobe.com/message/3732375
I tried this solution but its not working for me.
Regards,
Vaibhav
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
It's working for me, as long as I use a positioned subform. Take a look at [this form|http://www.2shared.com/document/ZnGkvAoL/Positioning.html].
Best regards, Aldo.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Philip, you should use a positioned subform. In a flowed subform you can't get/set the position of the objects because you don't have control over them.
Best regards, Aldo.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Try to get the (x,y) co-ordinates of the subform which contains the dynamic object.
Thanks,
Aravind
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Aravind,
thanks for your reply!
I could get the coordinates of the subform. But this does only help, if you are looking for the first dynamic object in the dynamic subform. The objects' coordinates are then relative to the upper right corner - but in a dynamic subform it is always (0,0) - at least at the point in time in my programm.
I guess that before ready:form I will not get any values....
Cheers Philipp
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.