B4J Question [ABMaterial] What is ABMPage.Ispaused ?

rdkartono

Member
Licensed User
Longtime User
What is property ABMPage.IsPaused for ?
Is it the same purpose as Activity.IsPaused in B4A ?

Actually I want to update an ABMLabel's text in realtime, but only if this ABMPage is currently displayed.
Please help to confirm if it can be done.
 

alwaysbusy

Expert
Licensed User
Longtime User
Has not the same functionality as in B4A. ABM has a Page.Pause and Page.Resume (which you can use if e.g. a very long process has to be run on the server and you want to block the page in the browser). Page.IsPaused can be used to check the current state.

Actually I want to update an ABMLabel's text in realtime, but only if this ABMPage is currently displayed.
If the Page object exists then it is currently in de cache (does not explicitly mean it is displayed, as ABM will keep the class in memory for some time, just in case the user just temporarily lost his internet connection. If he reconnects in time, ABM is able to recover from the connection loss and the user doesn't even sees something has happened).

If you want to update a label on a certain page, look at the code for the Chat (in the zip). You will have to keep track of the pages in a map (create with srvr.CreateThreadSafeMap!) and then use the CallSubDelayed methods.
 
Upvote 0
Top