Android Tutorial [B4X] Cross platform Editable B4XTable + Form Example

Not open for further replies.

This example demonstrates several things:
  • Cross platform code and files, similar to the way XUI2D games are organized:
    • All the logic is implemented in a class named EditableTable. The module is located in the projects parent folder.
    • The two asset files (list of animals - source; and the preferences dialog template) are stored in the Shared Files folder and are copied when needed with a #CustomBuildAction command. You can see it in the EditableTable class. Note that if you want to update those files then you need to update the files in the Shared Files folder. The project specific files will be updated automatically.
  • Using B4XTable and B4XPreferencesDialog to create an editable table. Table features:
    • Add new items.
    • Edit existing items.
    • Delete existing items.
    • Duplicate existing items.
    • Data is saved when the app closes to a CSV file.
    • Saved data is loaded when the app starts.

- B4XPreferencesDialog v1.30+:

The B4A, B4i and B4J projects are attached.

B4J example of a table with inline editing:


    194.2 KB · Views: 2,006
Last edited:


Active Member
Licensed User
Longtime User
Save it anywhere you want, I believe.

Add SQLite to your app, create the database, and save and read the data.
Add jRDC2 to read and save the data on a server.

Both SQLite and jRDC2 are searchable items on the forum.

Let us know how it works out.



Well-Known Member
Licensed User
Longtime User
I got ths message when compiling:

Fehlerbeschreibung: Unbekanntes Mitglied: daysinweekcolor
Fehler in Zeile: 309
DateTemplate.DaysInWeekColor = xui.Color_Gray
Word: daysinweekcolor


Well-Known Member
Licensed User
Longtime User
Jo, stupid me ... was 1.9

How can i create another query window ?
Not open for further replies.