In my Javascript Server side script I do a for loop to loop through all the controls mentioned above so I can set all of them with a default text value like this:
Code: Select all
var i,j,k=0;
var currControl;
for ( i=1;i<=5;i++) {
for (j=1;j<=5;j++) {
for (k=1;k<=10;k++) {
currControl=controls.getControl("GRIDCELL_TEXT_" + i + "_" + j + "_" + k);
// does not work
// currControl.text.setText("test");
}
}
}
Is there a way to get a control object via getControl and be able to set its text property ?