TCA.setParam

Saves a string to a parameter, creating a temporary parameter value in the memory (if it does not already exist).

It does not create a parameter that can be read in the next run.

TCA.setParam(name, value);

Arguments

Name Description

name

(string) Name of the parameter in which to save the value.
value

(string) Value of the parameter.

Note: Only alphanumeric characters and the underscore character ("_") are supported.

Return value

A promise that will be fulfilled with no arguments.

Example

Copy code
TCA.setParam("myparam", "paramVal").then(function(){
  TCA.done(result);
}).catch(function (error) {
  TCA.doneWithError(error);
});