B4J Question Drawerbuttons and show different pages

Andromeda

Member
Licensed User
Longtime User
Hello,

i try to build a drawer with different buttons to access different pages (Employees, Customers)
Each page should view a different table in jobs.db

When i press the button of Employees, the Employeepage will open, but the content of customers will shown.
i try to find the bug, but didnt see why i cant see the "employee data".

Can anybody give me a hint why i cant see the employeetable?
 

Attachments

  • B4XPages_SQLiteLight2.zip
    22.9 KB · Views: 116

Gabino A. de la Gala

Well-Known Member
Licensed User
Longtime User
Here is the bug, I think:
Sub Class_Globals
    Private Root As B4XView 'ignore
    Private xui As XUI 'ignore
    
    Public Edit As PageEdit
    Public Filter As PageFilter
    Public Customer As B4XCustomerPage
    Public Employee As B4XCustomerPage

You have B4XCustomerPage assigned two times
 
Upvote 0

TILogistic

Expert
Licensed User
Longtime User
I have seen your design and code.

Tip:
It should use the potential of B4Xtable.



Note:
I like how you use the names of functions and variables.
 
Upvote 0

Andromeda

Member
Licensed User
Longtime User
Inline editing looks cool, but it lacks the option to add an entry. So i have to build an "addpage" anyway.
Is it possible to add a new line in the table by simply going down to the last entry and press "down"?

With that possibility, i can delete the "addpages" ..
 
Upvote 0
Top