cancel
Showing results for 
Search instead for 
Did you mean: 

field value in page number X

Former Member
0 Kudos

Hi everyone

By using JavaScript, how can I get field value in page number X at runtime?

Thanks

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

Thanks to all

your a replay is helpful

Former Member
0 Kudos

Hi,

Assuming your page number is a variable called X the script looks as follows:

xfa.resolveNode("xfa.form.form1.Pages["X"].TextField1").rawValue

Pages is the name of the subform representing the pages of the form.

Regards,

Juergen

OttoGold
Active Contributor
0 Kudos

I can recommend you to check the JavaScript scripting guide: http://www.adobe.com/devnet/livecycle/articles/lc_designer_scripting_basics/lc_designer_scripting_ba...

Especially last chapter called "Examples of Common Scripting Tasks", last three sub-chapters working with the instance manager. Shows how can you add, delete, count, view, move instances.

OttoGold
Active Contributor
0 Kudos

Why do you need page 4? Do you have a page subform repeated many times and need to access the fourth instance of this subform? Give me something I can build on.

OttoGold
Active Contributor
0 Kudos

Hello,

1) sometimes you can utilize relative addressing using this (JavaScript) or $ (FormCalc)

2) you can try to write down the whole path through hierarchy like form1.myform.mysubform.myfield

3) if you know which element you will need to access in form, you can copy it in previous ABAP coding

4) if you like to "touch" a row or a page which is repeated, this can be little difficult.

Regards, Otto

Former Member
0 Kudos

Thanks,

I am looking for number 4

can you please tell me how?