<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: QVisualization.show not working with session app in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/QVisualization-show-not-working-with-session-app/m-p/1928161#M16764</link>
    <description>&lt;P&gt;Strange things happens: if I build a sessionAppFromApp, everything works.&lt;/P&gt;
&lt;P&gt;This &lt;A href="https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Session-App-Not-Generating-Visualizations/m-p/1927600#M16749" target="_self"&gt;fairly old post&lt;/A&gt; describes the same issue.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Which could be the reason?&lt;/P&gt;</description>
    <pubDate>Mon, 09 May 2022 17:56:43 GMT</pubDate>
    <dc:creator>AG-gugelbisolutions</dc:creator>
    <dc:date>2022-05-09T17:56:43Z</dc:date>
    <item>
      <title>QVisualization.show not working with session app</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/QVisualization-show-not-working-with-session-app/m-p/1927018#M16740</link>
      <description>&lt;P&gt;Hi there, I'm pretty new to mashups/extensions development and I'm learning starting from tutorials with QSEoW.&lt;/P&gt;
&lt;P&gt;I went through a first &lt;A href="https://help.qlik.com/en-US/sense-developer/May2021/Subsystems/Mashups/Content/Sense_Mashups/mashups-build-qsd-qseow.htm" target="_self"&gt;tutorial&lt;/A&gt;&amp;nbsp;without any particular issue, but then I tried to build a session app. I'm able to create the app, set the script, reload and create an object but, for some reasons, I'm not able to show the object in the html page. It actually fill the div with a qv-object, but it 's empty. Here is a simplified version of my code.&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;var config = {
	host: window.location.hostname,
	prefix: window.location.pathname.substr( 0, window.location.pathname.toLowerCase().lastIndexOf( "/extensions" ) + 1 ),
	port: window.location.port,
	isSecure: window.location.protocol === "https:"
};
require.config( {
	baseUrl: ( config.isSecure ? "https://" : "http://" ) + config.host + (config.port ? ":" + config.port : "") + config.prefix + "resources"
} );

require( ["js/qlik"], function ( qlik ) {
	
	qlik.on( "error", function ( error ) {
		$( '#popupText' ).append( error.message + "&amp;lt;br&amp;gt;" );
		$( '#popup' ).fadeIn( 1000 );
	} );
	$( "#closePopup" ).click( function () {
		$( '#popup' ).hide();
	} );

	var sessionApp = qlik.sessionApp(config);
	var script = "Load Chr(RecNo()+Ord('A')-1) as Alpha, RecNo() as Num autogenerate 26;"

	sessionApp.setScript(script).then(function(setScriptResult){

		sessionApp.doReload().then(function(doReloadResult){

			sessionApp.visualization.create('barchart',["Alpha","=Sum([Num])"],{title:"Bar chart on the fly"}).then(function(bar){
				
				console.log(bar.model.id);
				bar.show("QV01");

				/*bar.exportData({format:'CSV_T', state: 'A'}).then(function (link) {
					window.open(link);
				});*/
			});
		})
	});
} );&lt;/LI-CODE&gt;
&lt;P&gt;Please note that I'm even able to export a csv file with the table model behind the visualization!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And here is the html file&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;&amp;lt;!doctype html&amp;gt;
&amp;lt;html&amp;gt;
&amp;lt;head&amp;gt;
	&amp;lt;title&amp;gt;First Mashup Example&amp;lt;/title&amp;gt;
	&amp;lt;meta charset="utf-8"&amp;gt;
	&amp;lt;meta http-equiv="content-type" content="text/html; charset=UTF-8"&amp;gt;
	&amp;lt;link rel="stylesheet" href="../../resources/autogenerated/qlik-styles.css"&amp;gt;
	&amp;lt;script src="../../resources/assets/external/requirejs/require.js"&amp;gt;&amp;lt;/script&amp;gt;
	&amp;lt;script src="FirstMashupExample.js"&amp;gt;&amp;lt;/script&amp;gt;

	&amp;lt;style&amp;gt;
		&amp;lt;!--div.flex-container {
			display: flex;
			flex-wrap: wrap;
			margin: 0 45px 45px 0;
		}
		div.qvobject {
			flex: 1 1 auto;
			height: 300px;
			min-width: 400px;
			margin: 45px 0 0 45px;
			position: relative
		}--&amp;gt;
	&amp;lt;/style&amp;gt;
&amp;lt;/head&amp;gt;

&amp;lt;body&amp;gt;

	&amp;lt;div class="flex-container"&amp;gt;
		&amp;lt;div id="QV01" class="qvobject"&amp;gt;&amp;lt;/div&amp;gt;
		&amp;lt;div id="QV02" class="qvobject"&amp;gt;&amp;lt;/div&amp;gt;
		&amp;lt;div id="QV03" class="qvobject"&amp;gt;&amp;lt;/div&amp;gt;
		&amp;lt;div id="QV04" class="qvobject"&amp;gt;&amp;lt;/div&amp;gt;
		&amp;lt;div id="QV05" class="qvobject"&amp;gt;&amp;lt;/div&amp;gt;
		&amp;lt;div id="QV06" class="qvobject"&amp;gt;&amp;lt;/div&amp;gt;
	&amp;lt;/div&amp;gt;
	&amp;lt;div id="popup"&amp;gt;
		&amp;lt;button type="button" class="close" data-dismiss="modal" aria-label="Close" id="closePopup"&amp;gt;&amp;lt;span aria-hidden="true"&amp;gt;�&amp;lt;/span&amp;gt;&amp;lt;/button&amp;gt;
		&amp;lt;p id="popupText"&amp;gt;&amp;lt;/p&amp;gt;
	&amp;lt;/div&amp;gt;
&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What happens?&lt;/P&gt;</description>
      <pubDate>Thu, 05 May 2022 16:36:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/QVisualization-show-not-working-with-session-app/m-p/1927018#M16740</guid>
      <dc:creator>AG-gugelbisolutions</dc:creator>
      <dc:date>2022-05-05T16:36:26Z</dc:date>
    </item>
    <item>
      <title>Re: QVisualization.show not working with session app</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/QVisualization-show-not-working-with-session-app/m-p/1927086#M16742</link>
      <description>&lt;P&gt;Hey there&amp;nbsp; &amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/111148"&gt;@AG-gugelbisolutions&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;I tried your code on Chrome using QS Desktop (May 2022 Technical Preview) and QS Enterprise on Windows (August 2021 Patch 2) and the mashup runs smoothly, rendering the barchart&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you share a bit more of info what is your testing environment?&lt;BR /&gt;&lt;BR /&gt;A generic suggestion could be to call the&amp;nbsp;&lt;A href="https://help.qlik.com/en-US/sense-developer/February2022/Subsystems/APIs/Content/Sense_ClientAPIs/CapabilityAPIs/RootAPI/resize-method.htm" target="_self"&gt;qlik.resize()&lt;/A&gt; method once the object is rendered (which means that you need to know when an object is actually rendered) or at least after you call the &lt;EM&gt;bar.show("QV01");&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;I hope this helps,&lt;BR /&gt;Riccardo&lt;/P&gt;</description>
      <pubDate>Thu, 05 May 2022 20:07:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/QVisualization-show-not-working-with-session-app/m-p/1927086#M16742</guid>
      <dc:creator>rzenere_avvale</dc:creator>
      <dc:date>2022-05-05T20:07:58Z</dc:date>
    </item>
    <item>
      <title>Re: QVisualization.show not working with session app</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/QVisualization-show-not-working-with-session-app/m-p/1927259#M16745</link>
      <description>&lt;P&gt;I'm using QSD and QSEoW February 2022, on Windows Server 2021 SE.&lt;/P&gt;
&lt;P&gt;Tried bar.resize() but with no luck.&lt;/P&gt;
&lt;P&gt;Thanks anyway.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any other ideas? Anyone else is experiencing this issue?&lt;/P&gt;</description>
      <pubDate>Fri, 06 May 2022 09:36:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/QVisualization-show-not-working-with-session-app/m-p/1927259#M16745</guid>
      <dc:creator>AG-gugelbisolutions</dc:creator>
      <dc:date>2022-05-06T09:36:30Z</dc:date>
    </item>
    <item>
      <title>Re: QVisualization.show not working with session app</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/QVisualization-show-not-working-with-session-app/m-p/1927501#M16746</link>
      <description>&lt;P&gt;It might be a security-related issue as I found this kind of error within logs, Proxy logs to be precise:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;1278	14.19.1.0	20220506T223355.824+0200	ERROR	WS2019-ICARO	38dac926-7651-4f32-b396-10eed6ae687a	Command=Open connection;Result=-2146233087;ResultText=Error: A call to SSPI failed, see inner exception.	0	0	0	INTERNAL	sa_proxy	0	Not available	Proxy	Not available	Not available	Open connection	-2146233087	Error when accepting client connection: 'A call to SSPI failed, see inner exception.'	38dac926-7651-4f32-b396-10eed6ae687a&lt;/LI-CODE&gt;
&lt;P&gt;TLS is apparently not active on my server; can it be the reason?&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 06 May 2022 20:37:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/QVisualization-show-not-working-with-session-app/m-p/1927501#M16746</guid>
      <dc:creator>AG-gugelbisolutions</dc:creator>
      <dc:date>2022-05-06T20:37:51Z</dc:date>
    </item>
    <item>
      <title>Re: QVisualization.show not working with session app</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/QVisualization-show-not-working-with-session-app/m-p/1927578#M16747</link>
      <description>&lt;P&gt;While I'm not sure whether it is a security issue or not (as I'm working on localhost), I would like to post&amp;nbsp;how the mashup is rendered. Please note that I have changed the HTML file.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="AGgugelbisolutions_0-1651919236861.png" style="width: 731px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/78867i940E540FE2FF675C/image-size/large?v=v2&amp;amp;px=999" role="button" title="AGgugelbisolutions_0-1651919236861.png" alt="AGgugelbisolutions_0-1651919236861.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As you can see the qv-object is empty (and therefore its size is 0x0). It seems like the show method is not injecting the right html code for some reasons.&lt;/P&gt;
&lt;P&gt;Any ideas?&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 07 May 2022 10:32:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/QVisualization-show-not-working-with-session-app/m-p/1927578#M16747</guid>
      <dc:creator>AG-gugelbisolutions</dc:creator>
      <dc:date>2022-05-07T10:32:17Z</dc:date>
    </item>
    <item>
      <title>Re: QVisualization.show not working with session app</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/QVisualization-show-not-working-with-session-app/m-p/1928161#M16764</link>
      <description>&lt;P&gt;Strange things happens: if I build a sessionAppFromApp, everything works.&lt;/P&gt;
&lt;P&gt;This &lt;A href="https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Session-App-Not-Generating-Visualizations/m-p/1927600#M16749" target="_self"&gt;fairly old post&lt;/A&gt; describes the same issue.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Which could be the reason?&lt;/P&gt;</description>
      <pubDate>Mon, 09 May 2022 17:56:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/QVisualization-show-not-working-with-session-app/m-p/1928161#M16764</guid>
      <dc:creator>AG-gugelbisolutions</dc:creator>
      <dc:date>2022-05-09T17:56:43Z</dc:date>
    </item>
  </channel>
</rss>

