Hide the parameters panel

Stimulsoft Dashboards.WEB discussion
jk50po
Posts: 29
Joined: Wed May 27, 2020 7:28 am

Re: Hide the parameters panel

Post by jk50po »

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
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Hide the parameters panel

Post by HighAley »

Hello.

We need some additional time to prepare an answer.

Thank you

Ticket reference: #3180
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Hide the parameters panel

Post by HighAley »

Hello,

If you don't set the ID, you could use the next code:

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");
        }
    }
Thank you.
Post Reply