amidgeha Active Member Licensed User Longtime User Mar 10, 2019 #1 I created an empty B4xTable, the CellClicked is not fired and the application get crashed with the following error: b4xtable$ResumableSub_CellClickedresume (java line: 413) java.lang.IndexOutOfBoundsException: Invalid index 3, size is 0 at java.util.ArrayList.throwIndexOutOfBoundsException(ArrayList.java:255) at java.util.ArrayList.get(ArrayList.java:308) Last edited: Mar 10, 2019
I created an empty B4xTable, the CellClicked is not fired and the application get crashed with the following error: b4xtable$ResumableSub_CellClickedresume (java line: 413) java.lang.IndexOutOfBoundsException: Invalid index 3, size is 0 at java.util.ArrayList.throwIndexOutOfBoundsException(ArrayList.java:255) at java.util.ArrayList.get(ArrayList.java:308)
Erel B4X founder Staff member Licensed User Longtime User Mar 11, 2019 #2 Have you added at least one column? Upvote 0
amidgeha Active Member Licensed User Longtime User Mar 11, 2019 #3 This is what I did: Code: MacColumn = B4XTable1.AddColumn("MAC Address", B4XTable1.COLUMN_TYPE_TEXT) CompanyColumn = B4XTable1.AddColumn("Company", B4XTable1.COLUMN_TYPE_TEXT) TheAddress = B4XTable1.AddColumn("Address", B4XTable1.COLUMN_TYPE_TEXT) B4XTable1.Refresh No data populated. If I add one row, things will be fine and the CellClicked event will fire. Upvote 0
This is what I did: Code: MacColumn = B4XTable1.AddColumn("MAC Address", B4XTable1.COLUMN_TYPE_TEXT) CompanyColumn = B4XTable1.AddColumn("Company", B4XTable1.COLUMN_TYPE_TEXT) TheAddress = B4XTable1.AddColumn("Address", B4XTable1.COLUMN_TYPE_TEXT) B4XTable1.Refresh No data populated. If I add one row, things will be fine and the CellClicked event will fire.