<?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: Programmatically create a bookmark from selection in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/Programmatically-create-a-bookmark-from-selection/m-p/1801226#M14788</link>
    <description>&lt;P&gt;Yes, that is what we are trying to do (bcqlikuser is my colleague), but we have a problem getting the app instance. When we try location.ActiveApp it terminates the ongoing session in the client.&lt;/P&gt;&lt;P&gt;I have also tried&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;var session = Session.WithApp(appIdentifier, SessionType.Default)&lt;/LI-CODE&gt;&lt;P&gt;but how do you get the app instance out of this, to be able to call CreateGenericBookmark?&lt;/P&gt;</description>
    <pubDate>Wed, 21 Apr 2021 10:00:29 GMT</pubDate>
    <dc:creator>ludmillab</dc:creator>
    <dc:date>2021-04-21T10:00:29Z</dc:date>
    <item>
      <title>Programmatically create a bookmark from selection</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Programmatically-create-a-bookmark-from-selection/m-p/1801200#M14786</link>
      <description>&lt;P&gt;We have a website with an inner Qlik iframe that points to a specific app sheet. We want from outside the iframe programmatically create a bookmark from the selection that the user have done inside the Qlik iframe.&lt;/P&gt;&lt;P&gt;We know which user that is logged into the iframe, we know the app, sheet and we know the sessionid.&lt;/P&gt;&lt;P&gt;Do anyone know how to&amp;nbsp; programmatically create a bookmark (with the selection) with either the Qlik SDK or the REST endpoints (qrs, qps)?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Apr 2021 09:01:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Programmatically-create-a-bookmark-from-selection/m-p/1801200#M14786</guid>
      <dc:creator>bcqlikuser</dc:creator>
      <dc:date>2021-04-21T09:01:03Z</dc:date>
    </item>
    <item>
      <title>Re: Programmatically create a bookmark from selection</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Programmatically-create-a-bookmark-from-selection/m-p/1801208#M14787</link>
      <description>&lt;P&gt;In the theory, if you are connecting as the same user inside and outside the iFrame, the Engine session will be shared and selections applied in the iFrame will already be taken into consideration.&lt;/P&gt;&lt;P&gt;Then all you need to do outside the iFrame to create the bookmark would be to call the API to create a bookmark:&lt;BR /&gt;&lt;A href="https://help.qlik.com/en-US/sense-developer/February2021/Subsystems/APIs/Content/Sense_ClientAPIs/CapabilityAPIs/BookmarkAPI/create-bookmark-method.htm" target="_blank"&gt;https://help.qlik.com/en-US/sense-developer/February2021/Subsystems/APIs/Content/Sense_ClientAPIs/CapabilityAPIs/BookmarkAPI/create-bookmark-method.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Apr 2021 09:21:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Programmatically-create-a-bookmark-from-selection/m-p/1801208#M14787</guid>
      <dc:creator>Damien_V</dc:creator>
      <dc:date>2021-04-21T09:21:55Z</dc:date>
    </item>
    <item>
      <title>Re: Programmatically create a bookmark from selection</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Programmatically-create-a-bookmark-from-selection/m-p/1801226#M14788</link>
      <description>&lt;P&gt;Yes, that is what we are trying to do (bcqlikuser is my colleague), but we have a problem getting the app instance. When we try location.ActiveApp it terminates the ongoing session in the client.&lt;/P&gt;&lt;P&gt;I have also tried&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;var session = Session.WithApp(appIdentifier, SessionType.Default)&lt;/LI-CODE&gt;&lt;P&gt;but how do you get the app instance out of this, to be able to call CreateGenericBookmark?&lt;/P&gt;</description>
      <pubDate>Wed, 21 Apr 2021 10:00:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Programmatically-create-a-bookmark-from-selection/m-p/1801226#M14788</guid>
      <dc:creator>ludmillab</dc:creator>
      <dc:date>2021-04-21T10:00:29Z</dc:date>
    </item>
    <item>
      <title>Re: Programmatically create a bookmark from selection</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Programmatically-create-a-bookmark-from-selection/m-p/1801251#M14790</link>
      <description>&lt;P&gt;I am not too familiar on how you would do it with the .NET SDK, but if you were to use the capability API, it would be something like this:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;HTML page:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;!doctype html&amp;gt;
&amp;lt;html&amp;gt;
&amp;lt;head&amp;gt;
	&amp;lt;meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"&amp;gt;
	&amp;lt;title&amp;gt;Qlik Sense Mashup&amp;lt;/title&amp;gt;
	&amp;lt;meta charset="utf-8"&amp;gt;
	&amp;lt;meta http-equiv="content-type" content="text/html; charset=UTF-8"&amp;gt;
	&amp;lt;meta name="HandheldFriendly" content="True"&amp;gt;
	&amp;lt;meta name="MobileOptimized" content="320"&amp;gt;
	&amp;lt;meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no"&amp;gt;
	&amp;lt;meta name="apple-mobile-web-app-capable" content="yes"&amp;gt;
	&amp;lt;meta name="apple-mobile-web-app-status-bar-style" content="black"&amp;gt;
	&amp;lt;meta http-equiv="cleartype" content="on"&amp;gt;
	&amp;lt;link rel="stylesheet" href="../../resources/autogenerated/qlik-styles.css"&amp;gt;
	&amp;lt;link rel="stylesheet" href="bookmarkandiFrame.css"&amp;gt;
	&amp;lt;script src="../../resources/assets/external/requirejs/require.js"&amp;gt;&amp;lt;/script&amp;gt;
	&amp;lt;script src="bookmarkandiFrame.js"&amp;gt;&amp;lt;/script&amp;gt;
&amp;lt;/head&amp;gt;
&amp;lt;body style="overflow: auto"&amp;gt;
&amp;lt;div class="flex-container"&amp;gt;
	&amp;lt;div&amp;gt;&amp;lt;button id="button1"&amp;gt;Create Bookmark&amp;lt;/button&amp;gt;&amp;lt;/div&amp;gt;
	&amp;lt;div id="QV02" class="qvplaceholder"&amp;gt;&amp;lt;iframe src='https://qlikserver1.domain.local/single/?appid=e56f3f82-ddfe-4229-9ace-4c514c689ff4&amp;amp;sheet=0bf9ccba-7749-46fc-8aba-699e001b6c14' style='border:none;width:100%;height:100%;'&amp;gt;&amp;lt;/iframe&amp;gt;&amp;lt;/div&amp;gt;
&amp;lt;/div&amp;gt;

&amp;lt;!--Error Popup--&amp;gt;
&amp;lt;div id="popup"&amp;gt;
	&amp;lt;button type="button" class="close" data-dismiss="modal" aria-label="Close" id="closePopup"&amp;gt;&amp;lt;span aria-hidden="true"&amp;gt;×&amp;lt;/span&amp;gt;&amp;lt;/button&amp;gt;
	&amp;lt;p id="popupText"&amp;gt;&amp;lt;/p&amp;gt;
&amp;lt;/div&amp;gt;

&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Javascript (bookmarkandiFrame.js)&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;/*
 * Basic responsive mashup template
 * @owner Enter you name here (xxx)
 */
/*
 *    Fill in host and port for Qlik engine
 */
var prefix = window.location.pathname.substr( 0, window.location.pathname.toLowerCase().lastIndexOf( "/extensions" ) + 1 );
var config = {
	host: window.location.hostname,
	prefix: prefix,
	port: window.location.port,
	isSecure: window.location.protocol === "https:"
};
require.config( {
	baseUrl: ( config.isSecure ? "https://" : "http://" ) + config.host + (config.port ? ":" + config.port : "") + config.prefix + "resources"
} );

require( ["js/qlik"], function ( qlik ) {
	qlik.on( "error", function ( error ) {
		$( '#popupText' ).append( error.message + "&amp;lt;br&amp;gt;" );
		$( '#popup' ).fadeIn( 1000 );
	} );
	$( "#closePopup" ).click( function () {
		$( '#popup' ).hide();
	} );

	//callbacks -- inserted here --
	//open apps -- inserted here --
	var app = qlik.openApp('e56f3f82-ddfe-4229-9ace-4c514c689ff4',config);
	
	$( "#button1" ).on( 'click', function () {
			app.bookmark.create('Test','Test bookmark');
		} );

} );&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please also make sure that "Extended Security Environment" is disabled in the virtual proxy settings in the QMC as that would forbid session sharing.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Apr 2021 10:28:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Programmatically-create-a-bookmark-from-selection/m-p/1801251#M14790</guid>
      <dc:creator>Damien_V</dc:creator>
      <dc:date>2021-04-21T10:28:00Z</dc:date>
    </item>
    <item>
      <title>Re: Programmatically create a bookmark from selection</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Programmatically-create-a-bookmark-from-selection/m-p/1967966#M17175</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;
&lt;P&gt;Correct me if I'm wrong, please. This bookmark creation will only work if I use Qlik Sense iFrames, won't it? On the contrary, if I use the Qlik Analytics Platform, I &amp;nbsp;would not be able to do so, would I? Because it does not use licenses whatsoever and the users are anonymous.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Thu, 11 Aug 2022 21:18:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Programmatically-create-a-bookmark-from-selection/m-p/1967966#M17175</guid>
      <dc:creator>Rolando_Montero</dc:creator>
      <dc:date>2022-08-11T21:18:15Z</dc:date>
    </item>
  </channel>
</rss>

