<?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: Evaluate expression in extension in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/Evaluate-expression-in-extension/m-p/40241#M610</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Another option is of course to add the expression to the extensions properties. The result will then be in the layout&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erik Wetterberg.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 May 2018 06:58:29 GMT</pubDate>
    <dc:creator>ErikWetterberg</dc:creator>
    <dc:date>2018-05-02T06:58:29Z</dc:date>
    <item>
      <title>Evaluate expression in extension</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Evaluate-expression-in-extension/m-p/40239#M608</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;i'm developing an extension&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to evaluate expression only when a button is pressed&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i saw that the Engine API has evalulate method, which is what i need&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just not sure how can I access the Engine API from my extension ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any example would be appreciated&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 May 2018 20:13:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Evaluate-expression-in-extension/m-p/40239#M608</guid>
      <dc:creator>oz_moyal</dc:creator>
      <dc:date>2018-05-01T20:13:47Z</dc:date>
    </item>
    <item>
      <title>Re: Evaluate expression in extension</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Evaluate-expression-in-extension/m-p/40240#M609</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Vi,&lt;/P&gt;&lt;P&gt;I have written about this here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://extendingqlik.upper88.com/using-enigmajs-in-your-qlik-sense-extension/" title="https://extendingqlik.upper88.com/using-enigmajs-in-your-qlik-sense-extension/"&gt;https://extendingqlik.upper88.com/using-enigmajs-in-your-qlik-sense-extension/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erik Wetterberg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 May 2018 04:32:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Evaluate-expression-in-extension/m-p/40240#M609</guid>
      <dc:creator>ErikWetterberg</dc:creator>
      <dc:date>2018-05-02T04:32:49Z</dc:date>
    </item>
    <item>
      <title>Re: Evaluate expression in extension</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Evaluate-expression-in-extension/m-p/40241#M610</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Another option is of course to add the expression to the extensions properties. The result will then be in the layout&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erik Wetterberg.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 May 2018 06:58:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Evaluate-expression-in-extension/m-p/40241#M610</guid>
      <dc:creator>ErikWetterberg</dc:creator>
      <dc:date>2018-05-02T06:58:29Z</dc:date>
    </item>
    <item>
      <title>Re: Evaluate expression in extension</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Evaluate-expression-in-extension/m-p/40242#M611</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, i know that&lt;/P&gt;&lt;P&gt;the problem is that this expression is actually initiating a server side extension&lt;/P&gt;&lt;P&gt;and we want to control when it is being called, so we want to do it only when button is pressed (when it is in the properties is always calculated)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At the end i managed to do it like this (in the paint function):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;function btn_cilck(){&lt;/P&gt;&lt;P&gt;app.createGenericObject( {&lt;/P&gt;&lt;P&gt;sse_reply: {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; qStringExpression: "={my expression})"&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;}, function ( reply ) {&lt;/P&gt;&lt;P&gt;var str = " sse_reply:" + reply.sse_reply;&lt;/P&gt;&lt;P&gt;//we need to destroy it now, other wise it will refresh it on any future reload (without click)&lt;/P&gt;&lt;P&gt;app.destroySessionObject(reply.qInfo.qId);&lt;/P&gt;&lt;P&gt;alert(str);&lt;/P&gt;&lt;P&gt;});&lt;/P&gt;&lt;P&gt;} &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And thanks for the post about how to use Enigma, VERY helpful!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 May 2018 07:15:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Evaluate-expression-in-extension/m-p/40242#M611</guid>
      <dc:creator>oz_moyal</dc:creator>
      <dc:date>2018-05-02T07:15:58Z</dc:date>
    </item>
  </channel>
</rss>

