B4J Question B4Xtable with many fields

angel_

Well-Known Member
Licensed User
Longtime User
I am using B4XTable with a sqlite database with more than 100 fields, when hiding certain fields or exporting to excel, the process takes a long time, is there any way to increase the speed during these processes.
 

angel_

Well-Known Member
Licensed User
Longtime User
1. Are you testing it in release mode?
2. Does the user really want to scroll a table with 100 fields? B4XTable is a user interface element. Don't use it as a database.
1. Yes
2. Not really, each user customizes the fields they want to display

I enter data through a form that is created at runtime (with an xCustomListView) and it works quite well, with no problems deleting, adding or updating records.

The process slows down when hiding/showing columns from B4XTable and when exporting B4XTable (only visible fields) to excel.
 
Last edited:
Upvote 0

angel_

Well-Known Member
Licensed User
Longtime User
He has a database table with 100 fields; this is a problem, a bad choice.

The fact that he then has problems with B4XTable is a consequence.
Yes, but B4XTable was a simple solution to implement, initially it didn't have so many fields.
 
Upvote 0

William Lancee

Well-Known Member
Licensed User
Longtime User
In my career I have used hundreds of tables with more than a 100 columns. In both Excel and SPSS.
Perhaps not common, certainly not on a small device, but not as ridiculous as it sounds.

In projects where I needed tables with more columns than a screen would allow, I have used two different approaches.
1. B4XTable, but multiple B4XPages each with a B4XTable, then synchronize vertical up and down, so rows appear in the same place
in each B4XPage.

2. A custom-made table, lines drawn with B4XCanvas, cells are B4XViews (panels). This approach takes a little more time to do
But the end result is exactly what you want and no SQL reference is needed. If it would be useful, I can send you the App with my custom table.
 
Upvote 0

William Lancee

Well-Known Member
Licensed User
Longtime User
SD FlexGrid has evolved into a very sophisticated tool and would be an excellent choice.
Especially for touch screens, where swipe/scrolling could be a preference to paging.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…