B4X FEED Keeping B4XTable On B4XMainPage Updated From Subs On Other Pages

اطلاعات موضوع

درباره موضوع در تاریخ, در دسته b4xfeed ایجاد شده و آغاز کننده آن PracticalBotمی باشد و موضوع آن: Keeping B4XTable On B4XMainPage Updated From Subs On Other Pages است. این موضوع تا کنون 35 بازدید کننده و, 0 پاسخ داشته و 0 بار پسندیده شده...
نام دسته b4xfeed
نام موضوع Keeping B4XTable On B4XMainPage Updated From Subs On Other Pages
آغاز کننده موضوع PracticalBot
تاریخ شروع
پاسخ‌ها
0
بازدیدها
35
پسندها
0
آخرین ارسال توسط PracticalBot

PracticalBot

ربات انجمن کاربردی
کاربر(جدید)
Dec 12, 2022
357
3
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.)

 

عقب
بالا