iOS Question B4XPages - have 2 pages open simultaneously on iPad

Alexander Stolte

Expert
Licensed User
Longtime User
The iPad has significantly more space than an iPhone, which is why most apps have what is on a separate page on the iPhone on the same page as the main page.

My question is whether I can have two B4XPages open at the same time to arrange the RootPanel exactly as shown in the screenshot:

26-09-2025_10-42-43.png
 

hatzisn

Expert
Licensed User
Longtime User
Intuitively I would say no since each page runs on a different class and the way B4XPageManager is built is to run on the top page class. But I cannot be a 100% sure as there is always something that someone has not understood completely...
 
Last edited:
Upvote 0

hatzisn

Expert
Licensed User
Longtime User
Intuitively I would say no since each page runs on a different class and the way B4XPageManager is build is to run on the top page class. But I cannot be a 100% sure as there is always something that someone has not understood completely...

If I were you I would move the functionalities as subs in different classes and declare these classes and call the functionalities from a common page in iPad and from different pages in iPhone.
 
Upvote 0

aeric

Expert
Licensed User
Longtime User
My understanding is it is possible in theory but may need to modify B4XPages a lot.
I think it is more easier if use the dashboard template.
 
Upvote 0

AnandGupta

Expert
Licensed User
Longtime User
What I got idea from the image,
  1. normal b4xpage sample with left drawer menu
  2. increase b4xpage layout size to full
  3. always open drawer
  4. load layout on drawer as desired
  5. load layout on page as desired
Well more or less, same app will work in normal phone, where drawer will be hidden and slide open.
 
Upvote 0

Alexander Stolte

Expert
Licensed User
Longtime User
I think the best solution for this is to simply provide the second B4XPage as B4XView, which gives you flexibility because you have the complete code in a CustomView and can place it wherever you want—on mobile in a B4XPage and on the iPad on the MainPage.
 
Upvote 0

aeric

Expert
Licensed User
Longtime User
I think the best solution for this is to simply provide the second B4XPage as B4XView, which gives you flexibility because you have the complete code in a CustomView and can place it wherever you want—on mobile in a B4XPage and on the iPad on the MainPage.
I don't understand this. B4XPages is a class. If you mean add another panel as B4XView then it make sense to me and it is similar to the concept of dashboard.
 
Upvote 0

aeric

Expert
Licensed User
Longtime User
What I got idea from the image,
  1. normal b4xpage sample with left drawer menu
  2. increase b4xpage layout size to full
  3. always open drawer
  4. load layout on drawer as desired
  5. load layout on page as desired
Well more or less, same app will work in normal phone, where drawer will be hidden and slide open.
Something like my dashboard template but not necessary must use a drawer. A fixed left panel will do.
 
Upvote 0

klaus

Expert
Licensed User
Longtime User
I had a similar problem some years ago for Android.
I wrote a program for tablets for a friend.
A short time after i wanted it also for phones and i wrote the program for phones.
Then, maintaining two programs with 90% the same code was a bad idea.
Therefore i merged both into one.
I put the different layouts on Panels, for most of them also different layouts for phone or tablet.
I displayed one Panel at the same time in portrait on a phone and two Panels at the same time side by side on the tablet in landscape orientation.
It needed to define the management of the Panels.
 
Upvote 0

AnandGupta

Expert
Licensed User
Longtime User
Something like my dashboard template but not necessary must use a drawer. A fixed left panel will do.
I meant to say, keeping same code for phone and tablet. Only the drawer 'layout' is always visible and fixed in tablet.
So single code is maintained.
 
Upvote 0
Top