setControlsValue(report, metadata, callback);
report. Report.
metadata. Metadata.
callback. Callback.
The setControlsValue method sets the value for controls.
The ReportBox component with the ReportBox name and the service to work with the regular report with the PrxMbService name is required on the HTML page to execute an example (see Example of the ReportBox Component Layout). Report must include the control bar. Create the setCtrlValue function:
function setCtrlValue() {
var md = reportBox.getSource().getMetadata();
var cmd = md.controls;
cmd.its.it[1].value.value = "New line";
prxMbService.setControlsValue(prxReport, { controls: cmd }, null)
}
The New Row value is set for the first control after an example execution.
See also: