Argument | Description | Types / Required |
name | The name of the symbol. | string
required |
value | The new value for the symbol. | string, number, array, object
required |
The following table describes the value-related serialization routines available for CSPro objects and contains links to the description of the
JSON representation for each object.
Documentation about JSON representations feature will come in a future release. In the meantime you can see if the documentation is updated at:
The action returns undefined.
The action throws an exception if any of its arguments are not specified in a valid form, if no symbol has the specified name, or if the value is not specified in a way that can be converted to the symbol.
function sortList(symbolName) {
// get the List object from CSPro
const list = CS.Logic.getSymbolValue({
name: symbolName
});
// sort the List, which is represented as an array
list.sort();
// update the CSPro object
CS.Logic.updateSymbolValue({
name: symbolName,
value: list
});
}
sortList("usmca_countries");