Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

noInteraction in Mashup

Hi community,

i have this line of code in my mashup

<div id="QV02" opt=nointeraction style="position: absolute; top: 50px; left: 320px; width: 400px; height: 200px;" class="qvobject"></div>

but i can still interact with this chart on the webpage and in preview.

where is my fault, hope u can help

-Eric

1 Solution

Accepted Solutions
rbecher
Partner - Master III
Partner - Master III

I think it must be:

app.getObject('QV02','SQzYvHD', {"noInteraction": true});

Data & AI Engineer at Orionbelt.ai - a GenAI Semantic Layer Venture, Inventor of Astrato Engine

View solution in original post

21 Replies
rbecher
Partner - Master III
Partner - Master III

Hi Eric,

what API are you using in the JavaScript? As I see in help: &opt=noanimate can be used as URL parameter for single integration API when using an iFrame.

- Ralf

Data & AI Engineer at Orionbelt.ai - a GenAI Semantic Layer Venture, Inventor of Astrato Engine
Not applicable
Author

Hi Ralf,

im using Workbench/Mashup api for first time.

But i already saw the option in /single with the "obj=SQzYvHD&opt=currsel%2Cnointeraction&select=clearall".

But in the javascript i used "app.getObject('QV02','SQzYvHD');" .

Sorry that i maybe missunderstand what u asked!

thanks in advance

rbecher
Partner - Master III
Partner - Master III

I think it must be:

app.getObject('QV02','SQzYvHD', {"noInteraction": true});

Data & AI Engineer at Orionbelt.ai - a GenAI Semantic Layer Venture, Inventor of Astrato Engine
Not applicable
Author

GOD u saved my day.

Thx a lot

rbecher
Partner - Master III
Partner - Master III

You're welcome! Was surprised it is that simple. Heared from others placing a <div> element on top to prevent interactions!

Nice feature to keep in mind. But probably nothing for line chart wih the slider..

Data & AI Engineer at Orionbelt.ai - a GenAI Semantic Layer Venture, Inventor of Astrato Engine
Not applicable
Author

sorry that it was so simple first time im doing this.

I have a basic knowledge and i know the single editor but when it comes to things that aren't to obvious i let them take a seat beside me without noticing it.

Not applicable
Author

Another question u maybe can answer in miliseconds.

Can i overlay a button and hide it, but make it possible for the user to click it.

Like put the button into the same placeholder as  the chart and say hide:true?

rbecher
Partner - Master III
Partner - Master III

Do you mean to have a click action on the uninteractive chart? I would just add a click handler to the <div> like this:

$('#QV02').click(function () {

        alert("Hello my dear!");

    });

- Ralf

Data & AI Engineer at Orionbelt.ai - a GenAI Semantic Layer Venture, Inventor of Astrato Engine
Not applicable
Author

Hi Ralf,

yes a click action on uninteractive chart. thats what i was searching for.

so like this

<div id="QV02" style="position: absolute; top: 50px; left: 520px; width: 500px; height: 300px;" class="qvobject"

    

$('#QV02').click(function () { 

            alert("Hello my dear!"); 

        });        

></div>

or where do I need to insert it into?

sorry for being so newbie

-Eric