Adding System Settings to System Configuration  Topic is solved

Discussions relating to Jiwa 7 plugin development, and the Jiwa 7 API.

Adding System Settings to System Configuration

Postby SBarnes » Sun Nov 04, 2018 3:52 pm

Hi Guys

What is the SQL statement to add a setting to the System tab in the System Configuration and what would be the code using Jiwa's objects to read this back out within an application that is not a plugin and then also in a plugin?
Regards
Stuart Barnes
SBarnes
Shihan
Shihan
 
Posts: 1696
Joined: Fri Aug 15, 2008 3:27 pm
Topics Solved: 191

Re: Adding System Settings to System Configuration  Topic is solved

Postby Mike.Sheen » Tue Nov 27, 2018 11:14 am

System settings can be created without a plugin using a direct INSERT into the table SY_SysValues. The last 4 columns of that table (ScriptFormatCell, ScriptButtonClicked, ScriptReadData and GridHandlerCode) are not used and are there for legacy purposes - old version 6 settings used to require those.

The REST API plugin has an example of reading a system setting - this will work in a plugin or an external application using our Manager class regardless if the setting was attached to a plugin or not :

Code: Select all
string url = Manager.Database.ReadSysData("REST API", "WebhooksHostURL", "").ToString();


Of course, you can also just read the SY_SysValues directly as an alternative.
Mike Sheen
Chief Software Engineer
Jiwa Financials

If I do answer your question to your satisfaction, please mark it as the post solving the topic so others with the same issue can readily identify the solution
User avatar
Mike.Sheen
Overflow Error
Overflow Error
 
Posts: 2583
Joined: Tue Feb 12, 2008 11:12 am
Location: Perth, Republic of Western Australia
Topics Solved: 807


Return to Technical and or Programming

Who is online

Users browsing this forum: No registered users and 3 guests