I trying to implement a bit more complex App and need some advice on how to approach this type of functionality. This is very common situation where we have a PARENT (Master) record and CHILD (Detail) records attached to it. For example Ivnoice/Order etc. The CRUD operations are based on relationships (JOINS). At this moment I need to start with the simple scenario (no editing). I just want to display data from the database.
As you see on the attached image there is one PARENT table and several CHILD tables. They are all related based on ID (PrimaryKey) from the ParentTable.
Based on this structure I need to implement a functionality presented on the screenshoot (from B4A Designer). When the parent record is displayed in the Header then automatically the ChildRecords will update and display below on the list. When the user selects different buttons the list will update and show records from ChildTables according to selected button.
Right below the header there are PREVIOUS / NEXT buttons, so the user can scroll through the data.
The tables are relatively small so there should not be a performance problem, and the data is stored in local SQLite file.
------------------------------------------------
I would appreciate an help or suggestions on how to approach this functionality.
- should I use Panels or Tabs ?
- how to pass ID from the ParentTable to Child records
- any issues with this type of design, etc ?
Arthur
As you see on the attached image there is one PARENT table and several CHILD tables. They are all related based on ID (PrimaryKey) from the ParentTable.
Based on this structure I need to implement a functionality presented on the screenshoot (from B4A Designer). When the parent record is displayed in the Header then automatically the ChildRecords will update and display below on the list. When the user selects different buttons the list will update and show records from ChildTables according to selected button.
Right below the header there are PREVIOUS / NEXT buttons, so the user can scroll through the data.
The tables are relatively small so there should not be a performance problem, and the data is stored in local SQLite file.
------------------------------------------------
I would appreciate an help or suggestions on how to approach this functionality.
- should I use Panels or Tabs ?
- how to pass ID from the ParentTable to Child records
- any issues with this type of design, etc ?
Arthur