Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
dclark0699
Creator
Creator

Qlik Session App Not Generating Visualizations

I'm trying to follow the tutorial here:

https://help.qlik.com/en-US/sense-developer/November2019/Subsystems/Mashups/Content/Sense_Mashups/Ho...

To create a sample session app. The session app is clearly created, however the visualization api does not render the charts.

Here is the javascript code that runs to create the chart:

sessionApp.visualization.create('barchart',["Dim1", "=Sum([Expression1])"], {"title":"Session App - Bar Chart"}).then(function(vis){
vis.show("QVOBJ01");
});

 

In the HTML it seems to affect the divs, but doesn't create the chart. It goes from

<div id="QVOBJ01" class="object qvobjects"></div>

to

<div id="QVOBJ01" class="object qvobjects"><qv-object model="model" options="options" object="object"></qv-object></div>

when the visualization api runs instead of adding all the underlying chart HTML

 

Once the session app is generated, I can run the following in the console and get the result I expect, so the app does exist in memory

sessionApp.createGenericObject(
{
fieldvalues: {
qStringExpression:"=count(distinct Dim1)"
}
}, function ( reply ) {

console.log(reply.fieldvalues);
});

 

 

The visualization api works fine in a normal, non-session app api call, and we use it on this same server in several standard mashups. This is my first attempt to do anything with the session app and not sure where to go to see why the chart is not rendering. anyone have any ideas what else I can look at to attempt to debug?

3 Replies
psublue98
Creator
Creator

Same issue here. Works locally, but once the same code is on a server environment the visualizations don't render. Any updates?

dclark0699
Creator
Creator
Author

unfortunately no. I did find out if I make a normal visualization api from an existing app first into the same div, then do the session app, it does work. Not a workable solution in my case, but something weird I discovered.

AG-gugelbisolutions
Creator II
Creator II

Hi there, I know a long time has passed since this post was published, but I'm running in the same issue now (and QSEoW February 2022).

Has anyone ever found a solutions?

Thanks