sb.setValue
sb.setValue(key, value)
Set a variable in the data manager to a particular value.
Parameters
| Parameter | Type | Description |
|---|---|---|
key | string | A string value containing the key to be set with the next following value. |
value | string or number or boolean | The value to be assigned to the preceding argument (key). |
Example
function sbFunc(context) {
// Assign the string 'variable_data' to the application variable 'variable_name'
sb.setValue("variable_name", "variable_data");
}