<?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 - Get Object layout for an Alternate Dimension in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/Engine-API-Get-Object-layout-for-an-Alternate-Dimension/m-p/1670667#M12230</link>
    <description>&lt;P&gt;Performing Getlayout on an Object via the Engine API Explorer with the following request body&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt;"handle": 2,&lt;BR /&gt;"method": "GetLayout",&lt;BR /&gt;"params": {}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;returns the Object layout (from which&amp;nbsp; I can extract Measure data).&lt;/P&gt;&lt;P&gt;This particular Object though contains 'Alternative Dimensions'.&lt;/P&gt;&lt;P&gt;I would like to know - How can I query the Object layout by a given 'alternate' dimension (in my case, my base dimension is City, and my alternate dimension is State, I would like to query GetLayout by 'state' and not 'city')?&lt;/P&gt;&lt;P&gt;Anyone have any ideas on how to solve this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 03:25:01 GMT</pubDate>
    <dc:creator>ak05</dc:creator>
    <dc:date>2024-11-16T03:25:01Z</dc:date>
    <item>
      <title>Engine API - Get Object layout for an Alternate Dimension</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Engine-API-Get-Object-layout-for-an-Alternate-Dimension/m-p/1670667#M12230</link>
      <description>&lt;P&gt;Performing Getlayout on an Object via the Engine API Explorer with the following request body&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt;"handle": 2,&lt;BR /&gt;"method": "GetLayout",&lt;BR /&gt;"params": {}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;returns the Object layout (from which&amp;nbsp; I can extract Measure data).&lt;/P&gt;&lt;P&gt;This particular Object though contains 'Alternative Dimensions'.&lt;/P&gt;&lt;P&gt;I would like to know - How can I query the Object layout by a given 'alternate' dimension (in my case, my base dimension is City, and my alternate dimension is State, I would like to query GetLayout by 'state' and not 'city')?&lt;/P&gt;&lt;P&gt;Anyone have any ideas on how to solve this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 03:25:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Engine-API-Get-Object-layout-for-an-Alternate-Dimension/m-p/1670667#M12230</guid>
      <dc:creator>ak05</dc:creator>
      <dc:date>2024-11-16T03:25:01Z</dc:date>
    </item>
    <item>
      <title>Re: Engine API - Get Object layout for an Alternate Dimension</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Engine-API-Get-Object-layout-for-an-Alternate-Dimension/m-p/1672155#M12278</link>
      <description>&lt;P&gt;I think the way the client solves this is by having a "container hypercube" in a property named "qLayoutExclude" under the hypercube for the relevant object.&amp;nbsp; The purpose of this hypercube is simply to store the available alternative dimensions. To activate a certain alternative, the client copies the dimension from the "container hypercube" to the real hypercube by modifying the properties of the object.&lt;/P&gt;
&lt;P&gt;So in reality, there is no such thing as an "Alternative dimension" as far as the engine API goes. The way the client implements the functionality is to do on-the-fly modifications to the hypercube even though you're not in edit mode. This is very similar to what the client does when you for instance reorder the columns of a table. After doing so, next time you go to edit mode and click on such a table, you will get a message stating that the object has changed and whether you would like to keep those changes or not.&lt;/P&gt;
&lt;P&gt;In the case of choosing alternative dimensions, this is the type of messages you will see in the websocket traffic when you choose a dimension for a bar chart:&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;{
   "delta":true,
   "handle":9,
   "method":"ApplyPatches",
   "params":[
      [
         {
            "qOp":"replace",
            "qValue":"[{\"qDef\":{\"qGrouping\":\"N\",\"qFieldDefs\":[\"Dim2\"]...,
            "qPath":"/qHyperCubeDef/qDimensions"
         },
         {
            "qOp":"replace",
            "qValue":"[{\"qDef\":{\"qGrouping\":\"N\",\"qFieldDefs\":[\"Dim1\"],...,
            "qPath":"/qHyperCubeDef/qLayoutExclude/qHyperCubeDef/qDimensions"
         }
      ],
      true
   ],
   "id":124,
   "jsonrpc":"2.0"
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Feb 2020 13:45:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Engine-API-Get-Object-layout-for-an-Alternate-Dimension/m-p/1672155#M12278</guid>
      <dc:creator>Øystein_Kolsrud</dc:creator>
      <dc:date>2020-02-04T13:45:24Z</dc:date>
    </item>
  </channel>
</rss>

