Android Question B4XTable & TabStrip

wyatt420

Member
Licensed User
Longtime User
Hi, I am just trying to get my head around TabView and b4xtable.
How would you load a B4XTable into a second page.

I have attached a file with B4XTable&Forms and TabStripViewPager
link: (removed)
How would i get it to have the ability to "add" to table on page 1.
and view b4xtable on page 2?

thanks
 
Last edited:
It doesn't matter where the table is located. Just declare it in Sub Globals and you can then access it:
Code: Copy
Private B4XTable1 As B4XTable

How would i get it to have the ability to "add" to table on page 1.
The code that adds rows is in EditableTable.ShowDialog. You can do something similar without the dialog.
 
Upvote 0
It doesn't matter where the table is located. Just declare it in Sub Globals and you can then access it:
Code: Copy
Private B4XTable1 As B4XTable
thank you. from my attached example, if i declared Private B4XTable1 As B4XTable in Main, would i need to call Main.B4XTable1 from in the EditableTable class?

or would it be better to have 1 Page with panels and just hide layers to mimic page activity (eg Page 1, B4xTable, Page3-CLV)?
sorry, I do not understand how to contain the B4XTable into just the 1 page.
 
Upvote 0
If you want to use EditableTable class then add a panel to page 2 and then call EditableTable.Initialize(ThisPanel).

Thanks Erel, I have added and declared the PanelTable in Main.
The B4XTable is created twice on page 2. Once in the Panel and once on the page outside of the panel.

How do i remove the second b4xtable ?
 

Attachments

Upvote 0
Back
Top