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

Accessing Form Variables

Not applicable
I need to change some of the form variables via form1.DEF-0121.sec1.detail.info.docTitle::click



DEF-0121 is the page name

sec1 is a table

detail is a row group that includes 'info' and 'infoMore'

docTitle is a text field



I tried to change the form variable under the click event in docTitle with the following code:



docFocus.value=this.parent.index;



where as docFocus is a form variable I set up with an initial value of 0.

console.println(this.parent.index) tells me that its returning the desired value, however, when I tried console.println(docFocus.value), it still prints the initial value of docFocus, which is 0.



It probably sounds simple but any help to the right direction would be appreciated, thanks



Dan
5 Replies
pguerett
Level 10
Level 10
The property you want is rawValue not value.
Not applicable
thanks paul. it works fine now



Dan
pguerett
Level 10
Level 10
Can you add an app.alert(docFocus.rawValue) before the var nIndexTo statement and see what it returns?
Not applicable
Hello, i have one var array in js and i put on it data from database. The first time it run ok but when an avent fire, my var lose values. It can be? variables lose values?

I only need two combos whit relation. For example country and states but i can't get to work.
pguerett
Level 10
Level 10
Can you post a sample of your issue to livecycle8@gmail.com and I will have a look at your form.