Disabling individual items in the Ajax toolbar, for example "More" or "Add Object" may be accomplished by using Document Extensions as described
here.
Another approach is to create a customized CSS file as described below:
Note: This will require altering and customizing code shipped with QlikView Server. All customization is done at your own risk and is not covered by QlikTech Support or Maintenance Agreements. Please backup any files prior to modification.
Applying a Document Extension to every single document can be tedious.
Another approach to hide individual items in the Ajax toolbar is to include a custom CSS page call into a copy of opendoc.htm for the Ajax client:
Creating customized files
- Create a custom .css file to hide, for example, the "More" menu add the following in the CSS file (for a complete reference to other items in the menu see below):
.ctx-menu-action-FOLDOUTDOWN
{
display: none !important;
}
- Create a copy of opendoc.htm located in C:\Program Files\QlikView\Server\QlikViewClients\QlikViewAjax (never alter the original opendoc.htm!)
- Edit the copy of opendoc.htm (opendoc_new.htm) and add a reference to the custom .css created above (in this example custom.css will be located in 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" />
Changes in QlikView Server to use the new opendoc.htm file
- In the 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
The customized opendoc_new.htm will be used when opening any document in the Ajax client, and the customized CSS will be applied.
The customized opendoc_new.htm can also be applied to individual documents
- In QlikView Management Console, navigate to 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
Reference to other items in the toolbar:
ctx-menu-action-CLEARSTATE
ctx-menu-action-BCK
ctx-menu-action-FWD
ctx-menu-action-UNDO
ctx-menu-action-REDO
ctx-menu-action-LS (lock all selections)
ctx-menu-action-US (unlock all selections)
ctx-menu-action-CS (current selections)
ctx-menu-action-TOGGLENOTES
ctx-menu-action-REPOSITORY
ctx-menu-action-NEWSHEETOBJ
ctx-menu-action-SHOWFIELDS
ctx-menu-action-ADDBM
ctx-menu-action-REMBM
ctx-menu-action-BookMarks
ctx-menu-action-Reports
ctx-menu-action-FOLDOUTDOWN