<?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 Set Presentation value by macro in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Presentation-value-by-macro/m-p/187650#M51248</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Miguel&lt;/P&gt;&lt;P&gt;In the APIGuide you can track it down to be an IValueExpr which has a v Member, I assume becaues it can not only be a value but the result of an expression.&lt;/P&gt;&lt;P&gt;Some examples show the .v syntax (search for *maxnumshown* in the example texts), others not. It might also just be the default property and does not need to be specified.&lt;/P&gt;&lt;P&gt;have a good time&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 Dec 2009 21:25:52 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-12-21T21:25:52Z</dc:date>
    <item>
      <title>Set Presentation value by macro</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Presentation-value-by-macro/m-p/187644#M51242</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I am allowing the user to switch the group in the chart to see data with different sort orders.&lt;/P&gt;&lt;P&gt;I found the very handy short macro to remove the existing group and add a new one.&lt;/P&gt;&lt;P&gt;Sub SetDimension()&lt;BR /&gt; vSheet = ActiveDocument.Variables( "vSheet" ).GetContent.String&lt;BR /&gt; vGroup = ActiveDocument.Variables( "vGroup" ).GetContent.String&lt;BR /&gt; set c = ActiveDocument.GetSheetObject(vSheet)&lt;BR /&gt; c.RemoveDimension(0)&lt;BR /&gt; c.AddDimension(vGroup)&lt;BR /&gt;End Sub&lt;/P&gt;&lt;P&gt;As my chart has possibly lots of dimension values I need to limit the shown bars using the Presentation / Dimension Limitation settings in the properties dialog.&lt;/P&gt;&lt;P&gt;By replacing the dimension I lose this setting. I have scanned the documents but can not really figure out where these settings are represented in the object tree.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Dec 2009 02:23:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Presentation-value-by-macro/m-p/187644#M51242</guid>
      <dc:creator />
      <dc:date>2009-12-15T02:23:06Z</dc:date>
    </item>
    <item>
      <title>Set Presentation value by macro</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Presentation-value-by-macro/m-p/187645#M51243</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Juergm,&lt;/P&gt;&lt;P&gt;In theory, this must work, but, I think there is a bug, see my attached file, there is a code founded on API guide but it doesn't work.&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Dec 2009 17:19:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Presentation-value-by-macro/m-p/187645#M51243</guid>
      <dc:creator />
      <dc:date>2009-12-15T17:19:33Z</dc:date>
    </item>
    <item>
      <title>chart.presentation.dimension limitations.max visible number</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Presentation-value-by-macro/m-p/187646#M51244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;lacking any response to my first post I have investigated further and found that I can get the values for the "ChartProperties.Presentation.Dimensions limitations" using&lt;/P&gt;&lt;P&gt;set c = ActiveDocument.GetSheetObject(&amp;lt;my sheet&amp;gt;)&lt;BR /&gt; set p = c.GetProperties&lt;BR /&gt; msgbox(p.ChartProperties.MaxNumbersShownInChart)&lt;BR /&gt; msgbox(p.ChartProperties.XAxisScroll)&lt;/P&gt;&lt;P&gt;but still am not able to find the representation of the checkbox for "Max Visible Number (1-100)" in the object tree.&lt;/P&gt;&lt;P&gt;Setting the above two values will give me an empty chart only, when checking on the properties I see that my new settings (which I store with "c.SetProperties p") get removed by qlik or are never accepted.&lt;/P&gt;&lt;P&gt;Background is that I want to switch the dimension to achieve different sorting orders by removing the existing and adding a new group dimension.&lt;/P&gt;&lt;P&gt;Anybody has a hint for that?&lt;/P&gt;&lt;P&gt;P.S. It would be great to get at tooltext for every field in the dialogs showing where in the object tree it is stored ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Dec 2009 02:33:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Presentation-value-by-macro/m-p/187646#M51244</guid>
      <dc:creator />
      <dc:date>2009-12-17T02:33:45Z</dc:date>
    </item>
    <item>
      <title>Set Presentation value by macro</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Presentation-value-by-macro/m-p/187647#M51245</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Miguel&lt;/P&gt;&lt;P&gt;Thanks for your response. If I set in your example the&lt;/P&gt;&lt;P&gt;dims(0).MaxNumberShown = 3&lt;/P&gt;&lt;P&gt;the msgbox shows me 3 but the chart shows 4 columns. Also the controls are not set in the properties dialog.&lt;/P&gt;&lt;P&gt;I assume there is an additional flag to be set which represents the checkbox "Max Visible Number(1-100)" in the dialog&lt;/P&gt;&lt;P&gt;Jürg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Dec 2009 14:35:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Presentation-value-by-macro/m-p/187647#M51245</guid>
      <dc:creator />
      <dc:date>2009-12-17T14:35:26Z</dc:date>
    </item>
    <item>
      <title>Set Presentation value by macro</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Presentation-value-by-macro/m-p/187648#M51246</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Miguel&lt;/P&gt;&lt;P&gt;Finally it works with this setting&lt;/P&gt;&lt;P&gt;dims(0).MaxNumberShown = 1&lt;BR /&gt; dims(0).MaxNumShown.v = 3&lt;/P&gt;&lt;P&gt;It was good to get your input. This pointed me to the fact that each dimension can have a different number of "max visible" and only the first one allows to set the scroll bar.&lt;/P&gt;&lt;P&gt;Juerg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Dec 2009 15:27:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Presentation-value-by-macro/m-p/187648#M51246</guid>
      <dc:creator />
      <dc:date>2009-12-17T15:27:22Z</dc:date>
    </item>
    <item>
      <title>Set Presentation value by macro</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Presentation-value-by-macro/m-p/187649#M51247</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Juerg,&lt;/P&gt;&lt;P&gt;You've got it, but if just use the sentence dims(0).MaxNumShown.v = 3 it works perfectly, the key was the .v how did you find that property extension?&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Dec 2009 20:19:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Presentation-value-by-macro/m-p/187649#M51247</guid>
      <dc:creator />
      <dc:date>2009-12-21T20:19:58Z</dc:date>
    </item>
    <item>
      <title>Set Presentation value by macro</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Presentation-value-by-macro/m-p/187650#M51248</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Miguel&lt;/P&gt;&lt;P&gt;In the APIGuide you can track it down to be an IValueExpr which has a v Member, I assume becaues it can not only be a value but the result of an expression.&lt;/P&gt;&lt;P&gt;Some examples show the .v syntax (search for *maxnumshown* in the example texts), others not. It might also just be the default property and does not need to be specified.&lt;/P&gt;&lt;P&gt;have a good time&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Dec 2009 21:25:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Presentation-value-by-macro/m-p/187650#M51248</guid>
      <dc:creator />
      <dc:date>2009-12-21T21:25:52Z</dc:date>
    </item>
  </channel>
</rss>

