cancel
Showing results for 
Search instead for 
Did you mean: 

dynamically set x axis for table row value

Former Member
0 Kudos

Hi Adobe Experts,

I need your help is one of my peculiar requirement.

my requirement is to set x axis of value of table row.

I have a dynamic table which is displaying the values which has 3 fields for examples lets consider field1 , field2 and field3.


If field1 is initial for particular row then value displaying in field2  'X' axis position should be changed i.e., it should be moved towards 

right for about one cm.

but I am not able to achieve this, Please help in finishing my requirement.

Any help will be greatly helpful.

thanks in advance.

Vishwanath S

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Found the solution.

use margin.leftInset setting for field.

For example if you want to give space of 1 inch

write java-script code in event required

FIELDNAME.margin.leftInset = "1in";

Thanks all,

Regards,

Vishwanath S

Answers (1)

Answers (1)

Florian
Active Contributor
0 Kudos

If you know that before, you just can script your event right.

EG:

Field 1 got an value, so there must be a 1cm space between

IF( field1 <> null ) then

{ field 2.style.width = "+1CM" }

ENDIF;

I'm not sure, if it the correct syntax, because i do not got a system available right now.

Regards

Florian

Former Member
0 Kudos

Hi Florian,

Thanks for your reply.

I tried but its not working.

I tried code below:

xfa.resolveNode("data.FORM.TABLE.ROW["+i+"].TEXT").style.width = "+1CM";

Can you Please help me with correct syntax?

Thanks,

Vishwanath S