EaxParameterView.ParamSource

Syntax

ParamSource: PP.Mb.Param

Description

The ParamSource property sets an express report parameter.

Comments

Use JSON or the setParamSource method to set value of the ParamSource property, and the getParamSource method to get the property value.

To create the EaxParameterBox component, the user should either define the Source and ParamId properties (the parameter must be available in the data source), or define the ParamSource and Service properties.

Example

Executing the example requires that the HTML page contains the ExpressBox component named expressBox (see Example of Creating the ExpressBox Component). Output information on an express report parameter using the ParamSource property:

// Get an object of the EaxParameterView class
var paramsPanel = expressBox.getPropertyBarView().getDataSourceParamsPanel();
// Get parameter view
var parameterView = paramsPanel._Items[0];
// Get parameter
var param = parameterView.getParamSource();
console.log("Id: " + param.getId() + ";");
console.log("Name: " + param.getName() + ";");
console.log("Value: " + param.getValue() + ";");
console.log("Is visible: " + param.getVisible());

After executing the example the browser console displays information on the parameter named EaxParam.

Id: INTPARAM;
Name: EaxParam;
Value: 5;
Is visible: true

See also:

EaxParameterView