<?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 CreateBookmarkEx not working as it should in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/CreateBookmarkEx-not-working-as-it-should/m-p/1898289#M16361</link>
    <description>&lt;P&gt;I have an issue that arise when I try to use the CreateBookmarkEx-method within an extension using QIX.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I first go to a published application, makes some choices in a table and rearrange the columns.&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Then I use the Engine API explorer and create a bookmark using&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;CreateBookmarkEx:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bild01.png" style="width: 416px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/73207i9206176509E637F1/image-size/large?v=v2&amp;amp;px=999" role="button" title="bild01.png" alt="bild01.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The bookmark is created with the option use current layout setting set to "saved":&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bild02.png" style="width: 569px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/73208iD06A58CF1793DD8A/image-size/large?v=v2&amp;amp;px=999" role="button" title="bild02.png" alt="bild02.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But if then create an extension and use QIX and&amp;nbsp;createBookmarkEx-method within the same application (within the same session as when I made the call in the Engine-API explorer), the bookmark is created but the option use current layout setting is not set to "saved":&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;define( ["qlik", "text!./template.html"],
	function ( qlik, template ) {	
		return {
			template: template,
			support: {
				snapshot: false,
				export: false,
				exportData: false
			},
			paint: function ($element, layout) {
				var app = qlik.currApp(this);
				var qix = this.backendApi.model.enigmaModel.session;

				qix.app.createBookmarkEx({
					"qProp": {
						"qInfo": {
							"qId": "",
							"qType": "bookmark"
						},
						"qMetaDef": {
							"title": "bookmark-test-02",
							"description": "desc"
						}
					}
				});		

				return qlik.Promise.resolve();
			},
			controller: ['$scope', function ( $scope ) {
			}]
		};
	} );

&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;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bild03.png" style="width: 546px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/73209i626C24A6E0B39ABD/image-size/large?v=v2&amp;amp;px=999" role="button" title="bild03.png" alt="bild03.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Since the bookmark is created the method&amp;nbsp;exists, but it doesn't seems to work in the same way as it does in the Engine API-explorer. What can I do so that the layout setting is being set to saved?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;Jesper&lt;/P&gt;</description>
    <pubDate>Mon, 28 Feb 2022 13:58:24 GMT</pubDate>
    <dc:creator>_jespers_</dc:creator>
    <dc:date>2022-02-28T13:58:24Z</dc:date>
    <item>
      <title>CreateBookmarkEx not working as it should</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/CreateBookmarkEx-not-working-as-it-should/m-p/1898289#M16361</link>
      <description>&lt;P&gt;I have an issue that arise when I try to use the CreateBookmarkEx-method within an extension using QIX.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I first go to a published application, makes some choices in a table and rearrange the columns.&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Then I use the Engine API explorer and create a bookmark using&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;CreateBookmarkEx:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bild01.png" style="width: 416px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/73207i9206176509E637F1/image-size/large?v=v2&amp;amp;px=999" role="button" title="bild01.png" alt="bild01.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The bookmark is created with the option use current layout setting set to "saved":&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bild02.png" style="width: 569px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/73208iD06A58CF1793DD8A/image-size/large?v=v2&amp;amp;px=999" role="button" title="bild02.png" alt="bild02.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But if then create an extension and use QIX and&amp;nbsp;createBookmarkEx-method within the same application (within the same session as when I made the call in the Engine-API explorer), the bookmark is created but the option use current layout setting is not set to "saved":&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;define( ["qlik", "text!./template.html"],
	function ( qlik, template ) {	
		return {
			template: template,
			support: {
				snapshot: false,
				export: false,
				exportData: false
			},
			paint: function ($element, layout) {
				var app = qlik.currApp(this);
				var qix = this.backendApi.model.enigmaModel.session;

				qix.app.createBookmarkEx({
					"qProp": {
						"qInfo": {
							"qId": "",
							"qType": "bookmark"
						},
						"qMetaDef": {
							"title": "bookmark-test-02",
							"description": "desc"
						}
					}
				});		

				return qlik.Promise.resolve();
			},
			controller: ['$scope', function ( $scope ) {
			}]
		};
	} );

&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;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bild03.png" style="width: 546px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/73209i626C24A6E0B39ABD/image-size/large?v=v2&amp;amp;px=999" role="button" title="bild03.png" alt="bild03.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Since the bookmark is created the method&amp;nbsp;exists, but it doesn't seems to work in the same way as it does in the Engine API-explorer. What can I do so that the layout setting is being set to saved?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;Jesper&lt;/P&gt;</description>
      <pubDate>Mon, 28 Feb 2022 13:58:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/CreateBookmarkEx-not-working-as-it-should/m-p/1898289#M16361</guid>
      <dc:creator>_jespers_</dc:creator>
      <dc:date>2022-02-28T13:58:24Z</dc:date>
    </item>
    <item>
      <title>Re: CreateBookmarkEx not working as it should</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/CreateBookmarkEx-not-working-as-it-should/m-p/2134833#M19421</link>
      <description>&lt;P&gt;Good morning&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/37627"&gt;@_jespers_&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I've successfully executed code similar to the one you shared and was able to save the layout. Nevertheless, even though the bookmark indicates that the layout is saved (marked as "saved layout: True"), in practice, the layout doesn't seem to persist. For instance, fields in a table revert to their default positions. Have you encountered and resolved this issue?&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;var app = qlik.currApp(this);
var qix = this.backendApi.model.enigmaModel.session;
var sheet_id = qlik.navigation.getCurrentSheetId().sheetId;

qix.app.createBookmarkEx({
			"qProp": {
			"qInfo": {
				"qType": "bookmark"
				},
			"qMetaDef": {
			"title": "Bookmark with Layout",
                	"description": "Bookmark with Layout",
                	"isExtended": true
			},
			"sheetId": sheet_id
			}
});		

return qlik.Promise.resolve();&lt;/LI-CODE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="christianborg_0-1699258644355.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/119379i0D4544AA36477BF5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="christianborg_0-1699258644355.png" alt="christianborg_0-1699258644355.png" /&gt;&lt;/span&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Nov 2023 08:26:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/CreateBookmarkEx-not-working-as-it-should/m-p/2134833#M19421</guid>
      <dc:creator>christianborg</dc:creator>
      <dc:date>2023-11-06T08:26:38Z</dc:date>
    </item>
  </channel>
</rss>

