<?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: Freeze / Engine crash selecting TWO dimensions (backend.api) in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/Freeze-Engine-crash-selecting-TWO-dimensions-backend-api/m-p/1800948#M14779</link>
    <description>&lt;P&gt;There's a really neat tutorial here which I followed, which works for one dimension, but things go awry with two or more.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it POSSIBLE to select more than one dim, do the API calls need to be daisy-chained to only fire once the first call has had a response?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://opensrc.axisgroup.com/tutorials/extensions/104.%20Make%20it%20Selectable.html" target="_blank"&gt;http://opensrc.axisgroup.com/tutorials/extensions/104.%20Make%20it%20Selectable.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 20 Apr 2021 13:57:21 GMT</pubDate>
    <dc:creator>ForgotMyOldUsername</dc:creator>
    <dc:date>2021-04-20T13:57:21Z</dc:date>
    <item>
      <title>Freeze / Engine crash selecting TWO dimensions (backend.api)</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Freeze-Engine-crash-selecting-TWO-dimensions-backend-api/m-p/1798925#M14738</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So two questions really&amp;nbsp; &amp;nbsp;-&amp;nbsp; something janky is going on with my selection method ( non-angular )&amp;nbsp; and the click function.&lt;/P&gt;&lt;P&gt;Here's the code&amp;nbsp; &amp;nbsp; &amp;nbsp;- I store the values to filter in the div as custom attributes that are read by the click function, which mostly works but ( A ) sometimes gets stuck in an inescapable loop (short of closing tab ) and ( B )&amp;nbsp; though the filter values per dimension are reported correctly in the console log, when the 'Selection' is applied , it picks a different number ( inconsistently )&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can find scant documentation that isn't angular based - which I'm trying to avoid as I'd prefer to do it with a single script and 'vanilla' JS.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Update :&amp;nbsp; Is there a better method to select from / filter&amp;nbsp; both dimensions in one call?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;$(document).on('click', '.numbers', function(e){
       //console.log('I clicked on ' + e.target.id );
       var xdim = parseInt($(this).attr('foo'));
       var ydim = parseInt($(this).attr('bar'));
       console.log(hc.qDimensionInfo[0].qFallbackTitle + ':' + xdim + ' // ' +hc.qDimensionInfo[1].qFallbackTitle + ':' + ydim );
       self.backendApi.selectValues(0, [xdim],true);  // Filter 1 ( dim 0  / x )
       self.backendApi.selectValues(1, [ydim],true); // Filter 2  ( dim 1 / y ) 

});&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Aug 2021 18:44:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Freeze-Engine-crash-selecting-TWO-dimensions-backend-api/m-p/1798925#M14738</guid>
      <dc:creator>ForgotMyOldUsername</dc:creator>
      <dc:date>2021-08-13T18:44:03Z</dc:date>
    </item>
    <item>
      <title>Re: Freeze / Engine crash selecting TWO dimensions (backend.api)</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Freeze-Engine-crash-selecting-TWO-dimensions-backend-api/m-p/1800948#M14779</link>
      <description>&lt;P&gt;There's a really neat tutorial here which I followed, which works for one dimension, but things go awry with two or more.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it POSSIBLE to select more than one dim, do the API calls need to be daisy-chained to only fire once the first call has had a response?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://opensrc.axisgroup.com/tutorials/extensions/104.%20Make%20it%20Selectable.html" target="_blank"&gt;http://opensrc.axisgroup.com/tutorials/extensions/104.%20Make%20it%20Selectable.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Apr 2021 13:57:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Freeze-Engine-crash-selecting-TWO-dimensions-backend-api/m-p/1800948#M14779</guid>
      <dc:creator>ForgotMyOldUsername</dc:creator>
      <dc:date>2021-04-20T13:57:21Z</dc:date>
    </item>
    <item>
      <title>Re: Freeze / Engine crash selecting TWO dimensions (backend.api)</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Freeze-Engine-crash-selecting-TWO-dimensions-backend-api/m-p/1801342#M14791</link>
      <description>&lt;P&gt;So I don't know if there's another method , but it seems the backend is calling paint when executed, hence the weirdness when trying to apply two filters.&lt;/P&gt;&lt;P&gt;Has anyone managed to select / filter two dimensions at once?&lt;/P&gt;</description>
      <pubDate>Wed, 21 Apr 2021 13:51:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Freeze-Engine-crash-selecting-TWO-dimensions-backend-api/m-p/1801342#M14791</guid>
      <dc:creator>ForgotMyOldUsername</dc:creator>
      <dc:date>2021-04-21T13:51:29Z</dc:date>
    </item>
    <item>
      <title>Re: Freeze / Engine crash selecting TWO dimensions (backend.api)</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Freeze-Engine-crash-selecting-TWO-dimensions-backend-api/m-p/1804097#M14879</link>
      <description>&lt;P&gt;For anyone searching in the future, the issue wasn't the backend api so much , as it was a jquery issue.&lt;BR /&gt;TL:DR - include an OFF element AND an ON element for handing mouse events that fire Selections.&lt;/P&gt;&lt;P&gt;This effectively makes it 'trigger once' .&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The only changes I made were to specify the element ID and add 'off' like so :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;$element.off('mouseup', '.'+m_id).on('mouseup', '.'+m_id, function(e){
	
	// Get attributes into array 
	var sel_x=[parseInt($(this).attr('xdm'))];
	var sel_y=[parseInt($(this).attr('ydm'))];
	
	if (sel_y.length &amp;gt; 0) self.backendApi.selectValues(1, sel_y,false);
	if (sel_x.length &amp;gt; 0) self.backendApi.selectValues(0, sel_x,false);

});	&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hopefully this saves someone spending a few hours searching forums for issues with the backendAPI&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Apr 2021 08:33:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Freeze-Engine-crash-selecting-TWO-dimensions-backend-api/m-p/1804097#M14879</guid>
      <dc:creator>ForgotMyOldUsername</dc:creator>
      <dc:date>2021-04-30T08:33:59Z</dc:date>
    </item>
  </channel>
</rss>

