As far as I know, you can only do it via Document Extension:
"...Typically this could be used to manipulate the toolbar - Want to disable certain buttons? Create a multi-tiered bookmark drop down?..."
But I've never used it myself...
Document extensions did the trick. This article was pretty concise:
I have details on the extension we used to get rid of unwanted options in the "More" menu if any one wants them.
As always there are different routes to the goal. Document Extension is one option of course, but if you're going to apply it to every single document it could be tedious.
Another approach would be to include a custom CSS into a copy of opendoc.htm for the Ajax client:
- Create a custom.css file. To hide for example the "More" menu add the following in the CSS file:
display: none !important;
- Take a copy of opendoc.htm located in Program Files\QlikView\Server\QlikViewClients\QlikViewAjax (never alter the original opendoc.htm!)
- Edit the copy of opendoc.htm (opendoc_new.htm) and add the following reference to the custom.css (in this example I simply put the custom.css into the /htc folder)
<link rel="stylesheet" type="text/css" media="screen" href="/QvAjaxZfc/htc/default.css" />
<link rel="stylesheet" type="text/css" media="screen" href="/QvAjaxZfc/htc/custom.css" />
<link rel="apple-touch-icon" href="/QvAjaxZfc/htc/Images/Touch/touch-icon.png" />
Now in QlikView Management Console, navigate to System - Setup - QlikView Web Servers - <QVWS instance>
On the tab AccessPoint - Accesspoint Settings, change the Client Paths for Full Browser and Small Device Version to /QvAjaxZfc/opendoc_new.htm
Now the customized opendoc_new.htm will be used when using the Ajax client and the CSS will be applied.
The customized opendoc_new.htm can also be applied to individual documents by going into Documents - User Documents - <Document>
On the tab Server - Availability, check Full Browser and Small Device Version and set the Url to /QvAjaxZfc/opendoc_new.htm
There is no documentation of all the class attributes in the ajax client, as far as I know. The easiest way to find the class for an element on a page is to use various tools, like firebug in Firefox or built-in developer tools in Chrome/IE etc.
Here's a screenshot from Chrome showing the class attribute for the "More" item for example
To save everyone the trouble of looking them up in a browser, here is a list of element IDs for the menu items on the standard QV toolbar:
ctx-menu-action-LS (lock all selections)
ctx-menu-action-US (unlock all selections)
ctx-menu-action-CS (current selections)
Here's what I did:
1. I created this directory C:\Users\Document Properties in
QlikView Developer. On the Extensions tab I could see the new extension
named "nolhelp". I added the new "nohelp" extension to my document and
3. On the QlikView Server machine copied the "nohelp" directory and its
contents to C:\ProgramData\QlikTech\QlikViewServer\Extensions\Document. (I
had to create the Document folder.)
4. Republished the document. The Help icon no longer appears in the AJAX
client under the More menu. I also removed the Email Bookmark link, but
kept the Document Support link. You can toggle those as you wish with the
true|false options in the JS file.
Hope this helps, although we might go to the CSS solution for ease of
maintenance. We only have 6 distinct QVWs that we publish so we could
manage it with the extensions, but it's more complicated and prone to
breaking than the CSS option I think.