droman Member Licensed User Longtime User Dec 28, 2011 #1 Hello. Today I have developed a widget that can be configured to display certain information. The problem I have is how to save and load this information. Right now I'm doing it through a Sqlite database but does not load the data into the Service_Create that before reading the file, run the setup Request_Update and lose. What would be the correct way to load these settings from a widget? Thank you very much. Last edited: Dec 28, 2011
Hello. Today I have developed a widget that can be configured to display certain information. The problem I have is how to save and load this information. Right now I'm doing it through a Sqlite database but does not load the data into the Service_Create that before reading the file, run the setup Request_Update and lose. What would be the correct way to load these settings from a widget? Thank you very much.
Erel B4X founder Staff member Licensed User Longtime User Dec 28, 2011 #2 The simplest solution is to create a Map with the settings and then save it with File.WriteMap. From Service_Create you can read the settings with File.ReadMap. Service_Create is only called when the process first starts. So you should also use CallSub to notify the service that the settings were updated. Upvote 0
The simplest solution is to create a Map with the settings and then save it with File.WriteMap. From Service_Create you can read the settings with File.ReadMap. Service_Create is only called when the process first starts. So you should also use CallSub to notify the service that the settings were updated.
droman Member Licensed User Longtime User Dec 28, 2011 #3 Erel said: The simplest solution is to create a Map with the settings and then save it with File.WriteMap. From Service_Create you can read the settings with File.ReadMap. Service_Create is only called when the process first starts. So you should also use CallSub to notify the service that the settings were updated. Click to expand... Thanks Erel! Upvote 0
Erel said: The simplest solution is to create a Map with the settings and then save it with File.WriteMap. From Service_Create you can read the settings with File.ReadMap. Service_Create is only called when the process first starts. So you should also use CallSub to notify the service that the settings were updated. Click to expand... Thanks Erel!