Hi every one.
I'm creating a plug-in in which the user can fill a table meantime a plot is updated with the values. To do that I've created a map function on the table target (the keyword linked with the table). In this way each time that the user leave of the cell after entering the value a callback is executed. This callback creates a new point for the xy data or update an existing one. This work fine.
My trouble is about the table gui updating. Most of times the new current cell in the table doesn't has the focus and the new values are inserted in the previous current cell.
For example if I do the following:
- Type "1" in the position (0,0)
- Type "Tab key" to move at (0,1)
- Type "2" in the position (0,1)
- Type "Tab key" to move the position (1,0)
- Type "3" in the position (1,0)
- Type "Tab key" to move at (1,1)
- Type "4" in the position (1,1)
I'll expect to have in tha table:
1 2 3 4 But I obtain: 12 NULL 34 NULL or 1 23 NULL 4
It looks like random when the cell is not skiped. This behaviour is not user friendly and quite maddening.
I tried to update the table by calling forceRefresh(), update() methods at the beginning and the end of the callback function unsuccssesfuly.
Does anyone knows hoy to force the table updating?
Abaqus