Qlik Community

QlikView Deployment

Discussion Board for collaboration related to QlikView Deployment.

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
Honored Contributor II

Disable right click menu in client environment

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

Disable right click menu in client environment

This solution is OK in QVS SR3 9.0.7440.8.

Not applicable

Disable right click menu in client environment

This solution is OK in QVS SR5 9.0.7502.8. too

Not applicable

Re:Disable right click menu in client environment

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

Re:Disable right click menu in client environment

Try using a different editor. Notepad ++ works great

Not applicable

Re. :Re: Re:Disable right click menu in client environment

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

Thank

Not applicable

Re. :Re: Re:Disable right click menu in client environment

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
Honored Contributor II

Re. :Re: Re:Disable right click menu in client environment

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

Cheers,

Not applicable

Re. :Re: Re. :Re: Re:Disable right click menu in client environment

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


Community Browser