Skip to main content

[archive] Grid CMD-GOTO Event

  • June 28, 2007
  • 1 reply
  • 0 views

[Migrated content. Thread originally posted on 27 June 2007]

I have a single column grid with column headings and no row headings, so the second line of the grid is my first row of data. When the screen is displayed, the grid is displayed as part of the screen and then I add the records to the grid. The grid is not the active control, I have another entry field that is the active control. When I try to click on the first data row (second actual line of the grid) it generates a CMD-GOTO event and I do not have any valid EVENT-DATA-1 or EVENT-DATA-2 (they are zero). If I go to another row and then come back to the first row, it is fine. If I bring up the screen and immediately click on the second, third, so on row, they work correctly -- it is just the first actual row of data that generates the CMD-GOTO on the first click to the grid. The other rows do not. I have experimented with other grids in our applications and they all appear to do the same thing. Is there something we are coding incorrectly that is making this happen? And, how do I work around the CMD-GOTO. Since I don't have EVENT-DATA, I am not sure how to handle the CMD-GOTO.

TIA

1 reply

[Migrated content. Thread originally posted on 27 June 2007]

I have a single column grid with column headings and no row headings, so the second line of the grid is my first row of data. When the screen is displayed, the grid is displayed as part of the screen and then I add the records to the grid. The grid is not the active control, I have another entry field that is the active control. When I try to click on the first data row (second actual line of the grid) it generates a CMD-GOTO event and I do not have any valid EVENT-DATA-1 or EVENT-DATA-2 (they are zero). If I go to another row and then come back to the first row, it is fine. If I bring up the screen and immediately click on the second, third, so on row, they work correctly -- it is just the first actual row of data that generates the CMD-GOTO on the first click to the grid. The other rows do not. I have experimented with other grids in our applications and they all appear to do the same thing. Is there something we are coding incorrectly that is making this happen? And, how do I work around the CMD-GOTO. Since I don't have EVENT-DATA, I am not sure how to handle the CMD-GOTO.

TIA
Hi,

We have similar screen setups as to what you describe.

When we click on a line on the grid i.e. not the heading it generates a GOTO-CELL-MOUSE event, we don't get a CMD-GOTO though.

Then in the GOTO-CELL-MOUSE we terminate the accept and catch it in the EXCEPTION-OTHER procedure as its bad to do lots of processing in event procedures.

Shaun