Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Disable right click menu in client environment

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?

15 Replies
vgutkovsky
Master II
Master II

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.

Not applicable
Author

This solution is OK in QVS SR3 9.0.7440.8.

Not applicable
Author

This solution is OK in QVS SR5 9.0.7502.8. too

Not applicable
Author

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

Not applicable
Author

Try using a different editor. Notepad ++ works great

Not applicable
Author

Yes i've tried with npp and SCiTe editor and i have the same issue.

Thank

Not applicable
Author

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.

vgutkovsky
Master II
Master II

Here is a great tool that I often use to format the QV JS files: http://jsbeautifier.org/

Cheers,

Not applicable
Author

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)
}
}
}
};