<?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 GetLayout method doesn't calculate the expressions in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/GetLayout-method-doesn-t-calculate-the-expressions/m-p/6541#M14118</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using server side extension for Java. Everything is working fine. When I am selecting any field e.g. in a table, every expression is calculating new values and the new values are displayed. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I want to trigger the evaluation manually e.g. via a button. I have a expression like this javaPlugin.getRandomNumber([num]). So every time the expression is called, the Java plugin returns random numbers based on the input numbers. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following communication description says, that the evaluation of the expressions are triggered by the GetLayout method:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="SSE_communication_flow.png" class="jive-image image-1" src="https://raw.githubusercontent.com/qlik-oss/server-side-extension/master/docs/SSE_communication_flow.png" style="height: 609px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when I am calling this method via a button, the calculation is not triggered. Does anybody now holw to trigger the evaluation with client side JavaScript code? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for helping me! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 16 Nov 2024 08:48:54 GMT</pubDate>
    <dc:creator>cpalbrecht</dc:creator>
    <dc:date>2024-11-16T08:48:54Z</dc:date>
    <item>
      <title>GetLayout method doesn't calculate the expressions</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/GetLayout-method-doesn-t-calculate-the-expressions/m-p/6541#M14118</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using server side extension for Java. Everything is working fine. When I am selecting any field e.g. in a table, every expression is calculating new values and the new values are displayed. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I want to trigger the evaluation manually e.g. via a button. I have a expression like this javaPlugin.getRandomNumber([num]). So every time the expression is called, the Java plugin returns random numbers based on the input numbers. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following communication description says, that the evaluation of the expressions are triggered by the GetLayout method:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="SSE_communication_flow.png" class="jive-image image-1" src="https://raw.githubusercontent.com/qlik-oss/server-side-extension/master/docs/SSE_communication_flow.png" style="height: 609px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when I am calling this method via a button, the calculation is not triggered. Does anybody now holw to trigger the evaluation with client side JavaScript code? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for helping me! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Nov 2024 08:48:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/GetLayout-method-doesn-t-calculate-the-expressions/m-p/6541#M14118</guid>
      <dc:creator>cpalbrecht</dc:creator>
      <dc:date>2024-11-16T08:48:54Z</dc:date>
    </item>
    <item>
      <title>Re: GetLayout method doesn't calculate the expressions</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/GetLayout-method-doesn-t-calculate-the-expressions/m-p/6542#M14119</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not an API expert but I would suggest looking at the engine API. Maybe this method will do the trick: &lt;A href="http://help.qlik.com/en-US/sense-developer/November2017/Subsystems/EngineAPI/Content/Classes/AppClass/App-class-Evaluate-method.htm" title="http://help.qlik.com/en-US/sense-developer/November2017/Subsystems/EngineAPI/Content/Classes/AppClass/App-class-Evaluate-method.htm"&gt;http://help.qlik.com/en-US/sense-developer/November2017/Subsystems/EngineAPI/Content/Classes/AppClass/App-class-Evaluate-method.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jan 2018 07:43:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/GetLayout-method-doesn-t-calculate-the-expressions/m-p/6542#M14119</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-25T07:43:26Z</dc:date>
    </item>
    <item>
      <title>Re: GetLayout method doesn't calculate the expressions</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/GetLayout-method-doesn-t-calculate-the-expressions/m-p/6543#M14120</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Christoph!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you using the &lt;EM&gt;sense-navigation&lt;/EM&gt; extension as a button? Do you get any call to the plugin at all?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The behavior should not differentiate between different plugins, so I used the python FullScriptSupport example plugin to try the functionality of using a button to set a variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;I noticed that to get the call to the plugin each time you push the button, you must &lt;EM&gt;disable the cache&lt;/EM&gt;. Either with the DisableCache setting or by sending a header from the plugin to disable the cache (the latter is for the object in question, and the former is ).&lt;/LI&gt;&lt;LI&gt;Additionally, it's important that &lt;EM&gt;you're not including an equal sign&lt;/EM&gt; in the beginning of the expression, in that case (for both cache enabled and disabled) you will get only one call to the plugin when you save the expression, and no further calls when pushing the button.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the button extension I added a first action as below:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Image.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/191364_Image.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The &lt;EM&gt;vSSE&lt;/EM&gt; variable was created in before-hand and the full expression looks like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Image2.png" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/191365_Image2.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To visualize the variable being updated I added a KPI object on the same sheet with $(vSSE) as the expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know how it goes!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards, &lt;/P&gt;&lt;P&gt;Josefine&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jan 2018 10:31:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/GetLayout-method-doesn-t-calculate-the-expressions/m-p/6543#M14120</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-25T10:31:23Z</dc:date>
    </item>
  </channel>
</rss>

