Accessing Form Variables

Avatar

18-07-2008

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

Replies

Avatar

Avatar
Boost 500
Level 10
pguerett
Level 10

Likes

612 likes

Total Posts

7,689 posts

Correct reply

692 solutions
Top badges earned
Boost 500
Boost 50
Boost 5
Boost 3
Boost 250
View profile

Avatar
Boost 500
Level 10
pguerett
Level 10

Likes

612 likes

Total Posts

7,689 posts

Correct reply

692 solutions
Top badges earned
Boost 500
Boost 50
Boost 5
Boost 3
Boost 250
View profile
pguerett
Level 10

18-07-2008

The property you want is rawValue not value.

Avatar

Avatar
Boost 500
Level 10
pguerett
Level 10

Likes

612 likes

Total Posts

7,689 posts

Correct reply

692 solutions
Top badges earned
Boost 500
Boost 50
Boost 5
Boost 3
Boost 250
View profile

Avatar
Boost 500
Level 10
pguerett
Level 10

Likes

612 likes

Total Posts

7,689 posts

Correct reply

692 solutions
Top badges earned
Boost 500
Boost 50
Boost 5
Boost 3
Boost 250
View profile
pguerett
Level 10

18-07-2008

Can you add an app.alert(docFocus.rawValue) before the var nIndexTo statement and see what it returns?

Avatar

28-07-2008

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.

Avatar

Avatar
Boost 500
Level 10
pguerett
Level 10

Likes

612 likes

Total Posts

7,689 posts

Correct reply

692 solutions
Top badges earned
Boost 500
Boost 50
Boost 5
Boost 3
Boost 250
View profile

Avatar
Boost 500
Level 10
pguerett
Level 10

Likes

612 likes

Total Posts

7,689 posts

Correct reply

692 solutions
Top badges earned
Boost 500
Boost 50
Boost 5
Boost 3
Boost 250
View profile
pguerett
Level 10

28-07-2008

Can you post a sample of your issue to livecycle8@gmail.com and I will have a look at your form.