refreshAll (args);
args. Parameters of control updating.
The refreshAll method refreshes regular report control.
The refreshAll method is identical to the PrxControl.refresh method.
To execute this example, the HTML page must contain the ReportBox component named reportBox (see Example of the ReportBox Component Layout). The regular report must contain controls. Refresh selection
controlBar = reportBox.getDataView().getControlBar(); ctrl = controlBar.getControlAt(0); ctrl.Refreshed.add(function (sender, args) { console.log("Control value is refreshed") }); ctrl.PropertyChanged.add(function (sender, args) { console.log("Value is changed for " + args.PropertyName) }); ctrl.refreshAll(new PP.Mb.Ui.PropertyChangedEventArgs({ PropertyName: PP.Prx.Property.ControlValue })); controlBar.save();
After executing the example value in the first control of regular report is refreshed and saved. The browser console shows the following message: Control value is refreshed. On changing the control value the browser console also shows the message: Value is changed for ControlValue.
See also: