<?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: Macro for Enabling or Disabling Expression dynamically in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Macro-for-Enabling-or-Disabling-Expression-dynamically/m-p/1302608#M405788</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure if I understood right. You may try like shown here : &lt;A href="https://community.qlik.com/docs/DOC-5404"&gt;Adhoc reporting in Qlikview&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Apr 2017 04:27:55 GMT</pubDate>
    <dc:creator>tresB</dc:creator>
    <dc:date>2017-04-12T04:27:55Z</dc:date>
    <item>
      <title>Macro for Enabling or Disabling Expression dynamically</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-for-Enabling-or-Disabling-Expression-dynamically/m-p/1302606#M405786</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a category or component table which I have to extract from DB so the data which will consist uder Category field will be dynamic . Now for each category I am creating expression and label.So there are already 2 expression present in the pivot chart which will be by default and now based on the Category or component field selection we have to enable or disable expression and have to show selected component label for the corresponding expression. I was trying that problem through macro. May be it is possible through macro . Could anyone check and let me help.Please check the attached application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Koushik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Apr 2017 19:51:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-for-Enabling-or-Disabling-Expression-dynamically/m-p/1302606#M405786</guid>
      <dc:creator>koushik_btech20</dc:creator>
      <dc:date>2017-04-11T19:51:56Z</dc:date>
    </item>
    <item>
      <title>Re: Macro for Enabling or Disabling Expression dynamically</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-for-Enabling-or-Disabling-Expression-dynamically/m-p/1302607#M405787</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Koushik,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is the code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sub ends&lt;/P&gt;&lt;P&gt;set myobj = ActiveDocument.GetSheetObject("CH01")&lt;/P&gt;&lt;P&gt;set v = ActiveDocument.GetVariable("VClikCount") '' first create a varible using setting&lt;/P&gt;&lt;P&gt;Cnt= v.getcontent.String&lt;/P&gt;&lt;P&gt;prop = myobj.GetProperties&lt;/P&gt;&lt;P&gt;if Cnt=0 then&lt;/P&gt;&lt;P&gt;&amp;nbsp; set expr = prop.Expressions.Item(0).Item(0).Data.ExpressionData&lt;/P&gt;&lt;P&gt;&amp;nbsp; expr.Enable = true&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'enable first expression&lt;/P&gt;&lt;P&gt;&amp;nbsp; set expr1 = prop.Expressions.Item(1).Item(0).Data.ExpressionData&lt;/P&gt;&lt;P&gt;&amp;nbsp; expr1.Enable = true&amp;nbsp;&amp;nbsp;&amp;nbsp; 'enable second expression&lt;/P&gt;&lt;P&gt;&amp;nbsp; set expr1 = prop.Expressions.Item(2).Item(0).Data.ExpressionData&lt;/P&gt;&lt;P&gt;&amp;nbsp; expr1.Enable = false&amp;nbsp;&amp;nbsp;&amp;nbsp; 'disable second expression&lt;/P&gt;&lt;P&gt;&amp;nbsp; v.setContent "1",true&lt;/P&gt;&lt;P&gt;else&lt;/P&gt;&lt;P&gt;&amp;nbsp; set expr = prop.Expressions.Item(0).Item(0).Data.ExpressionData&lt;/P&gt;&lt;P&gt;&amp;nbsp; expr.Enable = false&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'disable first expression&lt;/P&gt;&lt;P&gt;&amp;nbsp; set expr1 = prop.Expressions.Item(1).Item(0).Data.ExpressionData&lt;/P&gt;&lt;P&gt;&amp;nbsp; expr1.Enable = true&amp;nbsp;&amp;nbsp;&amp;nbsp; 'enable second expression&lt;/P&gt;&lt;P&gt;&amp;nbsp; set expr1 = prop.Expressions.Item(2).Item(0).Data.ExpressionData&lt;/P&gt;&lt;P&gt;&amp;nbsp; expr1.Enable = true&amp;nbsp; 'enable second expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; v.setContent "0",true&lt;/P&gt;&lt;P&gt;end if&lt;/P&gt;&lt;P&gt;myobj.SetProperties prop&lt;/P&gt;&lt;P&gt;end sub&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Apr 2017 03:30:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-for-Enabling-or-Disabling-Expression-dynamically/m-p/1302607#M405787</guid>
      <dc:creator>Siva_Sankar</dc:creator>
      <dc:date>2017-04-12T03:30:37Z</dc:date>
    </item>
    <item>
      <title>Re: Macro for Enabling or Disabling Expression dynamically</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-for-Enabling-or-Disabling-Expression-dynamically/m-p/1302608#M405788</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure if I understood right. You may try like shown here : &lt;A href="https://community.qlik.com/docs/DOC-5404"&gt;Adhoc reporting in Qlikview&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Apr 2017 04:27:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-for-Enabling-or-Disabling-Expression-dynamically/m-p/1302608#M405788</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2017-04-12T04:27:55Z</dc:date>
    </item>
    <item>
      <title>Re: Macro for Enabling or Disabling Expression dynamically</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-for-Enabling-or-Disabling-Expression-dynamically/m-p/1302609#M405789</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But the selection data is not static so I cant do this in the way we do in Adhoc reporting. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Apr 2017 15:41:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-for-Enabling-or-Disabling-Expression-dynamically/m-p/1302609#M405789</guid>
      <dc:creator>koushik_btech20</dc:creator>
      <dc:date>2017-04-12T15:41:17Z</dc:date>
    </item>
  </channel>
</rss>

