<?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: Qlik Server-Side Extensions - LOAD EXTENSION function with scalar parameters - Is it possible? in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Server-Side-Extensions-LOAD-EXTENSION-function-with-scalar/m-p/2135620#M19428</link>
    <description>&lt;P&gt;I don't think it's currently possible. I submitted this an idea several years ago but development on SSE stopped before it got implemented.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-Rob&lt;/P&gt;</description>
    <pubDate>Wed, 08 Nov 2023 01:42:30 GMT</pubDate>
    <dc:creator>rwunderlich</dc:creator>
    <dc:date>2023-11-08T01:42:30Z</dc:date>
    <item>
      <title>Qlik Server-Side Extensions - LOAD EXTENSION function with scalar parameters - Is it possible?</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Server-Side-Extensions-LOAD-EXTENSION-function-with-scalar/m-p/2135300#M19427</link>
      <description>&lt;DIV class="lia-message-body-wrapper lia-component-message-view-widget-body"&gt;
&lt;DIV id="bodyDisplay_0" class="lia-message-body"&gt;
&lt;DIV class="lia-message-body-content"&gt;
&lt;DIV class="lia-message-body-wrapper lia-component-message-view-widget-body"&gt;
&lt;DIV id="bodyDisplay_0" class="lia-message-body"&gt;
&lt;DIV class="lia-message-body-content"&gt;
&lt;DIV class="lia-message-body-wrapper lia-component-message-view-widget-body"&gt;
&lt;DIV id="bodyDisplay_0" class="lia-message-body"&gt;
&lt;DIV class="lia-message-body-content"&gt;
&lt;P&gt;I have a question maybe &lt;A href="https://community.qlik.com/t5/user/viewprofilepage/user-id/4865" target="_blank" rel="noopener"&gt;@AdamSawyer&lt;/A&gt; or&amp;nbsp;&lt;A href="https://community.qlik.com/t5/user/viewprofilepage/user-id/39663" target="_blank" rel="noopener"&gt;@Andre_Sostizzo&lt;/A&gt;&amp;nbsp; can answer:&lt;/P&gt;
&lt;P&gt;Is it possible with SSE to implement a function that returns a table with several rows and columns and receives scalar parameters?&lt;/P&gt;
&lt;P&gt;I have already implemented a function that returns many rows and many columns, and I invoke it using &lt;FONT face="courier new,courier"&gt;LOAD * EXTENSION MySSEName.myFunctionName()&lt;/FONT&gt;. It works perfectly fine. However, I would like to pass scalar parameters to that function in order to set some filters. I don't need to pass a table.&lt;/P&gt;
&lt;P&gt;From the Qlik Sense side, my function only accepts tables as parameters, either &lt;FONT face="courier new,courier"&gt;TABLENAME&lt;/FONT&gt; or &lt;FONT face="courier new,courier"&gt;TABLENAME{COL1,COL2...}&lt;/FONT&gt;. If I try to pass a scalar parameter like 10, it will say "Table 10 does not exist".&lt;/P&gt;
&lt;P&gt;Worst case, I can pass my parameters as a table that contains one column per parameter, but that's not very clean.&lt;/P&gt;
&lt;P&gt;Is there a better way?&lt;/P&gt;
&lt;P&gt;Thank you for your help! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 07 Nov 2023 09:18:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Server-Side-Extensions-LOAD-EXTENSION-function-with-scalar/m-p/2135300#M19427</guid>
      <dc:creator>cjgorrin</dc:creator>
      <dc:date>2023-11-07T09:18:30Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Server-Side Extensions - LOAD EXTENSION function with scalar parameters - Is it possible?</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Server-Side-Extensions-LOAD-EXTENSION-function-with-scalar/m-p/2135620#M19428</link>
      <description>&lt;P&gt;I don't think it's currently possible. I submitted this an idea several years ago but development on SSE stopped before it got implemented.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-Rob&lt;/P&gt;</description>
      <pubDate>Wed, 08 Nov 2023 01:42:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Server-Side-Extensions-LOAD-EXTENSION-function-with-scalar/m-p/2135620#M19428</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2023-11-08T01:42:30Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Server-Side Extensions - LOAD EXTENSION function with scalar parameters - Is it possible?</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Server-Side-Extensions-LOAD-EXTENSION-function-with-scalar/m-p/2135772#M19434</link>
      <description>&lt;P&gt;Dear&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/6148"&gt;@rwunderlich&lt;/a&gt; ,&lt;/P&gt;
&lt;P&gt;Do you happen to have a link to that idea on the ideation portal?&lt;/P&gt;
&lt;P&gt;Just to give it a "thumbs up".&lt;/P&gt;</description>
      <pubDate>Wed, 08 Nov 2023 10:40:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Server-Side-Extensions-LOAD-EXTENSION-function-with-scalar/m-p/2135772#M19434</guid>
      <dc:creator>cjgorrin</dc:creator>
      <dc:date>2023-11-08T10:40:05Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Server-Side Extensions - LOAD EXTENSION function with scalar parameters - Is it possible?</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Server-Side-Extensions-LOAD-EXTENSION-function-with-scalar/m-p/2135857#M19439</link>
      <description>&lt;P&gt;I'm not sure I submitted this one on the ideation portal, it may have been submitted in other lists. What I did submit to the portal was the idea to allow optional parameters.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://ideation.qlik.com/app/?&amp;amp;_ga=2.34956513.1768831243.1699198759-1384936895.1623421846&amp;amp;_gac=1.115609588.1698946805.CjwKCAjw7oeqBhBwEiwALyHLMxnDUNmbv0rNSsOU471uMit3QkDTPqVIEe7MY-Cg-tf6O77K9n1EIRoCWywQAvD_BwE#/case/275056" target="_blank"&gt;https://ideation.qlik.com/app/?&amp;amp;_ga=2.34956513.1768831243.1699198759-1384936895.1623421846&amp;amp;_gac=1.115609588.1698946805.CjwKCAjw7oeqBhBwEiwALyHLMxnDUNmbv0rNSsOU471uMit3QkDTPqVIEe7MY-Cg-tf6O77K9n1EIRoCWywQAvD_BwE#/case/275056&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Even though status is "on roadmap", my understanding is that SSE has been 'functionally stabilized" and there will be no enhancements.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-Rob&lt;/P&gt;</description>
      <pubDate>Wed, 08 Nov 2023 13:58:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Server-Side-Extensions-LOAD-EXTENSION-function-with-scalar/m-p/2135857#M19439</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2023-11-08T13:58:33Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Server-Side Extensions - LOAD EXTENSION function with scalar parameters - Is it possible?</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Server-Side-Extensions-LOAD-EXTENSION-function-with-scalar/m-p/2135928#M19442</link>
      <description>&lt;P&gt;I will kind of reply to myself here just to leave it for future readers and also for Qlik Staff who might confirm or not what I think:&lt;/P&gt;
&lt;P&gt;When you pass parameters to a Server-Side Extension, they are always passed to the SSE as stream of BundledRows (several &lt;FONT face="courier new,courier"&gt;BundledRows&lt;/FONT&gt; objects containing several &lt;FONT face="courier new,courier"&gt;Row&lt;/FONT&gt; objects inside). Even if you invoke it as &lt;FONT face="courier new,courier"&gt;MySSE.myFunction('TextParam1', 123, 456, 'TextParam2')&lt;/FONT&gt;. In this case, you will get a single &lt;FONT face="courier new,courier"&gt;BundledRows&lt;/FONT&gt; object with a single &lt;FONT face="courier new,courier"&gt;Row&lt;/FONT&gt; object inside with 4 &lt;FONT face="courier new,courier"&gt;Dual&lt;/FONT&gt; objects (4 "columns") inside. One "column" per parameter.&lt;/P&gt;
&lt;P&gt;Unfortunately, with the &lt;FONT face="courier new,courier"&gt;LOAD * EXTENSION&lt;/FONT&gt; syntax you cannot use scalar parameters. You have to pass actual tables or columns and they will be passed to the function as a stream of &lt;FONT face="courier new,courier"&gt;BundledRows&lt;/FONT&gt; with &lt;FONT face="courier new,courier"&gt;Row&lt;/FONT&gt; objects inside. If you need to do something equivalent to&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;LOAD * EXTENSION MySSE.myFunction('TextParam1', 123, 456, 'TextParam2');&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;you'll need to do&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;TMP:
LOAD 'TextParam1' as A, 123 as B, 456 as C, 'TextParam2' as D AutoGenerate(1);

LOAD * EXTENSION MySSE.myFunction(TMP);

// We drop the table used for passing parameters
DROP TABLE TMP;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;At least this is what I understood. I hope someone from Qlik can confirm it. I also created an idea for Qlik to implement the scalar parameters also for LOAD EXTENSION statements: &lt;A href="https://ideation.qlik.com/app/#/case/343422" target="_blank" rel="noopener"&gt;https://ideation.qlik.com/app/#/case/343422&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Nov 2023 15:57:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Server-Side-Extensions-LOAD-EXTENSION-function-with-scalar/m-p/2135928#M19442</guid>
      <dc:creator>cjgorrin</dc:creator>
      <dc:date>2023-11-08T15:57:33Z</dc:date>
    </item>
  </channel>
</rss>

