This demo application shows you how you can create a custom table using a new version of the pmtableclass.
By setting up a few lists you can define the structure of the table: fields list, field types list, primary key list, input views list and (empty) data list.
The basic functionalities of the tableclass are the same in this version: horizontal and vertical scrolling, adjust the column width and row height, hide or show a column or row, sort the data list, select a row, move a row up or down, change the content of a data cell, add a row to the data list, delete a row from the data list, make totals per column and filter the data list using a column name and a filter text.
The demo application also shows you how you can use a B4XDialog component to make lookup lists like for instance the countries list. That list is then used in a combobox in another table.
This tableclass version doesn’t use a database. The content of the data list can be saved in a text file.
The source code can be found on the website: pmtablecreation
By setting up a few lists you can define the structure of the table: fields list, field types list, primary key list, input views list and (empty) data list.
The basic functionalities of the tableclass are the same in this version: horizontal and vertical scrolling, adjust the column width and row height, hide or show a column or row, sort the data list, select a row, move a row up or down, change the content of a data cell, add a row to the data list, delete a row from the data list, make totals per column and filter the data list using a column name and a filter text.
The demo application also shows you how you can use a B4XDialog component to make lookup lists like for instance the countries list. That list is then used in a combobox in another table.
This tableclass version doesn’t use a database. The content of the data list can be saved in a text file.
The source code can be found on the website: pmtablecreation