Hi
I am currently trying to build an offline solution for my app using the SaveData/LoadData functions. The logic I am using is that once a button gets pressed its patches the collection with boolean values in turn changing its display mode from edit to disabled.
The concept works perfectly on the normal flow of the app, however, once I exit the app and the on start function loads the saved data from the collection, the displayed modes are maintained and the patch function stops working.
I have been trying to fix this for the last 4 days and it's driving me insane... please someone help
OnStart:
LoadData(HomeButtonHistory,"HomeButtonHistory_Saved",true);
Collection:
Collect(HomeButtonHistory,{ID:ThisLog_Id,DB_Button_Home:true,STS_Button_Home:false,LWA_Button_Home:false,STC_Button_Home:false,STL_Button_Home:false,TBox_Button_Home:false});
Button Display mode: I have created a gallery linked to the HomeButtomHystory which I use to reference the status of the buttons)
If(Button_Gallery.Selected.LWA_Button_Home=true,DisplayMode.Edit,DisplayMode.Disabled)
Button OnSelect:
Patch(HomeButtonHistory, LookUp(HomeButtonHistory,ID = ThisLog_Id) , {LWA_Button_Home:true, STC_Button_Home:false});
Thank you all in advance
RN