Q qey Member Oct 12, 2021 #1 Hi ! im a newbie here !! Im handling a system admin by using the b4xpages. This system have one dashboard and few classes. Panel inside the dashboard is the only one will change the layout. others will remain the same. The problem is how to call the pnlcontent.loadlayout("layout2") inside the dashboard ? Attached is the example picture on how the system admin looks like. The yellow box in the image attached is the panel. Attachments sm.png 127.9 KB · Views: 369
Hi ! im a newbie here !! Im handling a system admin by using the b4xpages. This system have one dashboard and few classes. Panel inside the dashboard is the only one will change the layout. others will remain the same. The problem is how to call the pnlcontent.loadlayout("layout2") inside the dashboard ? Attached is the example picture on how the system admin looks like. The yellow box in the image attached is the panel.
Erel B4X founder Staff member Licensed User Longtime User Oct 12, 2021 #2 In the class: Code: Copy Sub Class_Globals Private mBase As B4XView End Sub Public Sub Initialize (Base As B4XView) mBase = Base mBase.LoadLayout("...") End Sub Upvote 0
In the class: Code: Copy Sub Class_Globals Private mBase As B4XView End Sub Public Sub Initialize (Base As B4XView) mBase = Base mBase.LoadLayout("...") End Sub
Q qey Member Oct 13, 2021 #3 Erel said: In the class: Code: Copy Sub Class_Globals Private mBase As B4XView End Sub Public Sub Initialize (Base As B4XView) mBase = Base mBase.LoadLayout("...") End Sub Click to expand... Hi Erel! Thank you for your respond. I already try the code and it called the loadlayout. Is it possible if i want to call other classes inside the panel. For example like b4a where we call the StartActivity("Page2") Upvote 0
Erel said: In the class: Code: Copy Sub Class_Globals Private mBase As B4XView End Sub Public Sub Initialize (Base As B4XView) mBase = Base mBase.LoadLayout("...") End Sub Click to expand... Hi Erel! Thank you for your respond. I already try the code and it called the loadlayout. Is it possible if i want to call other classes inside the panel. For example like b4a where we call the StartActivity("Page2")
Erel B4X founder Staff member Licensed User Longtime User Oct 13, 2021 #4 I'm not sure what you are asking. You should use B4XPages.ShowPage to show a different page. See the B4XPages example: https://www.b4x.com/android/forum/t...k-for-managing-multiple-pages.118901/#content Upvote 0
I'm not sure what you are asking. You should use B4XPages.ShowPage to show a different page. See the B4XPages example: https://www.b4x.com/android/forum/t...k-for-managing-multiple-pages.118901/#content