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
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

difference within xfa

Avatar

Level 2

Hi ,

i am trying to modify some old forms which were developed by someone else. and i am scratching my head to understand the javascript in there

i have a bunch of forms to work on and as going through the java script makes me feel nervous (i have no programming background).

my issue is, can somebody explain me the difference between and when they are used

xfa.host.messageBox


xfa.layout


xfa.form

i saw these being used frequently but have no idea when to use what .

can somebody explain me briefly about this.

Thanks in advance

de1209

1 Accepted Solution

Avatar

Correct answer by
Level 6

Hi,

xfa.host.messageBox - simple messageBox like Javascript alert in web browsers

xfa.layout - Represents the root of the layout model. Has some usefull methods like xfa.layout.relayout();

xfa.form - Represents the root of the form model. To access some field you can use xfa.form.purchaseOrder.tax

Also check attached docs.

BR,

Paul Butenko

View solution in original post

3 Replies

Avatar

Correct answer by
Level 6

Hi,

xfa.host.messageBox - simple messageBox like Javascript alert in web browsers

xfa.layout - Represents the root of the layout model. Has some usefull methods like xfa.layout.relayout();

xfa.form - Represents the root of the form model. To access some field you can use xfa.form.purchaseOrder.tax

Also check attached docs.

BR,

Paul Butenko

Avatar

Not applicable

Hello!

I´m sitting in the middle of FormCalc...it´s so horrible, but nice intellicense;

I want to open automaticcly a dropdownlist, when an user entered this control,

for example DateTime or self-customized DropDownLists,

anyway, if via keyboard with tab or via Mouseclick entered;

please,

I found some code...."....DropdownListe1.ui.#choiceList.open = "onEntry""

but:

where does this code has to be written, in which event!?

and and or:

what is the really correct code?!

and, Dear Sir,

please some links of welldone-forum or communities, yes, please?!

I´m sorry, but I think it is not trivial, or yes indeed`?!

Thank You !  Yours Kurt Lukas, Europe, Germany