<?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: How to access to a graph in a macro in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-access-to-a-graph-in-a-macro/m-p/432266#M161149</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ActiveDocument.GetSheetObject("CH01") returns a SheetObject that hasn´t got the methods AddDimension, AddExpression or SetChartType. Those methods are from Graph, that is returned by CreateBarChart...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Finally I´ve used GetGraphs and getObjectId&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thx &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 19 Oct 2012 10:26:37 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-10-19T10:26:37Z</dc:date>
    <item>
      <title>How to access to a graph in a macro</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-access-to-a-graph-in-a-macro/m-p/432264#M161147</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to add an expresion to a graph. I´ve been revised the classes and methods and I´ve found that tha classes GraphBasics and Graph have a method AddExpresion. The problem is that I can´t acces the graph. I can access with SheetObjects("CH01"), but the type returned is SheetObject, and iI need one of the previows ones. Is there a way of changing the types of a variable or to access directy to a graph???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Oct 2012 08:19:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-access-to-a-graph-in-a-macro/m-p/432264#M161147</guid>
      <dc:creator />
      <dc:date>2012-10-19T08:19:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to access to a graph in a macro</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-access-to-a-graph-in-a-macro/m-p/432265#M161148</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here's an example from the API Guide qvw:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set chart = ActiveDocument.Sheets("Main").CreateBarChart&lt;/P&gt;&lt;P&gt;chart.AddDimension "ProductType"&lt;/P&gt;&lt;P&gt;chart.AddExpression "sum(Amount)"&lt;/P&gt;&lt;P&gt;set p = chart.GetProperties&lt;/P&gt;&lt;P&gt;p.GraphLayout.FastChange.Bar = true&lt;/P&gt;&lt;P&gt;p.GraphLayout.FastChange.Line = true&lt;/P&gt;&lt;P&gt;p.GraphLayout.FastChange.Combo = true&lt;/P&gt;&lt;P&gt;p.GraphLayout.FastChange.Pie = true&lt;/P&gt;&lt;P&gt;p.GraphLayout.FastChange.Scatter = false&lt;/P&gt;&lt;P&gt;p.GraphLayout.FastChange.Straight = false&lt;/P&gt;&lt;P&gt;p.GraphLayout.FastChange.Pivot = false&lt;/P&gt;&lt;P&gt;p.ChartProperties.FastChangeInChart = true&lt;/P&gt;&lt;P&gt;chart.SetProperties p&lt;/P&gt;&lt;P&gt;chart.SetChartType&amp;nbsp; 4&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'line&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can change the first line into something lik set chart = ActiveDocument.GetSheetObject("CH01") to get a reference to an existing chart&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Oct 2012 09:37:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-access-to-a-graph-in-a-macro/m-p/432265#M161148</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2012-10-19T09:37:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to access to a graph in a macro</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-access-to-a-graph-in-a-macro/m-p/432266#M161149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ActiveDocument.GetSheetObject("CH01") returns a SheetObject that hasn´t got the methods AddDimension, AddExpression or SetChartType. Those methods are from Graph, that is returned by CreateBarChart...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Finally I´ve used GetGraphs and getObjectId&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thx &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Oct 2012 10:26:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-access-to-a-graph-in-a-macro/m-p/432266#M161149</guid>
      <dc:creator />
      <dc:date>2012-10-19T10:26:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to access to a graph in a macro</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-access-to-a-graph-in-a-macro/m-p/432267#M161150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm afraid you're wrong. Getting a reference with getsheetobject and then adding a dimension or expression works just fine for me. As does changing the charttype.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Oct 2012 11:01:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-access-to-a-graph-in-a-macro/m-p/432267#M161150</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2012-10-19T11:01:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to access to a graph in a macro</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-access-to-a-graph-in-a-macro/m-p/432268#M161151</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Don´t be afraid &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I´ve just tried it again and it works fine. I don´t know what can I do wrong before.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Oct 2012 11:05:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-access-to-a-graph-in-a-macro/m-p/432268#M161151</guid>
      <dc:creator />
      <dc:date>2012-10-19T11:05:33Z</dc:date>
    </item>
  </channel>
</rss>

