referencing table rows question

Avatar

Avatar
Level 4
_Bill_Bain_
Level 4

Likes

0 likes

Total Posts

79 posts

Correct reply

0 solutions
View profile

Avatar
Level 4
_Bill_Bain_
Level 4

Likes

0 likes

Total Posts

79 posts

Correct reply

0 solutions
View profile
_Bill_Bain_
Level 4

18-12-2008

I'm getting a malformed SOM expression error from the following statement:

for(j=0; j <3; j++)

{xfa.resolveNode("form1.Table1.Row1[j].Cell3").mandatory = "disabled";}}



I figure I'm not referencing the index of the table row correctly but I'm not finding any examples to mimic. Any help greatly appreciated!

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-12-2008

The j cannot be resolved in that expression becuae it is enclosed in the string. Write the expression this way:



xfa.resolveNode("form1.Table1.Row1[" + j + "].Cell3").mandatory = "disabled