<?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: Finding Bookmark selection value in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/Finding-Bookmark-selection-value/m-p/2083445#M18681</link>
    <description>&lt;P&gt;now I see. you're using the extension (capability) api. the app object you're using does not have those engine calls.&lt;/P&gt;
&lt;P&gt;please traverse your app object app.model.enigneApp before using "raw" engine calls. Here's the full example from your point of view:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;define( [ "qlik"
],
function ( qlik) {
	var app = qlik.currApp();
	return {
		support : {
			snapshot: false,
			export: false,
			exportData : false
		},
		paint: async function ($element) {
			//add your rendering code here
			$element.html( "get bookmark set analysis value" );
			const book = await app.model.engineApp.getSetAnalysis(
				{
				"qBookmarkId": "7ac00977-18a7-4aba-b5af-661b23e25909",
				"qStateName": "$"
			});
			console.log("book", book)
		}
	};
} );&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 13 Jun 2023 20:42:38 GMT</pubDate>
    <dc:creator>rankassovitz</dc:creator>
    <dc:date>2023-06-13T20:42:38Z</dc:date>
    <item>
      <title>Finding Bookmark selection value</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Finding-Bookmark-selection-value/m-p/2083185#M18670</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;Im trying to build an extension that shows all the bookmarks, the fields and their selection values.&lt;/P&gt;
&lt;P&gt;I use getList(Bookmarklist...) to get the bookmark ids and the fields, which works.&lt;/P&gt;
&lt;P&gt;I am just really struggling to get the selection values.&lt;/P&gt;
&lt;P&gt;Ive tried&lt;/P&gt;
&lt;P&gt;app.createGenericObject({&lt;BR /&gt;handle: 1,&lt;BR /&gt;method: 'GetSetAnalysis',&lt;BR /&gt;params: {&lt;BR /&gt;qStateName: '',&lt;BR /&gt;qBookmarkId: 'bb780b29fd-d4f4-4405-b790-e1742c94'&lt;BR /&gt;}&lt;BR /&gt;}, reply1 =&amp;gt; {&lt;BR /&gt;console.log('6:'+console.log(JSON.stringify(reply1)))&lt;BR /&gt;});&lt;/P&gt;
&lt;P&gt;Ive tried several other variations of this as well.&lt;/P&gt;
&lt;P&gt;What is weird is that if I enter this into the Engine API explorer then it returns the correct value.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any help would be highly appreciated&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jun 2023 10:10:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Finding-Bookmark-selection-value/m-p/2083185#M18670</guid>
      <dc:creator>bchip01</dc:creator>
      <dc:date>2023-06-13T10:10:23Z</dc:date>
    </item>
    <item>
      <title>Re: Finding Bookmark selection value</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Finding-Bookmark-selection-value/m-p/2083275#M18675</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/180067"&gt;@bchip01&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;It's likely a syntax issue. Please try:&lt;/P&gt;
&lt;DIV&gt;const book = await app.getSetAnalysis({&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; "qBookmarkId": "7ac00977-18a7-4aba-b5af-661b23e25909",&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; "qStateName": "$"&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; });&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;P&gt;console.log(book)&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jun 2023 13:40:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Finding-Bookmark-selection-value/m-p/2083275#M18675</guid>
      <dc:creator>rankassovitz</dc:creator>
      <dc:date>2023-06-13T13:40:21Z</dc:date>
    </item>
    <item>
      <title>Re: Finding Bookmark selection value</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Finding-Bookmark-selection-value/m-p/2083433#M18680</link>
      <description>&lt;P&gt;Hi. Thanks for the response.&lt;/P&gt;
&lt;P&gt;I tried the code but no results yet.&amp;nbsp; I added the code into an async function.&lt;/P&gt;
&lt;P&gt;If I call it with the original code then nothing is returned, if I call it with a dummy text string it returns the text string correctly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;async function getBKValues ( ) {&lt;BR /&gt;var app = qlik.currApp(this);&lt;BR /&gt;/*&lt;BR /&gt;const book = await app.getSetAnalysis({&lt;BR /&gt;"qBookmarkId": "b135617b-b643-4ed4-be7c-7a43cf4gg45",&lt;BR /&gt;"qStateName": "$"&lt;BR /&gt;});&lt;BR /&gt;*/&lt;BR /&gt;var book ="test123";&lt;BR /&gt;console.log("5B: "+JSON.stringify(book));&lt;BR /&gt;return book;&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;//-----------------&lt;/P&gt;
&lt;P&gt;getBKValues()&lt;BR /&gt;.then((data) =&amp;gt; { console.log('1')})&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also the ID's the enter I get from:&lt;/P&gt;
&lt;P&gt;app.getList("BookmarkList", function(reply){&lt;BR /&gt;reply.qBookmarkList.qItems.forEach(function(bookmark){&lt;BR /&gt;&lt;BR /&gt;console.log('1='+bookmark.qInfo.qId);&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jun 2023 20:22:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Finding-Bookmark-selection-value/m-p/2083433#M18680</guid>
      <dc:creator>bchip01</dc:creator>
      <dc:date>2023-06-13T20:22:03Z</dc:date>
    </item>
    <item>
      <title>Re: Finding Bookmark selection value</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Finding-Bookmark-selection-value/m-p/2083445#M18681</link>
      <description>&lt;P&gt;now I see. you're using the extension (capability) api. the app object you're using does not have those engine calls.&lt;/P&gt;
&lt;P&gt;please traverse your app object app.model.enigneApp before using "raw" engine calls. Here's the full example from your point of view:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;define( [ "qlik"
],
function ( qlik) {
	var app = qlik.currApp();
	return {
		support : {
			snapshot: false,
			export: false,
			exportData : false
		},
		paint: async function ($element) {
			//add your rendering code here
			$element.html( "get bookmark set analysis value" );
			const book = await app.model.engineApp.getSetAnalysis(
				{
				"qBookmarkId": "7ac00977-18a7-4aba-b5af-661b23e25909",
				"qStateName": "$"
			});
			console.log("book", book)
		}
	};
} );&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jun 2023 20:42:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Finding-Bookmark-selection-value/m-p/2083445#M18681</guid>
      <dc:creator>rankassovitz</dc:creator>
      <dc:date>2023-06-13T20:42:38Z</dc:date>
    </item>
    <item>
      <title>Re: Finding Bookmark selection value</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Finding-Bookmark-selection-value/m-p/2083552#M18683</link>
      <description>&lt;P&gt;Wow!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks so much, learned a lot from this thread.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jun 2023 06:29:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Finding-Bookmark-selection-value/m-p/2083552#M18683</guid>
      <dc:creator>bchip01</dc:creator>
      <dc:date>2023-06-14T06:29:53Z</dc:date>
    </item>
  </channel>
</rss>

