‎2008 Mar 27 6:04 PM
Hi,
My problem is...
I have 2 grids,one contains data which is above and the other grid is below without any data.
Now say I have 5 records in my 1st grid. I select the 4th one and push it down to the second grid. As soon as I do that I want my cursor to go to the record which was below this particular record in the 1st grid.
I tried set cursor and that doesn't work...any class or method or so where I can make the cursor to come to the next position in the 1st grid after pushing the record to the 2nd grid?
Please let me know asap....
‎2008 Mar 27 6:23 PM
Not sure if you could do this using the REUSE_ALV* function modules. But if you are using ALV object CL_GUI_ALV_GRID then you could use the following instance methods:
SET_CURRENT_CELL_BASE
SET_CURRENT_CELL_ID
SET_CURRENT_CELL_ID2
SET_CURRENT_CELL_ROWPOS_COLID
‎2008 Mar 27 6:26 PM
So the current cell is automatically set and this should be done after refreshing grid 2? Also i hope these are public protected....? Set itself allows the cursor to remain on that? This should be done in the PBO event right? coz what i read was set cursor doesn't work well in PAI...that's y got this doubt
‎2008 Mar 27 6:38 PM
I don't know which spot would be the most efficient but you could try this in:
1) In the handler method that moves the line from grid1 to grid2(handle_user_command??)
2) Where you call method refresh_table_display for grid1
‎2008 Mar 27 7:05 PM