Page 2 of 2

Re: Hide the parameters panel

Posted: Fri Dec 11, 2020 6:11 am
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

Re: Hide the parameters panel

Posted: Mon Dec 14, 2020 8:51 am
by HighAley
Hello.

We need some additional time to prepare an answer.

Thank you

Ticket reference: #3180

Re: Hide the parameters panel

Posted: Thu Dec 17, 2020 8:54 am
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.