onClick / row property on subfile field
Posted: Thu Nov 10, 2011 8:08 am
Need some help with the ROW property on a subfile field.
From other topics in this forum I can see that there is a ROW property (or variable) giving the actual row for a subfile field.
I am trying to create an onClick script for a subfile field resulting in change of an option field in the same row and then generate an Enter (submit). The Enter works fine, but the reference to the row doesn't work. Sure I am doing something wrong.
The script is the OnClick is:
changeElementValue("S1X.row","2");pui.click("btnSubmit");
This should change the S1X (an option field) on the same row as the clicked field to '2', but it doesn't do it. If I change the row to a fixed number it works.
Ideas about what I am doing wrong ?
Brgds
Helge
From other topics in this forum I can see that there is a ROW property (or variable) giving the actual row for a subfile field.
I am trying to create an onClick script for a subfile field resulting in change of an option field in the same row and then generate an Enter (submit). The Enter works fine, but the reference to the row doesn't work. Sure I am doing something wrong.
The script is the OnClick is:
changeElementValue("S1X.row","2");pui.click("btnSubmit");
This should change the S1X (an option field) on the same row as the clicked field to '2', but it doesn't do it. If I change the row to a fixed number it works.
Ideas about what I am doing wrong ?
Brgds
Helge