Guidance for Plugin Settings (.config, Prefs, etc...)
Guidance for Plugin Settings (.config, Prefs, etc...)
What's the guidance for persisting plugin specific settings (e.g. connection strings to remote resources)? And how would one keep these updated?
Re: Guidance for Plugin Settings (.config, Prefs, etc...)
The recommended way is to create your own database table(s) within the Open Dental database. You can then use the class OpenDentBusiness.DataCore to read and write to these tables. Be sure to name your table something highly unique such as tholmes_connectionsettings.
Re: Guidance for Plugin Settings (.config, Prefs, etc...)
Thanks Chris, we're using a PluginAssemblyName.dll.config file right now housed in the OpenDental bin folder.
We'll look into migrating this into the OD database.
We'll look into migrating this into the OD database.
Re: Guidance for Plugin Settings (.config, Prefs, etc...)
If those settings are computer specific then that might suffice. However, if those settings are supposed to affect the whole office I'm not sure that will work. Putting the settings in the database (via your own table or a custom preference entry in our preference table) is the way you can guarantee that every workstation connected to that database can get access to your plug-in settings. We have examples of how to do such things in our PluginExample project:
See the "Example - Complex Installation" section for more details:
http://www.opendental.com/manual/plugins.html
See the "Example - Complex Installation" section for more details:
http://www.opendental.com/manual/plugins.html
The best thing about a boolean is even if you are wrong, you are only off by a bit.
Jason Salmon
Open Dental Software
http://www.opendental.com
Jason Salmon
Open Dental Software
http://www.opendental.com