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

Announcements
Write Table now available in Qlik Cloud Analytics: Read Blog
cancel
Showing results for 
Search instead for 
Did you mean: 
adecora
Contributor II
Contributor II

Retrieves a Qlik Sense object from the Qlik Sense application

Hi, in order to embbed an object from the Qlik Sense application, what is the difference betweer using the app API https://qlik.dev/apis/javascript/capability/#definitions-qapp-entries-getobject:

app.getObject("LB01","uPyZavD");

Or use the visualization API https://qlik.dev/apis/javascript/capability/#definitions-qvisualization-entries-show

var app = qlik.openApp('c31e2aba-3b46-4b13-8b87-c5c2514dea1d');
app.visualization.get('xGhjKl').then(function(vis){
vis.show("QV01");
});

 

Labels (1)
  • API

1 Solution

Accepted Solutions
rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

I think the difference is getObject is synchronous, including waiting for the object and showing it. 

visualization.get is asynchronous.

The recommended approach going forward is to use the qlik-embed library rather than the capability APIs. 

-Rob

View solution in original post

1 Reply
rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

I think the difference is getObject is synchronous, including waiting for the object and showing it. 

visualization.get is asynchronous.

The recommended approach going forward is to use the qlik-embed library rather than the capability APIs. 

-Rob