| Stonefield Query SDK |
| Setup.Settings |
You can validate the values the user enters in your custom settings by creating a Setup.Validate script, and receive notification about changes when the user clicks the Finish button by creating a Setup.Changed script.
You may want to allow the user to change the values for these settings in the Options dialog. In that case, use the same code you have in Setup.Settings in an Options.Settings script to have the custom settings appear in the Options dialog as well. The best way to do that is to create a user-defined script with the necessary code and call that script from both Options.Settings and Setup.Settings.
Parameters
A reference to the Stonefield Query Application object.
Return Value
An XML string defining the settings to display in the Setup dialog. The format for the XML is as follows:
<settings>
<setting>
<page>Page to display setting on</page>
<description>Setting description</description>
<caption>Caption for control</caption>
<type>Type of control</type>
<key>Registry key</key>
<left>Left position of the control</left>
<top>Top position of the control</top>
<default>Default value</default>
<encryptkey>Key to use for encryption</encryptkey>
<filetype>File type</filetype>
<filedesc>File type description</filedesc>
<script>Script name</script>
<restart>Yes or No</restart>
<storage>Data or Registry</storage>
</setting>
<setting>
<page>Page to display setting on</page>
<description>Setting description</description>
<caption>Caption for control</caption>
<type>Type of control</type>
<key>Registry key</key>
<left>Left position of the control</left>
<top>Top position of the control</top>
<default>Default value</default>
<encryptkey>Key to use for encryption</encryptkey>
<filetype>File type</filetype>
<filedesc>File type description</filedesc>
<script>Script name</script>
<restart>Yes or No</restart>
<storage>Data or Registry</storage>
</setting>
...
</settings>The following elements are available:
<values> <value>first value to display</value> <value>second value to display</value> ... </values>
Example
See the examples in Options.Settings. Note that although "restart" is specified, since this is the same script used by Options.Settings, it's ignored in this case.
See Also
Options.Settings | Scripts | Setup.Changed | Setup.Validate
| Last Updated: 06/07/10 |