Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I'm trying to follow the tutorial here:
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?
Same issue here. Works locally, but once the same code is on a server environment the visualizations don't render. Any updates?
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.
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