In logic, a valueset
is an object that contains information about the possible values
that are considered permissible for a field. Each possible value contains a label, a code (the valid value), and can contain a link to an image
shown when the value set is displayed
. The value set object, once passed to the setvalueset
function, becomes an item's dynamic value set.
A value set is a CSPro logic object and the following functions can be called via dot notation
|add||Adds a single value, or all the values from an existing value set, to the value set.|
|remove||Removes the value with the specified code from the value set.|
|clear||Removes all values from the value set.|
|show||Displays the value set's labels (similarly to accept) and returns the code of the operator's selection.|
In addition to these object functions, value sets contain two built-in list
, which contain the codes and labels for the value set. These are read-only lists and can be used in most ways that list objects can be used.
Value sets can be assigned to other value sets, which will replace the initial value set with the values of the assigned value set:
valueset_name = another_valueset_name;