variables

Hunter191919

06-10-2015

Hi,

I must be very stupid.

How do i acces a global variable is a pdf form in ES4???

Variables.name.rawValue does not work...

topmostSubform.Page2.CodeElementen.txtCijfer       works fine... for an object... where txtCijfer is a box.

Can find it on google...

Many Thanks!!

Accepted Solutions (0)

Answers (3)

Answers (3)

Magus069

MVP

07-10-2015

I think just using the name value should do the trick

To make a integer value accessible, you would have to create your own script object and have get;set; functions

By keeping the global variable as the accessible value, if you want to use it as an integer to use it for calculation you can use

Hope this help!

Hunter191919

07-10-2015

Hi,

Still does not work... partly:

if (this.rawValue < 0.666) {

xfa.form.topmostSubform.onvoldoende1.value = 1; // think my path is wrong, but can't figure out what it should be...

  }

Does not work...

"this.rawValue = onvoldoende1.value"  does work somewhere else...