recover Grid- Row value
Hi ,
I have this jsp which is used to input some values , which in turn populates a grid ,
Now what i need to do is when i double click on a particular row , i want the data to be poulated back to the my form .
i tried the following code , for puttting up an alert but it does not return a value to jsp .
obj.setAction("click",function(src){
var row = src.getRowProperty("index");
var count = this.getColumnProperty("count");
var column, result = [];
for (column = 0; column < count; column++){
result.push(this.getDataProperty("text", row, column)); }
alert(result);
}
);
I am a new-bee in java/jsp , so could you help,
your help would be appreciated .
Thanks
I have this jsp which is used to input some values , which in turn populates a grid ,
Now what i need to do is when i double click on a particular row , i want the data to be poulated back to the my form .
i tried the following code , for puttting up an alert but it does not return a value to jsp .
obj.setAction("click",function(src){
var row = src.getRowProperty("index");
var count = this.getColumnProperty("count");
var column, result = [];
for (column = 0; column < count; column++){
result.push(this.getDataProperty("text", row, column)); }
alert(result);
}
);
I am a new-bee in java/jsp , so could you help,
your help would be appreciated .
Thanks
Shubhankar Sharma
January 16,