<?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 [QlikSense] Extension development &amp;quot;error from engine&amp;quot; in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/QlikSense-Extension-development-quot-error-from-engine-quot/m-p/753715#M2346</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you help me to resolve this problem :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1 - I developed an extension for Qlik Sense in order to set variables and field selections triggered by a html submit button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2 - If i 've set only variables, it works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;3 - If i 've set only fields, it works,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;4 - If i 've set both variables and fields, it doesn't work, The error is in the screenshot join to this post.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;IMG alt="Error Qlik.jpg" class="image-1 jive-image" src="/legacyfs/online/81314_Error Qlik.jpg" style="height: 173px; width: 620px;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Do you have any idea to fix this bug ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Thanks,&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Mar 2015 15:28:40 GMT</pubDate>
    <dc:creator>sbertoletto</dc:creator>
    <dc:date>2015-03-19T15:28:40Z</dc:date>
    <item>
      <title>[QlikSense] Extension development "error from engine"</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/QlikSense-Extension-development-quot-error-from-engine-quot/m-p/753715#M2346</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you help me to resolve this problem :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1 - I developed an extension for Qlik Sense in order to set variables and field selections triggered by a html submit button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2 - If i 've set only variables, it works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;3 - If i 've set only fields, it works,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;4 - If i 've set both variables and fields, it doesn't work, The error is in the screenshot join to this post.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;IMG alt="Error Qlik.jpg" class="image-1 jive-image" src="/legacyfs/online/81314_Error Qlik.jpg" style="height: 173px; width: 620px;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Do you have any idea to fix this bug ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Thanks,&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Mar 2015 15:28:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/QlikSense-Extension-development-quot-error-from-engine-quot/m-p/753715#M2346</guid>
      <dc:creator>sbertoletto</dc:creator>
      <dc:date>2015-03-19T15:28:40Z</dc:date>
    </item>
    <item>
      <title>Re: [QlikSense] Extension development "error from engine"</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/QlikSense-Extension-development-quot-error-from-engine-quot/m-p/753716#M2347</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 looks like your second operation aborts the first one. You could try using the promise the first operation returns to make the second operation run after the first.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Something like this:&lt;/P&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="_jivemacro_uid_14268549588406176 jive_text_macro jive_macro_code" jivemacro_uid="_14268549588406176" modifiedtitle="true"&gt;
&lt;P&gt;app.field("LastName").selectValues(["Obama"],true,true).then(function(){&lt;/P&gt;
&lt;P&gt; app.variable.setContent("MYVAR","new value");&lt;/P&gt;
&lt;P&gt;});&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;I haven't tested this, so I don't actually know that it helps in your case. If it doesn't, please submit a code snippet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Mar 2015 12:40:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/QlikSense-Extension-development-quot-error-from-engine-quot/m-p/753716#M2347</guid>
      <dc:creator>ErikWetterberg</dc:creator>
      <dc:date>2015-03-20T12:40:56Z</dc:date>
    </item>
    <item>
      <title>Re: [QlikSense] Extension development "error from engine"</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/QlikSense-Extension-development-quot-error-from-engine-quot/m-p/753717#M2348</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your answer. &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;But it still doesn't work.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;I attach to this post, the whole folder to illustrate this error.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Sébastien&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2015 14:16:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/QlikSense-Extension-development-quot-error-from-engine-quot/m-p/753717#M2348</guid>
      <dc:creator>sbertoletto</dc:creator>
      <dc:date>2015-03-24T14:16:50Z</dc:date>
    </item>
    <item>
      <title>Re: [QlikSense] Extension development "error from engine"</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/QlikSense-Extension-development-quot-error-from-engine-quot/m-p/753718#M2349</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This syntax does work very well for me (in desktop) :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if( increment % 2 == 0 ){&lt;/P&gt;&lt;P&gt;app.field("Year").selectValues([2011,2012], false, true);&lt;/P&gt;&lt;P&gt;app.variable.setContent("HelloVar","sum({$&amp;lt;Year={2012}&amp;gt;}TotalUnemployment)");&lt;/P&gt;&lt;P&gt;} else {&lt;/P&gt;&lt;P&gt;app.field("Year").selectValues([2013,2014], false, true);&lt;/P&gt;&lt;P&gt;app.variable.setContent("HelloVar","sum({$&amp;lt;Year={2014}&amp;gt;}TotalUnemployment)");&lt;/P&gt;&lt;P&gt;};&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your syntax will not work in Sense 1.0.2. Mare sure you've updated to 1.1 to accept the new simplified selectValues syntax.&lt;/P&gt;&lt;P&gt;See help : &lt;A href="https://help.qlik.com/sense/en-US/developer/#../Subsystems/Workbench/Content/BuildingWebsites/API/Methods/selectValues-method.htm%3FTocPath%3DQlik%2520Sense%2520Workbench%7CAPI%2520reference%7CQlik%2520Sense%2520Mashups%2520API%2520reference%7Cqlik.app.field%7C_____10" title="https://help.qlik.com/sense/en-US/developer/#../Subsystems/Workbench/Content/BuildingWebsites/API/Methods/selectValues-method.htm%3FTocPath%3DQlik%2520Sense%2520Workbench%7CAPI%2520reference%7CQlik%2520Sense%2520Mashups%2520API%2520reference%7Cqlik.app.field%7C_____10"&gt;https://help.qlik.com/sense/en-US/developer/#../Subsystems/Workbench/Content/BuildingWebsites/API/Methods/selectValues-m…&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Mar 2015 07:30:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/QlikSense-Extension-development-quot-error-from-engine-quot/m-p/753718#M2349</guid>
      <dc:creator>yblake</dc:creator>
      <dc:date>2015-03-25T07:30:36Z</dc:date>
    </item>
    <item>
      <title>Re: [QlikSense] Extension development "error from engine"</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/QlikSense-Extension-development-quot-error-from-engine-quot/m-p/753719#M2350</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;It seems like the variable HelloVar does not exists in the app, so I modified the code to add it. This will fail if it already exists, but I just ignore this error:&lt;/P&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_14272777392624081" jivemacro_uid="_14272777392624081" modifiedtitle="true"&gt;
&lt;P&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;var &lt;/SPAN&gt;&lt;SPAN style="color: #458383;"&gt;created &lt;/SPAN&gt;= &lt;SPAN style="color: #000080; font-weight: bold;"&gt;false&lt;/SPAN&gt;;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #000080; font-weight: bold;"&gt;return &lt;/SPAN&gt;{&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #7a7a43;"&gt;paint&lt;/SPAN&gt;: &lt;SPAN style="color: #000080; font-weight: bold;"&gt;function &lt;/SPAN&gt;($element) {&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #000080; font-weight: bold;"&gt;if&lt;/SPAN&gt;( $element.&lt;SPAN style="color: #7a7a43;"&gt;html&lt;/SPAN&gt;() == &lt;SPAN style="color: #008000; font-weight: bold;"&gt;""&lt;/SPAN&gt;) {&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;increment &lt;/SPAN&gt;= &lt;SPAN style="color: #0000ff;"&gt;0&lt;/SPAN&gt;;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $element.&lt;SPAN style="color: #7a7a43;"&gt;html&lt;/SPAN&gt;( &lt;SPAN style="color: #008000; font-weight: bold;"&gt;"Hello world!!&amp;lt;form id=&lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;\"&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-weight: bold;"&gt;target&lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;\"&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-weight: bold;"&gt;&amp;gt;&amp;lt;input type=&lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;\"&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-weight: bold;"&gt;text&lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;\"&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-weight: bold;"&gt; value=&lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;\"&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-weight: bold;"&gt;Hello there&lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;\"&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-weight: bold;"&gt;&amp;gt;&amp;lt;input type=&lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;\"&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-weight: bold;"&gt;submit&lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;\"&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-weight: bold;"&gt; value=&lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;\"&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-weight: bold;"&gt;Go&lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;\"&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-weight: bold;"&gt;&amp;gt;&amp;lt;/form&amp;gt;&amp;lt;div id=&lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;\"&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-weight: bold;"&gt;other&lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;\"&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-weight: bold;"&gt;&amp;gt;Trigger the handler&amp;lt;/div&amp;gt;" &lt;/SPAN&gt;);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #000080; font-weight: bold;"&gt;var &lt;/SPAN&gt;&lt;SPAN style="color: #458383;"&gt;app &lt;/SPAN&gt;= qlik.currApp(&lt;SPAN style="color: #000080; font-weight: bold;"&gt;this&lt;/SPAN&gt;);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #000080; font-weight: bold;"&gt;if&lt;/SPAN&gt;(!&lt;SPAN style="color: #458383;"&gt;created&lt;/SPAN&gt;){&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #458383;"&gt;created &lt;/SPAN&gt;= &lt;SPAN style="color: #000080; font-weight: bold;"&gt;true&lt;/SPAN&gt;;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #458383;"&gt;app&lt;/SPAN&gt;.&lt;SPAN style="color: #7a7a43;"&gt;variable&lt;/SPAN&gt;.&lt;SPAN style="font-style: italic;"&gt;create&lt;/SPAN&gt;(&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"HelloVar"&lt;/SPAN&gt;);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;
&lt;P&gt;.......&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With this change it seems to work. It get the aborted from time to time, but the sum and the selected year both update on every click.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You might get this error if you make several operations quickly after each other, but the framework should be able to handle this automatically.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erik &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Mar 2015 10:10:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/QlikSense-Extension-development-quot-error-from-engine-quot/m-p/753719#M2350</guid>
      <dc:creator>ErikWetterberg</dc:creator>
      <dc:date>2015-03-25T10:10:00Z</dc:date>
    </item>
    <item>
      <title>Re: [QlikSense] Extension development "error from engine"</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/QlikSense-Extension-development-quot-error-from-engine-quot/m-p/753720#M2351</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks again for your answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my App, ‘HelloVar’ is initialized from Navigation -&amp;gt; Load Data. That’s why it is not in the extension code, but maybe I sent you an old version. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don’t know if you have the same behavior but after 4 or 5 clicks in my browser (Firefox), the sum and selected Year both update but the curve doesn’t, and I make sure I don’t make the updates quickly. So I think the framework doesn’t handle very well this abort.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried it in the Qlik Sense Desktop and the behavior is not the same, the abort seems better handled.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sébastien&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Mar 2015 10:54:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/QlikSense-Extension-development-quot-error-from-engine-quot/m-p/753720#M2351</guid>
      <dc:creator>sbertoletto</dc:creator>
      <dc:date>2015-03-25T10:54:33Z</dc:date>
    </item>
    <item>
      <title>Re: [QlikSense] Extension development "error from engine"</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/QlikSense-Extension-development-quot-error-from-engine-quot/m-p/753721#M2352</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;NB : I noted that if I add additional visualizations, Qlik Sense desktop generates unexpected behaviors.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Mar 2015 13:27:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/QlikSense-Extension-development-quot-error-from-engine-quot/m-p/753721#M2352</guid>
      <dc:creator>sbertoletto</dc:creator>
      <dc:date>2015-03-25T13:27:09Z</dc:date>
    </item>
    <item>
      <title>Re: [QlikSense] Extension development "error from engine"</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/QlikSense-Extension-development-quot-error-from-engine-quot/m-p/753722#M2353</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This was a tricky one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have possibly discovered both an engine bug and a client bug. When the code looks like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_14274668190855606" jivemacro_uid="_14274668190855606"&gt;
&lt;P&gt;if( increment % 2 == 0 ){&lt;/P&gt;
&lt;P&gt;&amp;nbsp; //app.variable.setContent("HelloVar","sum({$&amp;lt;Year={2012}&amp;gt;}TotalUnemployment)");&lt;/P&gt;
&lt;P&gt;&amp;nbsp; app.field("Year").selectValues([2011,2012], false, true).then(function(){&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; app.variable.setContent("HelloVar","sum({$&amp;lt;Year={2012}&amp;gt;}TotalUnemployment)");&lt;/P&gt;
&lt;P&gt;&amp;nbsp; });&lt;/P&gt;
&lt;P&gt;&amp;nbsp; } else {&lt;/P&gt;
&lt;P&gt;&amp;nbsp; //app.variable.setContent("HelloVar","sum({$&amp;lt;Year={2014}&amp;gt;}TotalUnemployment)");&lt;/P&gt;
&lt;P&gt;&amp;nbsp; app.field("Year").selectValues([2013,2014], false, true).then(function(){&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; app.variable.setContent("HelloVar","sum({$&amp;lt;Year={2014}&amp;gt;}TotalUnemployment)");&lt;/P&gt;
&lt;P&gt;&amp;nbsp; });&lt;/P&gt;
&lt;P&gt;&amp;nbsp; }&lt;/P&gt;
&lt;P&gt;&amp;nbsp; increment++;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the selectValues call will trigger an evaluation of the chart in the test application (testExt.qvf) ... then the setContent call will trigger an abort on that evaluation. The client will not ask for a new layout in that case (possible client bug) and the Engine will not invalidate the chart during the setContent call (possible engine bug)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The work around is to switch the order of the calls ... instead write like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_14274669924478111" jivemacro_uid="_14274669924478111"&gt;
&lt;P&gt;if( increment % 2 == 0 ){&lt;/P&gt;
&lt;P&gt;&amp;nbsp; app.variable.setContent("HelloVar","sum({$&amp;lt;Year={2012}&amp;gt;}TotalUnemployment)").then(function() {&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; app.field("Year").selectValues([2011,2012], false, true);&lt;/P&gt;
&lt;P&gt;&amp;nbsp; });&lt;/P&gt;
&lt;P&gt;&amp;nbsp; } else {&lt;/P&gt;
&lt;P&gt;&amp;nbsp; app.variable.setContent("HelloVar","sum({$&amp;lt;Year={2014}&amp;gt;}TotalUnemployment)").then(function() {&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; app.field("Year").selectValues([2013,2014], false, true)&lt;/P&gt;
&lt;P&gt;&amp;nbsp; });&lt;/P&gt;
&lt;P&gt;&amp;nbsp; }&lt;/P&gt;
&lt;P&gt;&amp;nbsp; increment++;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now the first call will be aborted sporadically by the second call but the chart will be invalidated and therefor re-calculated. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We will look into this further and solve the bug(s) one way or another.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Mar 2015 14:39:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/QlikSense-Extension-development-quot-error-from-engine-quot/m-p/753722#M2353</guid>
      <dc:creator>Anders-Nilsson</dc:creator>
      <dc:date>2015-03-27T14:39:06Z</dc:date>
    </item>
    <item>
      <title>Re: [QlikSense] Extension development "error from engine"</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/QlikSense-Extension-development-quot-error-from-engine-quot/m-p/753723#M2354</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;Has this engine/client bug already been fixed in sense 2.0.2?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Aug 2015 08:06:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/QlikSense-Extension-development-quot-error-from-engine-quot/m-p/753723#M2354</guid>
      <dc:creator />
      <dc:date>2015-08-18T08:06:49Z</dc:date>
    </item>
  </channel>
</rss>

