<?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: gotoSheet() in div in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/gotoSheet-in-div/m-p/1721502#M12939</link>
    <description>&lt;P&gt;Maybe you need to prefix it with qlik so "qlik.navigation.gotoSheet(..."&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;The one time I did this I never used the ng-click event tho. I did it with vanilla js event listener and stored the sheet id as a data-attribute on the element.&lt;BR /&gt;So maybe something like:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;link.setAttribute('data-sheet','YourSheetIdHere');

link.addEventListener('click',function(){
    qlik.navigation.gotoSheet(this.getAttribute('data-sheet'));
});&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 24 Jun 2020 01:24:52 GMT</pubDate>
    <dc:creator>devan9876</dc:creator>
    <dc:date>2020-06-24T01:24:52Z</dc:date>
    <item>
      <title>gotoSheet() in div</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/gotoSheet-in-div/m-p/1721103#M12932</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;in my extension I am trying to call gotoSheet() in a div.&lt;/P&gt;&lt;P&gt;My javascript&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var link = document.createElement("div");
link.setAttribute("ng-click", "navigation.gotoSheet('" + linkitem.sheetid + "');");
var span = document.createElement("span");
span.setAttribute("class", "lui-icon lui-icon--play");
span.setAttribute("area-hidden", "true");
link.append(span);
var span1 = document.createElement("span");
span1.innerHTML = "Test";
link.append(span1);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This leads into:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;div ng-click="navigation.gotoSheet('9076ed39-9650-4d60-9298-0e466fd9bb5c');"&amp;gt;
&amp;lt;span class="lui-icon lui-icon--play" area-hidden="true"&amp;gt;&amp;lt;/span&amp;gt;
&amp;lt;span&amp;gt;Test&amp;lt;/span&amp;gt;
&amp;lt;/div&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It doesn't do anything when clicking on that div.&lt;/P&gt;&lt;P&gt;Someone has an idea?&lt;/P&gt;&lt;P&gt;PS: I tried without the ' but it didn't work as well...&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jun 2020 07:22:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/gotoSheet-in-div/m-p/1721103#M12932</guid>
      <dc:creator>Mich90GSG_o</dc:creator>
      <dc:date>2020-06-23T07:22:45Z</dc:date>
    </item>
    <item>
      <title>Re: gotoSheet() in div</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/gotoSheet-in-div/m-p/1721502#M12939</link>
      <description>&lt;P&gt;Maybe you need to prefix it with qlik so "qlik.navigation.gotoSheet(..."&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;The one time I did this I never used the ng-click event tho. I did it with vanilla js event listener and stored the sheet id as a data-attribute on the element.&lt;BR /&gt;So maybe something like:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;link.setAttribute('data-sheet','YourSheetIdHere');

link.addEventListener('click',function(){
    qlik.navigation.gotoSheet(this.getAttribute('data-sheet'));
});&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jun 2020 01:24:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/gotoSheet-in-div/m-p/1721502#M12939</guid>
      <dc:creator>devan9876</dc:creator>
      <dc:date>2020-06-24T01:24:52Z</dc:date>
    </item>
    <item>
      <title>Re: gotoSheet() in div</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/gotoSheet-in-div/m-p/1721635#M12941</link>
      <description>&lt;P&gt;Man, this is perfect and works instantly!!!!&amp;nbsp;&lt;/P&gt;&lt;P&gt;The first qlik.navigation does not work (I don't know why) - but your second hint works fine!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks you so much!&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jun 2020 09:52:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/gotoSheet-in-div/m-p/1721635#M12941</guid>
      <dc:creator>Mich90GSG_o</dc:creator>
      <dc:date>2020-06-24T09:52:01Z</dc:date>
    </item>
  </channel>
</rss>

