Argument | Description | Types / Required |
name | The name of the symbol. | string
required |
serializationOptions | Options for how the symbol should be serialized. | object
not 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 the JSON representation of the symbol's value as a string, number, array, or object.
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 symbol does not support the serialization of its value as JSON.
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");