I've got a table on my B4XMainPage that shows a list of active items. I have an Items Manager page where items can be activated/deactivated. These active items are kept in a KeyValueStore to which all pages have access through a code module.
I'd like to keep the table on B4XMainPage updated for every time an item is activated/deactivated on the Items Manager page. What's the best way to do that?
Should I call back to a function on B4XMainPage for each activation/deactivation? Is there a way to broadcast an "Active Items Were Updated" message/event, so that any or all pages can subscribe to it? (Who knows? I might have other pages that need the updated active items listed.)
I'd like to keep the table on B4XMainPage updated for every time an item is activated/deactivated on the Items Manager page. What's the best way to do that?
Should I call back to a function on B4XMainPage for each activation/deactivation? Is there a way to broadcast an "Active Items Were Updated" message/event, so that any or all pages can subscribe to it? (Who knows? I might have other pages that need the updated active items listed.)