Qlik Community

QlikView Integrations

Discussion Board for collaboration on QlikView Integration.

Announcements
IMPORTANT security patches for GeoAnalytics Server available to download: READ DETAILS
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Show/Hide an object & disable right-click menu

Hello community,

I have a self-created extension object and now I'm stuck with the following two tasks:

1) disable the right-click context-menu when clicking on the object (because the extension uses the right-click to move an object inside the window).

2) only show the object when two inputboxes have a predefined selection.

Example: Inputbox Product must have the text "ProductA" and Inputbox Type must have the text "Store" in order for the object to appear on screen.

This is part of my script.js file:

function ThreeJS_Init() { 

  var js_Load = function () {     

//Loads other JS files aside from jQuery. Called after ensuring jQuery is loaded      

Qva.LoadScript(template_path + 'lib/js/three.min.js', function () {

            Qva.LoadScript(template_path + 'lib/js/TrackballControls.js', function () {

    Qva.LoadScript(template_path + 'lib/js/tween.min.js', function (){

  Qva.LoadScript('https://getfirebug.com/firebug-lite.js#startOpened=true', ThreeJS_Done);                           

});});});

ThreeJS_Done();  

};   

if (typeof jQuery == 'undefined') Qva.LoadScript(template_path + '/lib/js/jquery-1.9.1.min.js', js_Load);     else js_Load(); }

function ThreeJS_Done() {   

//Fires when the init function is complete, loads stylesheets and creates a div //Add extension   

Qva.AddExtension("ThreeJS", function () { //Load a CSS style sheets      

Qva.LoadCSS(template_path + "lib/css/style.css");

.....

Later I add the element to the div container: container.appendChild(renderer.domElement);

I hope you can show me how this can be done.

Thank you very much.

1 Solution

Accepted Solutions
Not applicable
Author

I found a decent solution

View solution in original post

4 Replies
Not applicable
Author

I found a decent solution

fcecconi
Partner
Partner

Thorsten

Can you provide your solution?  I also need to disable the right mouse features.

thanks
Frank

mgranillo
Specialist
Specialist

Was a solution found for this?  It's not posted.  I would also like to disable the right click context menu.

Thanks,

Mike

fcecconi
Partner
Partner

Michael

He only posted part of his solution and I no longer have the requirement to disable the right mouse function.  He (Thorsten) does mention to contact him for the solution.

Good Luck