Qlik Community

Qlik Sense Integration, Extensions, & APIs

Discussion board where members can learn more about Integration, Extensions and API’s for Qlik Sense.

amien
Valued Contributor

app.getObject('KPI1,'JGYjzsh') works, but is a complete sheet possible?

With the single configurator i can also get an SheetID

But this doesn't work

app.getObject('Sheet1,'c976crraa71cf-4224-a2cf-a7f812ae7b13');

<div class="h500 qvobject borderbottom" id="Sheet1"></div>

Is it possible to embed a whole sheet in this way? or do i need to do it diffently?

1 Solution

Accepted Solutions
Employee
Employee

Re: app.getObject('KPI1,'JGYjzsh') works, but is a complete sheet possible?

Honestly not sure if you can get a sheet using getObject, but I don't think so. You can definitely just iFrame a sheet though. Use the single configurator to make it even easier.

4 Replies
Employee
Employee

Re: app.getObject('KPI1,'JGYjzsh') works, but is a complete sheet possible?

You should, you probably need to give more space to the container box <div>

amien
Valued Contributor

Re: app.getObject('KPI1,'JGYjzsh') works, but is a complete sheet possible?

when i do this:

app.getObject('kpi7aObj1','c976c33a-71cf-4224-a2cf-a7f896ae7b13');

i get an error:

"invalid visualisation" "the visualisation is not found on the server : sheet"

Employee
Employee

Re: app.getObject('KPI1,'JGYjzsh') works, but is a complete sheet possible?

Honestly not sure if you can get a sheet using getObject, but I don't think so. You can definitely just iFrame a sheet though. Use the single configurator to make it even easier.

erik_wetterberg
Honored Contributor

Re: app.getObject('KPI1,'JGYjzsh') works, but is a complete sheet possible?

Hi,

No you can't. app.getObject only works for visualizations, and sheets are not visualizations in Qlik Sense. You would need to get sheet data, which includes an array of included visualizations, and then show each visualization with getObject. This is what single does.

An easier option would be to use an iframe, and include single in it.

Hope this helps

Erik Wetterberg

Erik Wetterberg
https://extendingqlik.upper88.com/
Community Browser