<?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 Disable expression by a macro in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Disable-expression-by-a-macro/m-p/224424#M503206</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Yes expression can be disabled through macro.&lt;/P&gt;&lt;P&gt;I found this example in the API Guide.Qvw file.&lt;/P&gt;&lt;P&gt;Just go through the sample&lt;/P&gt;&lt;P&gt;//////////////////////////////////////////////////////// Below is the Sample Code which will create a straight table and disable's the first expression//////////////////////////&lt;/P&gt;&lt;P&gt;Set chart=Activedocument.activesheet.createStraightTable&lt;/P&gt;&lt;P&gt;Chart.AddDimension "Customer'&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;Chart.AddExpression "Count(Customer)'&lt;/P&gt;&lt;P&gt;Set Cp=Chart.GetProperties&lt;/P&gt;&lt;P&gt;Set Expr=Cp.Expressions.item(0).Item(0).Data.ExpressionData&lt;/P&gt;&lt;P&gt;Expr.Enable=False&lt;/P&gt;&lt;P&gt;Chart.Set Properties Cp&lt;/P&gt;&lt;P&gt;//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 26 Apr 2010 10:40:30 GMT</pubDate>
    <dc:creator>spsrk_84</dc:creator>
    <dc:date>2010-04-26T10:40:30Z</dc:date>
    <item>
      <title>Disable expression by a macro</title>
      <link>https://community.qlik.com/t5/QlikView/Disable-expression-by-a-macro/m-p/224423#M503205</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can a expression be disable with a macro???&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Apr 2010 08:45:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Disable-expression-by-a-macro/m-p/224423#M503205</guid>
      <dc:creator />
      <dc:date>2010-04-26T08:45:08Z</dc:date>
    </item>
    <item>
      <title>Disable expression by a macro</title>
      <link>https://community.qlik.com/t5/QlikView/Disable-expression-by-a-macro/m-p/224424#M503206</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Yes expression can be disabled through macro.&lt;/P&gt;&lt;P&gt;I found this example in the API Guide.Qvw file.&lt;/P&gt;&lt;P&gt;Just go through the sample&lt;/P&gt;&lt;P&gt;//////////////////////////////////////////////////////// Below is the Sample Code which will create a straight table and disable's the first expression//////////////////////////&lt;/P&gt;&lt;P&gt;Set chart=Activedocument.activesheet.createStraightTable&lt;/P&gt;&lt;P&gt;Chart.AddDimension "Customer'&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;Chart.AddExpression "Count(Customer)'&lt;/P&gt;&lt;P&gt;Set Cp=Chart.GetProperties&lt;/P&gt;&lt;P&gt;Set Expr=Cp.Expressions.item(0).Item(0).Data.ExpressionData&lt;/P&gt;&lt;P&gt;Expr.Enable=False&lt;/P&gt;&lt;P&gt;Chart.Set Properties Cp&lt;/P&gt;&lt;P&gt;//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Apr 2010 10:40:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Disable-expression-by-a-macro/m-p/224424#M503206</guid>
      <dc:creator>spsrk_84</dc:creator>
      <dc:date>2010-04-26T10:40:30Z</dc:date>
    </item>
  </channel>
</rss>

