Getting Data Grid values - what I am doing wrong?
Posted: Thu Oct 15, 2009 1:39 am
Any help appreciated...
I have a series of buttons, each with a mouseEnter handler. When the mouse enters a button, a field is shown near it. In that field, I want to put a value. That value is in column 2 of a data grid. In column 1 is the name of the button.
So what I _thought_ I needed to do is:
- Put the short name of the button in a global variable, then
- somewhere, create a script that tried to match that value to one of the values in column 1.
- if it matched, it would get the value in column 2, put it in a global variable, and put that into the field beside the button.
I realize (after reading posts here) that the script for getting the values of the columns had to be _inside_ the data grid group.
But now I don't know how to, from outside of that grid, trigger that script and get the value I want. I tried adding a button inside the grid group, and issuing a "click button of group..." - but that was a disaster...
Any ideas? much thanks!
mike
I have a series of buttons, each with a mouseEnter handler. When the mouse enters a button, a field is shown near it. In that field, I want to put a value. That value is in column 2 of a data grid. In column 1 is the name of the button.
So what I _thought_ I needed to do is:
- Put the short name of the button in a global variable, then
- somewhere, create a script that tried to match that value to one of the values in column 1.
- if it matched, it would get the value in column 2, put it in a global variable, and put that into the field beside the button.
I realize (after reading posts here) that the script for getting the values of the columns had to be _inside_ the data grid group.
But now I don't know how to, from outside of that grid, trigger that script and get the value I want. I tried adding a button inside the grid group, and issuing a "click button of group..." - but that was a disaster...
Any ideas? much thanks!
mike