<?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 Engine API: Modify Master Dimension in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/Engine-API-Modify-Master-Dimension/m-p/1194423#M5993</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am still struggling with the Engine API. I tried to create an extension using qSocks that changes the reference field in a master dimension upon user request. As far as I know, I could use two methods to achieve this:&lt;/P&gt;&lt;P&gt;- applyPatches&lt;/P&gt;&lt;P&gt;- setProperties&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the case of applyPatches, the code is running fine but the changes are not reflected in the Qlik Sense application (neither in the desktop or server version). If I check the change via Dimension.getProperties, I see that the change indeed happened. The major difference with the applyPatches function of a generic object is the absence of a boolean to indicate that it concerns a soft patch or not. &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;In the case of setProperties, the changes are reflected in the Qlik Sense application. When the app &lt;/SPAN&gt;is saved by the user on Desktop or refreshed/closed on the server, the master dimensions are however destroyed. They are simply gone and in the objects, the master dimension is &lt;SPAN style="font-size: 13.3333px;"&gt;directly &lt;/SPAN&gt;replaced by the corresponding field of the data model .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can any of you can help me to understand these phenomena and to come to a stable solution?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gregory&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 13 Oct 2016 06:38:32 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-10-13T06:38:32Z</dc:date>
    <item>
      <title>Engine API: Modify Master Dimension</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Engine-API-Modify-Master-Dimension/m-p/1194423#M5993</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am still struggling with the Engine API. I tried to create an extension using qSocks that changes the reference field in a master dimension upon user request. As far as I know, I could use two methods to achieve this:&lt;/P&gt;&lt;P&gt;- applyPatches&lt;/P&gt;&lt;P&gt;- setProperties&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the case of applyPatches, the code is running fine but the changes are not reflected in the Qlik Sense application (neither in the desktop or server version). If I check the change via Dimension.getProperties, I see that the change indeed happened. The major difference with the applyPatches function of a generic object is the absence of a boolean to indicate that it concerns a soft patch or not. &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;In the case of setProperties, the changes are reflected in the Qlik Sense application. When the app &lt;/SPAN&gt;is saved by the user on Desktop or refreshed/closed on the server, the master dimensions are however destroyed. They are simply gone and in the objects, the master dimension is &lt;SPAN style="font-size: 13.3333px;"&gt;directly &lt;/SPAN&gt;replaced by the corresponding field of the data model .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can any of you can help me to understand these phenomena and to come to a stable solution?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gregory&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Oct 2016 06:38:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Engine-API-Modify-Master-Dimension/m-p/1194423#M5993</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-10-13T06:38:32Z</dc:date>
    </item>
    <item>
      <title>Re: Engine API: Modify Master Dimension</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Engine-API-Modify-Master-Dimension/m-p/1194424#M5994</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you saving your changes? On Desktop you would have to persist the entire app via DoSave() and on server a SaveObjects() would be sufficient, otherwise your changes are lost&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Oct 2016 18:35:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Engine-API-Modify-Master-Dimension/m-p/1194424#M5994</guid>
      <dc:creator>Alexander_Thor</dc:creator>
      <dc:date>2016-10-13T18:35:19Z</dc:date>
    </item>
    <item>
      <title>Re: Engine API: Modify Master Dimension</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Engine-API-Modify-Master-Dimension/m-p/1194425#M5995</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Alexander, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply, but I am using DoSave after each change, both on desktop and on server. So that should not be the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't need to do any refresh to make the changes in the master dimension visible, right? I am doing a similar thing to change the titel of objects and there, applyPatches is reflected immediately in the app.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any other ideas? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gregory&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Oct 2016 20:00:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Engine-API-Modify-Master-Dimension/m-p/1194425#M5995</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-10-13T20:00:13Z</dc:date>
    </item>
    <item>
      <title>Re: Engine API: Modify Master Dimension</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Engine-API-Modify-Master-Dimension/m-p/1194426#M5996</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I noticed that the changes made to master dimensions are only reflected in the dashboard if I call the applyPatches method on the sheet objects afterwards. Calling applyPatches on the sheet objects seems to trigger a refresh of the objects, thereby refreshing the master dimensions as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only remaining problem is for master measures: in the list of master measures, the new names are not shown. When I however click to edit a measure, the pop-up window shows the updated name in the name text box. For master dimensions, this behavior is not present and the new names appear immediately. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone any experience with this? Does anyone have a solution?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gregory&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Nov 2016 15:10:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Engine-API-Modify-Master-Dimension/m-p/1194426#M5996</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-11-12T15:10:54Z</dc:date>
    </item>
    <item>
      <title>Re: Engine API: Modify Master Dimension</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Engine-API-Modify-Master-Dimension/m-p/1194427#M5997</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gregory! Did you found solution to the problem? I am also trying to apply patches on master dimensions/measures and it needs to call applypatch on the sheet objects to get refreshed view. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Feb 2017 11:42:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Engine-API-Modify-Master-Dimension/m-p/1194427#M5997</guid>
      <dc:creator>alex_nerush</dc:creator>
      <dc:date>2017-02-09T11:42:38Z</dc:date>
    </item>
    <item>
      <title>Re: Engine API: Modify Master Dimension</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Engine-API-Modify-Master-Dimension/m-p/1194428#M5998</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Alexander,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I didn't manage to resolve the actual cause, but I've implemented a workaround by using promises. I first perform the changes on the master dimensions and measures. Once finished, I trigger the sheet object changes. Everything is reflected as it should be.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gregory&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Feb 2017 08:22:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Engine-API-Modify-Master-Dimension/m-p/1194428#M5998</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-02-12T08:22:03Z</dc:date>
    </item>
  </channel>
</rss>

