<?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 Chart Dimension through VBScript in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Chart-Dimension-through-VBScript/m-p/144716#M23567</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Guys I have sorted out the problem..just added CLEAR method and its working...thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 22 May 2009 17:44:35 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-05-22T17:44:35Z</dc:date>
    <item>
      <title>Set Chart Dimension through VBScript</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Chart-Dimension-through-VBScript/m-p/144715#M23566</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I am new to Qlikview and trying to learn the scripting. My problem is that I have developed two charts on one sheet "Main" and both belongs to seperate Drill Groups..for example "LDI_WISE_GROUP" and "TOTAL_WISE_GROUP"&lt;/P&gt;&lt;P&gt;So an idea came in my mind to make one chart and set the group as dimension using VBScript Macros and trigger the macro via two buttons.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my code is the following&lt;/P&gt;&lt;P&gt;sub SetLDIDimensions&lt;BR /&gt; set chart = ActiveDocument.GetSheetObject("LDIChart")&lt;BR /&gt; chart.AddDimension("By_LDI_DrillDown")&lt;BR /&gt;end sub&lt;BR /&gt;&lt;BR /&gt;sub SetTotalDimensions&lt;BR /&gt; set chart = ActiveDocument.GetSheetObject("LDIChart")&lt;BR /&gt; chart.AddDimension("By_Total_DrillDown")&lt;BR /&gt;end sub&lt;/P&gt;&lt;P&gt;Its keep on adding dimensions and upon clicking it says "Drawing of Chart failed internally" but when I press the "Clear" button from the toolbar it draws.&lt;/P&gt;&lt;P&gt;Second problem is that it doesnt remove the dimension rather it keeps on adding even though I've changed the code to the following but the problem is remain the same.&lt;/P&gt;&lt;P&gt;sub SetLDIDimensions&lt;BR /&gt; set chart = ActiveDocument.GetSheetObject("LDIChart")&lt;BR /&gt; chart.RemoveDimension 1&lt;BR /&gt; chart.RemoveDimension 2&lt;BR /&gt; chart.AddDimension("By_LDI_DrillDown")&lt;BR /&gt;end sub&lt;BR /&gt;&lt;BR /&gt;sub SetTotalDimensions&lt;BR /&gt; set chart = ActiveDocument.GetSheetObject("LDIChart")&lt;BR /&gt; chart.RemoveDimension 1&lt;BR /&gt; chart.RemoveDimension 2&lt;BR /&gt; chart.AddDimension("By_Total_DrillDown")&lt;BR /&gt;end sub&lt;/P&gt;&lt;P&gt;I want my chart to be refreshed and show the data according to the group I want through buttons. what will be the code...thanks for the help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 May 2009 16:24:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Chart-Dimension-through-VBScript/m-p/144715#M23566</guid>
      <dc:creator />
      <dc:date>2009-05-22T16:24:18Z</dc:date>
    </item>
    <item>
      <title>Set Chart Dimension through VBScript</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Chart-Dimension-through-VBScript/m-p/144716#M23567</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Guys I have sorted out the problem..just added CLEAR method and its working...thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 May 2009 17:44:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Chart-Dimension-through-VBScript/m-p/144716#M23567</guid>
      <dc:creator />
      <dc:date>2009-05-22T17:44:35Z</dc:date>
    </item>
  </channel>
</rss>

