wyatt420 Member Licensed User Longtime User Jun 3, 2019 #1 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: Jun 3, 2019
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
Erel B4X founder Staff member Licensed User Longtime User Jun 3, 2019 #2 Use File - Export as zip to create a zip file with the required files. You can then upload it directly to the forum. Upvote 0
Use File - Export as zip to create a zip file with the required files. You can then upload it directly to the forum.
wyatt420 Member Licensed User Longtime User Jun 3, 2019 #3 Erel said: Use File - Export as zip to create a zip file with the required files. You can then upload it directly to the forum. Click to expand... ah yes, that is much smaller. thank you Attachments example.zip example.zip 19.6 KB · Views: 431 Upvote 0
Erel said: Use File - Export as zip to create a zip file with the required files. You can then upload it directly to the forum. Click to expand... ah yes, that is much smaller. thank you
Erel B4X founder Staff member Licensed User Longtime User Jun 3, 2019 #4 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 wyatt420 said: How would i get it to have the ability to "add" to table on page 1. Click to expand... 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 wyatt420 said: How would i get it to have the ability to "add" to table on page 1. Click to expand... The code that adds rows is in EditableTable.ShowDialog. You can do something similar without the dialog.
wyatt420 Member Licensed User Longtime User Jun 3, 2019 #5 Erel said: 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 Click to expand... 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
Erel said: 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 Click to expand... 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.
Erel B4X founder Staff member Licensed User Longtime User Jun 3, 2019 #6 If you want to use EditableTable class then add a panel to page 2 and then call EditableTable.Initialize(ThisPanel). Upvote 0
If you want to use EditableTable class then add a panel to page 2 and then call EditableTable.Initialize(ThisPanel).
wyatt420 Member Licensed User Longtime User Jun 4, 2019 #7 Erel said: If you want to use EditableTable class then add a panel to page 2 and then call EditableTable.Initialize(ThisPanel). Click to expand... 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 TabTable.zip TabTable.zip 19.4 KB · Views: 427 Upvote 0
Erel said: If you want to use EditableTable class then add a panel to page 2 and then call EditableTable.Initialize(ThisPanel). Click to expand... 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 ?
wyatt420 Member Licensed User Longtime User Jun 4, 2019 #8 i removed the double up by removing the view and loading it again. Code: Copy Parent.RemoveAllViews Parent.LoadLayout("page2") Attachments TabTable2.zip TabTable2.zip 18.3 KB · Views: 422 Upvote 0
i removed the double up by removing the view and loading it again. Code: Copy Parent.RemoveAllViews Parent.LoadLayout("page2")