<?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 How to enable and disable expression of chart by code(macro)? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-enable-and-disable-expression-of-chart-by-code-macro/m-p/156538#M32377</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have understood your demo. And I add your code in to my qvw file, It works!&lt;/P&gt;&lt;P&gt;Thank you very much !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Jan 2011 05:31:34 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-01-06T05:31:34Z</dc:date>
    <item>
      <title>How to enable and disable expression of chart by code(macro)?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-enable-and-disable-expression-of-chart-by-code-macro/m-p/156536#M32375</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi, I have a bar chart with 3 expessions(expression: A B C). I want to use macro to control enable and disable expression. How can I do this?&lt;/P&gt;&lt;P&gt;I want to use a button. when click shows expression A and B, when click another time shows expression B and C.&lt;/P&gt;&lt;P&gt;thanks a lot !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jan 2011 03:09:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-enable-and-disable-expression-of-chart-by-code-macro/m-p/156536#M32375</guid>
      <dc:creator />
      <dc:date>2011-01-06T03:09:33Z</dc:date>
    </item>
    <item>
      <title>How to enable and disable expression of chart by code(macro)?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-enable-and-disable-expression-of-chart-by-code-macro/m-p/156537#M32376</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 have attached the appliocation as per ur requirment.&lt;/P&gt;&lt;P&gt;first create a variable in ur application as VClikCount&lt;/P&gt;&lt;P&gt;then paste the macro and assign to button&lt;/P&gt;&lt;P&gt;sub ends&lt;BR /&gt;set myobj = ActiveDocument.GetSheetObject("CH01")&lt;BR /&gt;set v = ActiveDocument.GetVariable("VClikCount") '' first create a varible using setting&lt;BR /&gt;Cnt= v.getcontent.String&lt;BR /&gt;prop = myobj.GetProperties&lt;BR /&gt;if Cnt=0 then&lt;BR /&gt; set expr = prop.Expressions.Item(0).Item(0).Data.ExpressionData&lt;BR /&gt; expr.Enable = true 'enable first expression&lt;BR /&gt; set expr1 = prop.Expressions.Item(1).Item(0).Data.ExpressionData&lt;BR /&gt; expr1.Enable = true 'enable second expression&lt;BR /&gt; set expr1 = prop.Expressions.Item(2).Item(0).Data.ExpressionData&lt;BR /&gt; expr1.Enable = false 'disable second expression&lt;BR /&gt; v.setContent "1",true&lt;BR /&gt;else&lt;BR /&gt; set expr = prop.Expressions.Item(0).Item(0).Data.ExpressionData&lt;BR /&gt; expr.Enable = false 'disable first expression&lt;BR /&gt; set expr1 = prop.Expressions.Item(1).Item(0).Data.ExpressionData&lt;BR /&gt; expr1.Enable = true 'enable second expression&lt;BR /&gt; set expr1 = prop.Expressions.Item(2).Item(0).Data.ExpressionData&lt;BR /&gt; expr1.Enable = true 'enable second expression&lt;BR /&gt;&lt;BR /&gt; v.setContent "0",true&lt;BR /&gt;end if&lt;BR /&gt;myobj.SetProperties prop&lt;BR /&gt;end sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;good luck.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jan 2011 04:24:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-enable-and-disable-expression-of-chart-by-code-macro/m-p/156537#M32376</guid>
      <dc:creator>maneshkhottcpl</dc:creator>
      <dc:date>2011-01-06T04:24:12Z</dc:date>
    </item>
    <item>
      <title>How to enable and disable expression of chart by code(macro)?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-enable-and-disable-expression-of-chart-by-code-macro/m-p/156538#M32377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have understood your demo. And I add your code in to my qvw file, It works!&lt;/P&gt;&lt;P&gt;Thank you very much !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jan 2011 05:31:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-enable-and-disable-expression-of-chart-by-code-macro/m-p/156538#M32377</guid>
      <dc:creator />
      <dc:date>2011-01-06T05:31:34Z</dc:date>
    </item>
  </channel>
</rss>

