sb.setValue

sb.setValue(key, value)

Set a variable in the data manager to a particular value.

Parameters:   
    key - A string value containing the key to be set with the next following value    
    value - 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");
}
Was this article helpful?
0 out of 0 found this helpful