Page 1 of 1

How to hide the settings here?

Posted: Fri Sep 24, 2021 2:32 am
by kingreatwill
How to hide "New Data Transformation..." and "Actions"?

Re: How to hide the settings here?

Posted: Mon Sep 27, 2021 7:16 am
by Lech Kulikowski
Hello,

You can use the following code:

Code: Select all

<div>
        <cc3:StiWebDesigner runat="server" ID="StiWebDesigner1"  />
    </div>
    <script>
        //where jsStiWebDesigner1 -> "js" + Designer ID
        jsStiWebDesigner1.onready = function () {
            var dictionaryPanel = jsStiWebDesigner1.options.dictionaryPanel;
            dictionaryPanel.toolBar.updateControls_ = dictionaryPanel.toolBar.updateControls;

            dictionaryPanel.toolBar.updateControls = function (currentMenu) {
                dictionaryPanel.toolBar.updateControls_(currentMenu);
                if (currentMenu) currentMenu.items.dataTransformationNew.style.display = "none";
            }

        }
    </script>
Thank you.