<?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: qHyperCubeDef property for table options in Visualization API in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/qHyperCubeDef-property-for-table-options-in-Visualization-API/m-p/1222046#M6364</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can achieve it using the "applyPatches" method on the model of the visualisation but it involves a lot of logic. It's probably quicker to just recreate the visualisation again with your new requirements using the Visualization API. As long as you clean up after yourself and use the close() function on any viz you want to destroy you should be ok.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope that helps&lt;/P&gt;&lt;P&gt;Nick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 Nov 2016 15:34:56 GMT</pubDate>
    <dc:creator>websy1985</dc:creator>
    <dc:date>2016-11-16T15:34:56Z</dc:date>
    <item>
      <title>qHyperCubeDef property for table options in Visualization API</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/qHyperCubeDef-property-for-table-options-in-Visualization-API/m-p/1222045#M6363</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am working now on a project where it is needed to create and update visualization objects on the fly.&lt;/P&gt;&lt;P&gt;For creating objects, I use this function:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0f0f0f; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px; background-color: #f4f4f4;"&gt;qlik.app.visualization.create(type, cols, options)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I don't use cols parameter for defining dimensions and measures. For this I use options parameter called qHyperCubeDef instead. I do this because of consistency - as I understood, you can't update cols for created object - you can only update options by using QVisualization method "setOptions". Many visualization types support setting qHyperCubeDef's qDimensions and qMeasures in options, for example:&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.qlik.com/en-US/sense-developer/3.1/Subsystems/APIs/Content/VisualizationAPI/barchart-properties.htm" title="http://help.qlik.com/en-US/sense-developer/3.1/Subsystems/APIs/Content/VisualizationAPI/barchart-properties.htm"&gt;barchart properties ‒ Qlik Sense &lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.qlik.com/en-US/sense-developer/3.1/Subsystems/APIs/Content/VisualizationAPI/gauge-properties.htm" title="http://help.qlik.com/en-US/sense-developer/3.1/Subsystems/APIs/Content/VisualizationAPI/gauge-properties.htm"&gt;gauge properties ‒ Qlik Sense&amp;nbsp; &lt;/A&gt;&lt;/P&gt;&lt;P&gt;Unfortunately, you can't set &lt;SPAN style="font-size: 13.3333px;"&gt;qHyperCubeDef's qDimensions and qMeasures in options for table - &lt;A href="http://help.qlik.com/en-US/sense-developer/3.1/Subsystems/APIs/Content/VisualizationAPI/table-properties.htm" title="http://help.qlik.com/en-US/sense-developer/3.1/Subsystems/APIs/Content/VisualizationAPI/table-properties.htm"&gt;table properties ‒ Qlik Sense&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;You can only set there something like textAlign or representation for qDimenstions.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question is, am I missing something, or it is not possible to set or update &lt;SPAN style="font-size: 13.3333px;"&gt;qHyperCubeDef's qDimensions and qMeasures for &lt;/SPAN&gt;created on the fly table object by using "setOptions"?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-users/55130"&gt;akl&lt;/A&gt;‌&lt;A href="https://community.qlik.com/qlik-users/169661"&gt;aaz&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Nov 2016 12:05:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/qHyperCubeDef-property-for-table-options-in-Visualization-API/m-p/1222045#M6363</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-11-09T12:05:52Z</dc:date>
    </item>
    <item>
      <title>Re: qHyperCubeDef property for table options in Visualization API</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/qHyperCubeDef-property-for-table-options-in-Visualization-API/m-p/1222046#M6364</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can achieve it using the "applyPatches" method on the model of the visualisation but it involves a lot of logic. It's probably quicker to just recreate the visualisation again with your new requirements using the Visualization API. As long as you clean up after yourself and use the close() function on any viz you want to destroy you should be ok.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope that helps&lt;/P&gt;&lt;P&gt;Nick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Nov 2016 15:34:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/qHyperCubeDef-property-for-table-options-in-Visualization-API/m-p/1222046#M6364</guid>
      <dc:creator>websy1985</dc:creator>
      <dc:date>2016-11-16T15:34:56Z</dc:date>
    </item>
  </channel>
</rss>

