<?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: Qlik Sense .NET SDK: How to save layout when creating a bookmark in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Sense-NET-SDK-How-to-save-layout-when-creating-a-bookmark/m-p/1813549#M15077</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/139504"&gt;@ludmillab&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Glad to see that you could find a solution.&lt;/P&gt;&lt;P&gt;That is correct.&lt;/P&gt;&lt;P&gt;CreateGenericBookmark (.NET SDK) / CreateBookmark (Engine API) do not save the layout.&lt;/P&gt;&lt;P&gt;CreateBookmarkEx (.NET SDK) / CreateBookmarkEx (Engine API) will save the layout.&lt;/P&gt;</description>
    <pubDate>Tue, 08 Jun 2021 08:36:54 GMT</pubDate>
    <dc:creator>Damien_V</dc:creator>
    <dc:date>2021-06-08T08:36:54Z</dc:date>
    <item>
      <title>Qlik Sense .NET SDK: How to save layout when creating a bookmark</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Sense-NET-SDK-How-to-save-layout-when-creating-a-bookmark/m-p/1811822#M15019</link>
      <description>&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;We have implemented saving a bookmark in our C# .NET application:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;using var app = location.App(appIdentifier, session);
var metadef = new NxMetaDef();
metadef.Set("title", title);
metadef.Set("description", description);
var createBMResult = app.CreateGenericBookmark(
new GenericBookmarkProperties
{
    Info = new NxInfo
       {
           Id = string.Empty,
           Type = "bookmark"
       },
       MetaDef = metadef
     });

var bookmark = app.GetGenericBookmark(createBMResult.Info.Id);
bookmark.Publish();&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We would like to also save the layout with the bookmark. How do we achieve this?&lt;BR /&gt;(When creating a bookmark in Qlik you can check the alternative "Save layout". How is this done programmatically?)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="create_bm.PNG" style="width: 604px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/56010i6A1A379A06502249/image-size/large?v=v2&amp;amp;px=999" role="button" title="create_bm.PNG" alt="create_bm.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 31 May 2021 13:35:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Sense-NET-SDK-How-to-save-layout-when-creating-a-bookmark/m-p/1811822#M15019</guid>
      <dc:creator>ludmillab</dc:creator>
      <dc:date>2021-05-31T13:35:22Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Sense .NET SDK: How to save layout when creating a bookmark</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Sense-NET-SDK-How-to-save-layout-when-creating-a-bookmark/m-p/1813533#M15076</link>
      <description>&lt;P&gt;I found a solution that works:&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;using var app = location.App(appIdentifier, session);
                var metadef = new NxMetaDef();
                metadef.Set("title", title);
                metadef.Set("description", description);

                // Get the sheet object and its layout and object ids of objects in layout
                var sheetObject = (Sheet)app.GetObject&amp;lt;GenericObject (sheetId);
                var sheetLayout = sheetObject.Layout;
                var idsOfObjectsInSheetLayout = sheetLayout.Cells.Select(x =&amp;gt; x.Name);

                var createBMResult = app.CreateBookmarkEx(
                    new GenericBookmarkProperties
                    {
                        Info = new NxInfo
                        {
                            Id = string.Empty,
                            Type = "bookmark"
                        },
                        MetaDef = metadef
                    },
                    idsOfObjectsInSheetLayout);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jun 2021 07:48:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Sense-NET-SDK-How-to-save-layout-when-creating-a-bookmark/m-p/1813533#M15076</guid>
      <dc:creator>ludmillab</dc:creator>
      <dc:date>2021-06-08T07:48:52Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Sense .NET SDK: How to save layout when creating a bookmark</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Sense-NET-SDK-How-to-save-layout-when-creating-a-bookmark/m-p/1813549#M15077</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/139504"&gt;@ludmillab&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Glad to see that you could find a solution.&lt;/P&gt;&lt;P&gt;That is correct.&lt;/P&gt;&lt;P&gt;CreateGenericBookmark (.NET SDK) / CreateBookmark (Engine API) do not save the layout.&lt;/P&gt;&lt;P&gt;CreateBookmarkEx (.NET SDK) / CreateBookmarkEx (Engine API) will save the layout.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jun 2021 08:36:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Sense-NET-SDK-How-to-save-layout-when-creating-a-bookmark/m-p/1813549#M15077</guid>
      <dc:creator>Damien_V</dc:creator>
      <dc:date>2021-06-08T08:36:54Z</dc:date>
    </item>
  </channel>
</rss>

