B4J Question B4J Phantom Columns

Mauricio Pereira

Member
Licensed User
Longtime User
I am making an application (operations Research- Transportation Model) in which, according to a user-defined parameter, we create a table for data entry. So if the user chooses a model with 3 sources and 4 destinations, we dynamically open a 4 x 5 spreadsheet (B4XTable). The maximum possible spreadsheet is 9x9.
I'm using B4XTable, InlineEdit, GameViewHelper.
It works without problem as long as the user clicks on each cell.
To facilitate data entry, I programmed the "Right" key (arrow to the right of the keyboard) so that the focus jumps to the cell on the right. Obviously when you get to the last column you jump to cell in the first column of the next row.
The problem is that, although the table, for example, shows 4 rows and 5 columns, when the "focus" reaches the fifth column, where it should jump to the next row, it advances as if rows 6, 7, 8 and 9 (that were not created) were present and then skip to the next line.
Something must be missing but I don't know what.
My tools: Windows 10 and B4J Version 8.31
 

Jorge M A

Well-Known Member
Licensed User
Longtime User
Without seeing your code, I assume you should dynamically hide the columns you don't use.
You can look at this thread and try to adapt the solution to your problem.
 
Upvote 0
Top