<?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: Enigma.js get app list -&amp;gt;filter and open selected app in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/Enigma-js-get-app-list-gt-filter-and-open-selected-app/m-p/121348#M1703</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Jacek,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have just added one line to open the app which you wanted&lt;/P&gt;&lt;P&gt;here's the code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #569cd6;"&gt;const&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #9cdcfe;"&gt;createSession&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #dcdcaa;"&gt;require&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #ce9178;"&gt;'./session'&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #569cd6;"&gt;var&lt;/SPAN&gt; &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #9cdcfe;"&gt;fs&lt;/SPAN&gt; = &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #dcdcaa;"&gt;require&lt;/SPAN&gt;(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ce9178;"&gt;'fs'&lt;/SPAN&gt;);&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #569cd6;"&gt;const&lt;/SPAN&gt; &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #9cdcfe;"&gt;session&lt;/SPAN&gt; = &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #dcdcaa;"&gt;createSession&lt;/SPAN&gt;();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #9cdcfe;"&gt;session&lt;/SPAN&gt;.&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #dcdcaa;"&gt;open&lt;/SPAN&gt;()&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;.&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #dcdcaa;"&gt;then&lt;/SPAN&gt;(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #569cd6;"&gt;function&lt;/SPAN&gt;(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #9cdcfe;"&gt;global&lt;/SPAN&gt;) {&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #9cdcfe;"&gt;global&lt;/SPAN&gt;.&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #dcdcaa;"&gt;getDocList&lt;/SPAN&gt;().&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #dcdcaa;"&gt;then&lt;/SPAN&gt;(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #569cd6;"&gt;function&lt;/SPAN&gt;(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #9cdcfe;"&gt;docList&lt;/SPAN&gt;) {&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #4ec9b0;"&gt;console&lt;/SPAN&gt;.&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #dcdcaa;"&gt;log&lt;/SPAN&gt;(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #4ec9b0;"&gt;JSON&lt;/SPAN&gt;.&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #dcdcaa;"&gt;stringify&lt;/SPAN&gt;(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #9cdcfe;"&gt;docList&lt;/SPAN&gt;));&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #c586c0;"&gt;for&lt;/SPAN&gt; (&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #9cdcfe;"&gt;i&lt;/SPAN&gt; = &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #b5cea8;"&gt;0&lt;/SPAN&gt;; &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #9cdcfe;"&gt;i&lt;/SPAN&gt; &amp;lt; &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #9cdcfe;"&gt;docList&lt;/SPAN&gt;.&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #9cdcfe;"&gt;length&lt;/SPAN&gt;; &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #9cdcfe;"&gt;i&lt;/SPAN&gt;++) {&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #569cd6;"&gt;var&lt;/SPAN&gt; &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #9cdcfe;"&gt;AppName&lt;/SPAN&gt; = &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #9cdcfe;"&gt;docList&lt;/SPAN&gt;[&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #9cdcfe;"&gt;i&lt;/SPAN&gt;].&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #9cdcfe;"&gt;qDocName&lt;/SPAN&gt;;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #4ec9b0;"&gt;console&lt;/SPAN&gt;.&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #dcdcaa;"&gt;log&lt;/SPAN&gt;(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ce9178;"&gt;'Field list:'&lt;/SPAN&gt;,&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #4ec9b0;"&gt;JSON&lt;/SPAN&gt;.&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #dcdcaa;"&gt;stringify&lt;/SPAN&gt;(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #9cdcfe;"&gt;AppName&lt;/SPAN&gt;));&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;}&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #569cd6;"&gt;var&lt;/SPAN&gt; &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #9cdcfe;"&gt;docId&lt;/SPAN&gt; = &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #9cdcfe;"&gt;docList&lt;/SPAN&gt;.&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #dcdcaa;"&gt;filter&lt;/SPAN&gt;(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #9cdcfe;"&gt;obj&lt;/SPAN&gt; &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #569cd6;"&gt;=&amp;gt;&lt;/SPAN&gt; &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #9cdcfe;"&gt;obj&lt;/SPAN&gt;.&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #9cdcfe;"&gt;qTitle&lt;/SPAN&gt; ==&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ce9178;"&gt;'test222'&lt;/SPAN&gt; )[&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #b5cea8;"&gt;0&lt;/SPAN&gt;].&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #9cdcfe;"&gt;qDocId&lt;/SPAN&gt;;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #4ec9b0;"&gt;console&lt;/SPAN&gt;.&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #dcdcaa;"&gt;log&lt;/SPAN&gt;(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #9cdcfe;"&gt;docId&lt;/SPAN&gt;);&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;global.openDoc(&lt;SPAN style="color: #9cdcfe; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;docId&lt;/SPAN&gt;); //this is the line i have added&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #9cdcfe;"&gt;session&lt;/SPAN&gt;.&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #dcdcaa;"&gt;close&lt;/SPAN&gt;();&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #c586c0;"&gt;return&lt;/SPAN&gt; &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #9cdcfe;"&gt;docId&lt;/SPAN&gt;;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;}, &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #569cd6;"&gt;function&lt;/SPAN&gt;(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #9cdcfe;"&gt;err&lt;/SPAN&gt;) { &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #4ec9b0;"&gt;console&lt;/SPAN&gt;.&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #dcdcaa;"&gt;log&lt;/SPAN&gt;(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ce9178;"&gt;'5'&lt;/SPAN&gt;)})&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;}, &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #569cd6;"&gt;function&lt;/SPAN&gt;(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #9cdcfe;"&gt;err&lt;/SPAN&gt;) { &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #4ec9b0;"&gt;console&lt;/SPAN&gt;.&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #dcdcaa;"&gt;log&lt;/SPAN&gt;(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ce9178;"&gt;'It seems Sense is not responding'&lt;/SPAN&gt;)});&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Try this &lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Thanks &amp;amp; regards,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Prashant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Oct 2018 12:01:50 GMT</pubDate>
    <dc:creator>Prashant_Naik</dc:creator>
    <dc:date>2018-10-17T12:01:50Z</dc:date>
    <item>
      <title>Enigma.js get app list -&gt;filter and open selected app</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Enigma-js-get-app-list-gt-filter-and-open-selected-app/m-p/121347#M1702</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;firstly i want to say that i'm totally newbie in javascript. What i want to do is get app list from server, then filter returned array to get 1 app and then open that app and use app methods to get for example list of dimensions. &lt;/P&gt;&lt;P&gt;I've managed to get app list from server and to filter that result to get 1 appId. But i don't know how to use second global function method to open that app. Here is my code:&lt;/P&gt;&lt;P style="color: #d4d4d4; background-color: #1e1e1e; font-family: Consolas, 'Courier New', monospace; font-size: 14px;"&gt;&lt;/P&gt;&lt;DIV&gt;&lt;SPAN style="color: #569cd6;"&gt;const&lt;/SPAN&gt; &lt;SPAN style="color: #9cdcfe;"&gt;createSession&lt;/SPAN&gt; = &lt;SPAN style="color: #dcdcaa;"&gt;require&lt;/SPAN&gt;(&lt;SPAN style="color: #ce9178;"&gt;'./session'&lt;/SPAN&gt;);&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #569cd6;"&gt;var&lt;/SPAN&gt; &lt;SPAN style="color: #9cdcfe;"&gt;fs&lt;/SPAN&gt; = &lt;SPAN style="color: #dcdcaa;"&gt;require&lt;/SPAN&gt;(&lt;SPAN style="color: #ce9178;"&gt;'fs'&lt;/SPAN&gt;);&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #569cd6;"&gt;const&lt;/SPAN&gt; &lt;SPAN style="color: #9cdcfe;"&gt;session&lt;/SPAN&gt; = &lt;SPAN style="color: #dcdcaa;"&gt;createSession&lt;/SPAN&gt;();&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;SPAN style="color: #9cdcfe;"&gt;session&lt;/SPAN&gt;.&lt;SPAN style="color: #dcdcaa;"&gt;open&lt;/SPAN&gt;()&lt;/P&gt;&lt;P&gt;.&lt;SPAN style="color: #dcdcaa;"&gt;then&lt;/SPAN&gt;(&lt;SPAN style="color: #569cd6;"&gt;function&lt;/SPAN&gt;(&lt;SPAN style="color: #9cdcfe;"&gt;global&lt;/SPAN&gt;) {&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #9cdcfe;"&gt;global&lt;/SPAN&gt;.&lt;SPAN style="color: #dcdcaa;"&gt;getDocList&lt;/SPAN&gt;().&lt;SPAN style="color: #dcdcaa;"&gt;then&lt;/SPAN&gt;(&lt;SPAN style="color: #569cd6;"&gt;function&lt;/SPAN&gt;(&lt;SPAN style="color: #9cdcfe;"&gt;docList&lt;/SPAN&gt;) {&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;SPAN style="color: #4ec9b0;"&gt;console&lt;/SPAN&gt;.&lt;SPAN style="color: #dcdcaa;"&gt;log&lt;/SPAN&gt;(&lt;SPAN style="color: #4ec9b0;"&gt;JSON&lt;/SPAN&gt;.&lt;SPAN style="color: #dcdcaa;"&gt;stringify&lt;/SPAN&gt;(&lt;SPAN style="color: #9cdcfe;"&gt;docList&lt;/SPAN&gt;));&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #c586c0;"&gt;for&lt;/SPAN&gt; (&lt;SPAN style="color: #9cdcfe;"&gt;i&lt;/SPAN&gt; = &lt;SPAN style="color: #b5cea8;"&gt;0&lt;/SPAN&gt;; &lt;SPAN style="color: #9cdcfe;"&gt;i&lt;/SPAN&gt; &amp;lt; &lt;SPAN style="color: #9cdcfe;"&gt;docList&lt;/SPAN&gt;.&lt;SPAN style="color: #9cdcfe;"&gt;length&lt;/SPAN&gt;; &lt;SPAN style="color: #9cdcfe;"&gt;i&lt;/SPAN&gt;++) {&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #569cd6;"&gt;var&lt;/SPAN&gt; &lt;SPAN style="color: #9cdcfe;"&gt;AppName&lt;/SPAN&gt; = &lt;SPAN style="color: #9cdcfe;"&gt;docList&lt;/SPAN&gt;[&lt;SPAN style="color: #9cdcfe;"&gt;i&lt;/SPAN&gt;].&lt;SPAN style="color: #9cdcfe;"&gt;qDocName&lt;/SPAN&gt;;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #4ec9b0;"&gt;console&lt;/SPAN&gt;.&lt;SPAN style="color: #dcdcaa;"&gt;log&lt;/SPAN&gt;(&lt;SPAN style="color: #ce9178;"&gt;'Field list:'&lt;/SPAN&gt;,&lt;SPAN style="color: #4ec9b0;"&gt;JSON&lt;/SPAN&gt;.&lt;SPAN style="color: #dcdcaa;"&gt;stringify&lt;/SPAN&gt;(&lt;SPAN style="color: #9cdcfe;"&gt;AppName&lt;/SPAN&gt;));&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #569cd6;"&gt;var&lt;/SPAN&gt; &lt;SPAN style="color: #9cdcfe;"&gt;docId&lt;/SPAN&gt; = &lt;SPAN style="color: #9cdcfe;"&gt;docList&lt;/SPAN&gt;.&lt;SPAN style="color: #dcdcaa;"&gt;filter&lt;/SPAN&gt;(&lt;SPAN style="color: #9cdcfe;"&gt;obj&lt;/SPAN&gt; &lt;SPAN style="color: #569cd6;"&gt;=&amp;gt;&lt;/SPAN&gt; &lt;SPAN style="color: #9cdcfe;"&gt;obj&lt;/SPAN&gt;.&lt;SPAN style="color: #9cdcfe;"&gt;qTitle&lt;/SPAN&gt; ==&lt;SPAN style="color: #ce9178;"&gt;'test222'&lt;/SPAN&gt; )[&lt;SPAN style="color: #b5cea8;"&gt;0&lt;/SPAN&gt;].&lt;SPAN style="color: #9cdcfe;"&gt;qDocId&lt;/SPAN&gt;;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #4ec9b0;"&gt;console&lt;/SPAN&gt;.&lt;SPAN style="color: #dcdcaa;"&gt;log&lt;/SPAN&gt;(&lt;SPAN style="color: #9cdcfe;"&gt;docId&lt;/SPAN&gt;);&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #9cdcfe;"&gt;session&lt;/SPAN&gt;.&lt;SPAN style="color: #dcdcaa;"&gt;close&lt;/SPAN&gt;();&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #c586c0;"&gt;return&lt;/SPAN&gt; &lt;SPAN style="color: #9cdcfe;"&gt;docId&lt;/SPAN&gt;;&lt;/P&gt;&lt;P&gt;}, &lt;SPAN style="color: #569cd6;"&gt;function&lt;/SPAN&gt;(&lt;SPAN style="color: #9cdcfe;"&gt;err&lt;/SPAN&gt;) { &lt;SPAN style="color: #4ec9b0;"&gt;console&lt;/SPAN&gt;.&lt;SPAN style="color: #dcdcaa;"&gt;log&lt;/SPAN&gt;(&lt;SPAN style="color: #ce9178;"&gt;'5'&lt;/SPAN&gt;)})&lt;/P&gt;&lt;P&gt;}, &lt;SPAN style="color: #569cd6;"&gt;function&lt;/SPAN&gt;(&lt;SPAN style="color: #9cdcfe;"&gt;err&lt;/SPAN&gt;) { &lt;SPAN style="color: #4ec9b0;"&gt;console&lt;/SPAN&gt;.&lt;SPAN style="color: #dcdcaa;"&gt;log&lt;/SPAN&gt;(&lt;SPAN style="color: #ce9178;"&gt;'It seems Sense is not responding'&lt;/SPAN&gt;)});&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to pass docId to global.OpenApp() method &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope you will help me!&lt;/P&gt;&lt;P&gt;Thanks &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; &lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2018 15:08:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Enigma-js-get-app-list-gt-filter-and-open-selected-app/m-p/121347#M1702</guid>
      <dc:creator>jacek_mossakows</dc:creator>
      <dc:date>2018-09-12T15:08:12Z</dc:date>
    </item>
    <item>
      <title>Re: Enigma.js get app list -&gt;filter and open selected app</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Enigma-js-get-app-list-gt-filter-and-open-selected-app/m-p/121348#M1703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Jacek,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have just added one line to open the app which you wanted&lt;/P&gt;&lt;P&gt;here's the code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #569cd6;"&gt;const&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #9cdcfe;"&gt;createSession&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #dcdcaa;"&gt;require&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #ce9178;"&gt;'./session'&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #569cd6;"&gt;var&lt;/SPAN&gt; &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #9cdcfe;"&gt;fs&lt;/SPAN&gt; = &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #dcdcaa;"&gt;require&lt;/SPAN&gt;(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ce9178;"&gt;'fs'&lt;/SPAN&gt;);&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #569cd6;"&gt;const&lt;/SPAN&gt; &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #9cdcfe;"&gt;session&lt;/SPAN&gt; = &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #dcdcaa;"&gt;createSession&lt;/SPAN&gt;();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #9cdcfe;"&gt;session&lt;/SPAN&gt;.&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #dcdcaa;"&gt;open&lt;/SPAN&gt;()&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;.&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #dcdcaa;"&gt;then&lt;/SPAN&gt;(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #569cd6;"&gt;function&lt;/SPAN&gt;(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #9cdcfe;"&gt;global&lt;/SPAN&gt;) {&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #9cdcfe;"&gt;global&lt;/SPAN&gt;.&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #dcdcaa;"&gt;getDocList&lt;/SPAN&gt;().&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #dcdcaa;"&gt;then&lt;/SPAN&gt;(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #569cd6;"&gt;function&lt;/SPAN&gt;(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #9cdcfe;"&gt;docList&lt;/SPAN&gt;) {&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #4ec9b0;"&gt;console&lt;/SPAN&gt;.&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #dcdcaa;"&gt;log&lt;/SPAN&gt;(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #4ec9b0;"&gt;JSON&lt;/SPAN&gt;.&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #dcdcaa;"&gt;stringify&lt;/SPAN&gt;(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #9cdcfe;"&gt;docList&lt;/SPAN&gt;));&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #c586c0;"&gt;for&lt;/SPAN&gt; (&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #9cdcfe;"&gt;i&lt;/SPAN&gt; = &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #b5cea8;"&gt;0&lt;/SPAN&gt;; &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #9cdcfe;"&gt;i&lt;/SPAN&gt; &amp;lt; &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #9cdcfe;"&gt;docList&lt;/SPAN&gt;.&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #9cdcfe;"&gt;length&lt;/SPAN&gt;; &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #9cdcfe;"&gt;i&lt;/SPAN&gt;++) {&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #569cd6;"&gt;var&lt;/SPAN&gt; &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #9cdcfe;"&gt;AppName&lt;/SPAN&gt; = &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #9cdcfe;"&gt;docList&lt;/SPAN&gt;[&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #9cdcfe;"&gt;i&lt;/SPAN&gt;].&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #9cdcfe;"&gt;qDocName&lt;/SPAN&gt;;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #4ec9b0;"&gt;console&lt;/SPAN&gt;.&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #dcdcaa;"&gt;log&lt;/SPAN&gt;(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ce9178;"&gt;'Field list:'&lt;/SPAN&gt;,&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #4ec9b0;"&gt;JSON&lt;/SPAN&gt;.&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #dcdcaa;"&gt;stringify&lt;/SPAN&gt;(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #9cdcfe;"&gt;AppName&lt;/SPAN&gt;));&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;}&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #569cd6;"&gt;var&lt;/SPAN&gt; &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #9cdcfe;"&gt;docId&lt;/SPAN&gt; = &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #9cdcfe;"&gt;docList&lt;/SPAN&gt;.&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #dcdcaa;"&gt;filter&lt;/SPAN&gt;(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #9cdcfe;"&gt;obj&lt;/SPAN&gt; &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #569cd6;"&gt;=&amp;gt;&lt;/SPAN&gt; &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #9cdcfe;"&gt;obj&lt;/SPAN&gt;.&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #9cdcfe;"&gt;qTitle&lt;/SPAN&gt; ==&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ce9178;"&gt;'test222'&lt;/SPAN&gt; )[&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #b5cea8;"&gt;0&lt;/SPAN&gt;].&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #9cdcfe;"&gt;qDocId&lt;/SPAN&gt;;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #4ec9b0;"&gt;console&lt;/SPAN&gt;.&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #dcdcaa;"&gt;log&lt;/SPAN&gt;(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #9cdcfe;"&gt;docId&lt;/SPAN&gt;);&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;global.openDoc(&lt;SPAN style="color: #9cdcfe; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;docId&lt;/SPAN&gt;); //this is the line i have added&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #9cdcfe;"&gt;session&lt;/SPAN&gt;.&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #dcdcaa;"&gt;close&lt;/SPAN&gt;();&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #c586c0;"&gt;return&lt;/SPAN&gt; &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #9cdcfe;"&gt;docId&lt;/SPAN&gt;;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;}, &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #569cd6;"&gt;function&lt;/SPAN&gt;(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #9cdcfe;"&gt;err&lt;/SPAN&gt;) { &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #4ec9b0;"&gt;console&lt;/SPAN&gt;.&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #dcdcaa;"&gt;log&lt;/SPAN&gt;(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ce9178;"&gt;'5'&lt;/SPAN&gt;)})&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;}, &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #569cd6;"&gt;function&lt;/SPAN&gt;(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #9cdcfe;"&gt;err&lt;/SPAN&gt;) { &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #4ec9b0;"&gt;console&lt;/SPAN&gt;.&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #dcdcaa;"&gt;log&lt;/SPAN&gt;(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ce9178;"&gt;'It seems Sense is not responding'&lt;/SPAN&gt;)});&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Try this &lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Thanks &amp;amp; regards,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Prashant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Oct 2018 12:01:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Enigma-js-get-app-list-gt-filter-and-open-selected-app/m-p/121348#M1703</guid>
      <dc:creator>Prashant_Naik</dc:creator>
      <dc:date>2018-10-17T12:01:50Z</dc:date>
    </item>
  </channel>
</rss>

