<?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 Trigger python/js script with current selection from app in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Trigger-python-js-script-with-current-selection-from-app/m-p/2492048#M102136</link>
    <description>&lt;P&gt;Hi!&lt;/P&gt;
&lt;P&gt;I would like to add a button in my application that calls an external script with the current selection as its input somehow. Is this possible?&lt;/P&gt;
&lt;P&gt;Maybe by creating a temporary bookmark, and sending the ID of the bookmark to the script, or something like that. I already know how to write a script that could find the information I need from a bookmark (I think), but I don't know how to trigger all this from within the Qlik Sense application, or if it is even possible.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 11 Nov 2024 12:59:47 GMT</pubDate>
    <dc:creator>fluxfrog</dc:creator>
    <dc:date>2024-11-11T12:59:47Z</dc:date>
    <item>
      <title>Trigger python/js script with current selection from app</title>
      <link>https://community.qlik.com/t5/App-Development/Trigger-python-js-script-with-current-selection-from-app/m-p/2492048#M102136</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;
&lt;P&gt;I would like to add a button in my application that calls an external script with the current selection as its input somehow. Is this possible?&lt;/P&gt;
&lt;P&gt;Maybe by creating a temporary bookmark, and sending the ID of the bookmark to the script, or something like that. I already know how to write a script that could find the information I need from a bookmark (I think), but I don't know how to trigger all this from within the Qlik Sense application, or if it is even possible.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Nov 2024 12:59:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Trigger-python-js-script-with-current-selection-from-app/m-p/2492048#M102136</guid>
      <dc:creator>fluxfrog</dc:creator>
      <dc:date>2024-11-11T12:59:47Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger python/js script with current selection from app</title>
      <link>https://community.qlik.com/t5/App-Development/Trigger-python-js-script-with-current-selection-from-app/m-p/2492094#M102141</link>
      <description>&lt;P&gt;Yes, it's possible. See&amp;nbsp;&lt;A href="https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/LoadData/ac-advanced-analytic-use.htm" target="_blank"&gt;https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/LoadData/ac-advanced-analytic-use.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;-Rob&lt;/P&gt;</description>
      <pubDate>Mon, 11 Nov 2024 15:14:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Trigger-python-js-script-with-current-selection-from-app/m-p/2492094#M102141</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2024-11-11T15:14:31Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger python/js script with current selection from app</title>
      <link>https://community.qlik.com/t5/App-Development/Trigger-python-js-script-with-current-selection-from-app/m-p/2492257#M102162</link>
      <description>&lt;P&gt;Great, thanks! I didn't know about Server Side Extensions. The documentation you linked to seems to refer to Qlik Cloud, but this is possible also for local installations, right?&lt;BR /&gt;&lt;BR /&gt;It seems like I can call some python code running in an external docker image using this approach, which is great! But the examples I find use this to calculate expressions either in the load script or in a chart script. I still don't understand how this can be hooked up to the click of a button, but maybe I am missing something here.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Nov 2024 11:23:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Trigger-python-js-script-with-current-selection-from-app/m-p/2492257#M102162</guid>
      <dc:creator>fluxfrog</dc:creator>
      <dc:date>2024-11-12T11:23:06Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger python/js script with current selection from app</title>
      <link>https://community.qlik.com/t5/App-Development/Trigger-python-js-script-with-current-selection-from-app/m-p/2492586#M102208</link>
      <description>&lt;P&gt;Yes, possible for local (client-managed) installations as well.&lt;/P&gt;
&lt;P&gt;To clarify some nomenclature. "Server Side Extensions" is a feature available in client-managed, but not Qlik Cloud.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Both Cloud and client-managed offer a newer feature called "Analytics Connections". Analytics Connections use the "Server Side Extension syntax". This nomenclature sometimes causes confusion for me.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I did some work with SSE, but not with AAC. I don't know of any good examples for AAC. You&amp;nbsp; could stick with SSE, but that limits you to client-managed.&lt;/P&gt;
&lt;P&gt;-Rob&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Nov 2024 18:09:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Trigger-python-js-script-with-current-selection-from-app/m-p/2492586#M102208</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2024-11-13T18:09:46Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger python/js script with current selection from app</title>
      <link>https://community.qlik.com/t5/App-Development/Trigger-python-js-script-with-current-selection-from-app/m-p/2492793#M102239</link>
      <description>&lt;P&gt;Thanks for your help!&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;I can now almost do what I want. I use the Button "Chart", and the action I use is "Set variable value". Then I use this expression as the value to set a variable to:&lt;/P&gt;
&lt;P&gt;=PythonTest.MyFunction(distinct [Region])&lt;/P&gt;
&lt;P&gt;I have also managed to create a python server that receives the request and can parse the currently selected Regions as input. Great!&lt;/P&gt;
&lt;P&gt;However, I intend to implement sort of an action function, that uses this call to perform certain actions given these regions. Unfortunately, Qlik Sense seems really smart when it comes to caching and pre-fetching data, so it calls my function even before I press the button sometimes, and if I select the same regions twice, it might not call the function at all. Does anyone here know if this behaviour is avoidable? Or do I need to write my own "Button" too, to achieve this?&lt;/P&gt;</description>
      <pubDate>Thu, 14 Nov 2024 16:28:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Trigger-python-js-script-with-current-selection-from-app/m-p/2492793#M102239</guid>
      <dc:creator>fluxfrog</dc:creator>
      <dc:date>2024-11-14T16:28:49Z</dc:date>
    </item>
  </channel>
</rss>

