|
<< Click to Display Table of Contents >> Navigation: Programming Mechworks PDM > DBWCommandShell > Library Reference > Options > DBWSetOption |
Sets a given option to the indicated value.
Sub DBWSetOption(OptionID, Value)
OptionID |
name of an available option. |
|---|---|
Value |
value for the indicated option. |
After calling this function check the boolean value of the okDBW variable
TRUE |
succeeded in fetching the value |
|---|---|
FALSE |
otherwise |
The saving of modified option is not executed each time you call the Option command; you have to explicit call the DBWShell ("SaveOptions") command in order to save options.
DBWSetOption "AVOID_SAME_USER_APPROVAL","1"
When setting options that can accept multiple values, you have to reset the option first, then enter all the values as single entry:
DBWSetOption "NOT_NULL_FIELD","@RESET"
DBWSetOption "NOT_NULL_FIELD","DOCUMENT.CATEGORY1"
DBWSetOption "NOT_NULL_FIELD","DOCUMENT.CATEGORY2"
DBWSetOption "NOT_NULL_FIELD","DOCUMENT.CATEGORY3"