Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Is it possible to disable the right-click menu and the top toolbar in the AJAX client?
If it is possible, can someone tell me where i can manage these settings?
To disable the toolbar
Open C:\Program Files\QlikView\Server\QvClients\QvAjaxZfc\htc\default.css, find the section ".QvToolbar" and replace the contents so that the section looks like this:
.QvToolbar
{
background-color:#F1F1F1;
border-bottom:solid 1pt gray;
height:16pt;
display:none;
}
Save and close the file.
To disable the context menu
Open the file C:\Program Files\QlikView\Server\QvClients\QvAjaxZfc\htc\QvAjax.js. Go to Line 593 where you will see the following IF statement:
if (! Qva.KeepContextMenuAlive && !polling) {
Qva.HideContextMenu ();
}
Remove the IF part of the statement and the enclosing brackets, leaving only:
contentQva.HideContextMenu ();
Save and close the file.
This solution is OK in QVS SR3 9.0.7440.8.
This solution is OK in QVS SR5 9.0.7502.8. too
Hello,
I running Qvs 10.0.8811.6 (SR 1) on Windows server 2008 and I try to remove the user Righ-clik in AjaxZFC with your solution but i'm not able to find out the code section.
The QvAjax.js's code is a long line without any return carriage and text indentation.
Have you any idea for this version ?
Thanks
Try using a different editor. Notepad ++ works great
Yes i've tried with npp and SCiTe editor and i have the same issue.
Thank
You are correct, these files do not format the way the v9 files do. You should still be able to search and find the parameters to change, though. They do still exist in these files.
Here is a great tool that I often use to format the QV JS files: http://jsbeautifier.org/
Cheers,
Hello,
Thak for this great tools, but i don't found the code statement...
So, i've found an other one few lines after, that done a job with the mouse right key down event.
Qva.SetContextMenu = function (a, b) {
a.oncontextmenu = b;
if (IS_GECKO && IS_MAC) {
a.onmousedown = function (c) {
if (c.button == 2 && !ctrlKeyPressed(c)) {
return b.call(this, c)
}
}
}
};