Load and Save widget configuration

droman

Member
Licensed User
Longtime User
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:

droman

Member
Licensed User
Longtime User
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.

Thanks Erel!
 
Upvote 0
Top