Android Question Load data in b4xpages

PumaCyan

Member
Licensed User
I'm a little confused about coding adjustments in b4xpages...
my previous app for a page was using activity...

however when switching to b4xpages it automatically made adjustments in my code

one of them is in the load data code..
my app is a notification app
in the old application, when loading data, I put the calling code in activity_create

then how about this b4xpages?
because at this time I put the load data on b4xpage_appear
however this function is different when I want to move to the next page, then I return to the previous page, then the data will be reloaded... this is different when activity_create will not reload the data..

i have tried to put my code in B4XPage_Created
however it only loads once
is there a proper solution of the code i made? Thank You
 

Attachments

  • b4xsample.png
    b4xsample.png
    29.7 KB · Views: 88

PumaCyan

Member
Licensed User
hmmm... what about:

B4X:
B4XPages.ShowPageAndRemovePreviousPages

I am sure... you will find b4xpages much more easier... than old way !

so for the case in my image above, the correct sql query placement should be in B4XPage_Appear or B4XPage_Created ?

because when I put the query in B4Xpage_Created, then when I open the next data from the first page, the second page that appears is the previous display page

if i put it on B4XPage_Appear, another problem, when i go to the third page, then go back to the second page, then it will reload the data (which i wish it didn't happen..and maybe it's not necessary)
 
Upvote 0

Magma

Expert
Licensed User
Longtime User
You can have it at _created... or at a sub calling it with a button ...

It depends... appear used when app show it at top... after minimized, closed for a little time...

Try it ... move all these you want at a sub... and call it from the correct will check is right for u...
 
Upvote 0
Top