Re: Hide the parameters panel
Posted: Fri Dec 11, 2020 6:11 am
Thank you for your reply. I know the code can be reused, but the control in NETCORE can't set the ID, so I don't know how to modify the ID
Business Intelligence Tool from Stimulsoft. Software for dashboards and reports. Reporting tools for any platform.
https://forum.stimulsoft.com/
Code: Select all
jsNetCoreViewer.onready = function () {
jsNetCoreViewer.showParametersPanel_ = jsNetCoreViewer.showParametersPanel;
jsNetCoreViewer.showParametersPanel = function (data, jsObject) {
if (jsNetCoreViewer.showError(data)) data = null;
jsNetCoreViewer.options.isParametersReceived = true;
jsNetCoreViewer.options.paramsVariables = typeof data == "string" ? JSON.parse(data) : data;
jsNetCoreViewer.InitializeParametersPanel();
jsNetCoreViewer.controls.processImage.hide();
if (jsNetCoreViewer.controls.parametersPanel) {
jsNetCoreViewer.controls.parametersPanel.changeVisibleState(false);
if (jsNetCoreViewer.controls.buttons.Parameters)
jsNetCoreViewer.controls.buttons.Parameters.setSelected(false);
}
if (jsNetCoreViewer.reportParams.type == "Dashboard")
jsNetCoreViewer.postAction("GetPages");
}
}