<?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 Disabling the conditional for expressions in chart in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Macro-for-Disabling-the-conditional-for-expressions-in-chart/m-p/1319328#M840727</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the reply m w.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes I have tried but that didn't work. I have tried in another way and found the solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set expr = p1.Expressions.Item(1).Item(0).Data.ExpressionData&lt;/P&gt;&lt;P&gt;expr.Definition.v = "&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px;"&gt;count(Regions)&amp;lt;2&lt;/SPAN&gt;" &lt;/P&gt;&lt;P&gt;set expr = p1.Expressions.Item(1).Item(0).Data.EnableCondition&lt;/P&gt;&lt;P&gt;expr.Type =&amp;nbsp; 1&amp;nbsp; '1-Disable, 2- Clear &lt;/P&gt;&lt;P&gt;expr.Expression = ""&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This Macro code helps to enable the expression and disables the conditional when you run it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 May 2017 16:04:26 GMT</pubDate>
    <dc:creator>rajender_qlik</dc:creator>
    <dc:date>2017-05-11T16:04:26Z</dc:date>
    <item>
      <title>Macro for Disabling the conditional for expressions in chart</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-for-Disabling-the-conditional-for-expressions-in-chart/m-p/1319326#M840724</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 am looking for macro to disable only conditional expression in a chart but keeping the expression enable. &lt;/P&gt;&lt;P&gt;If anyone has the macro please keep posted here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have found macro in API guide for enabling the condition where as I am looking to disable the existed condition for expression &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rem create new macro button &lt;/P&gt;&lt;P&gt;set newbutton = ActiveDocument.ActiveSheet.CreateButton&lt;/P&gt;&lt;P&gt;set prop = newbutton.GetProperties&lt;/P&gt;&lt;P&gt;prop.Type = 2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;prop.Text.v = "Run macro a"&lt;/P&gt;&lt;P&gt;prop.Macro = "a"&lt;/P&gt;&lt;P&gt;prop.EnableCondition.v = "count(Regions)&amp;lt;2"&lt;/P&gt;&lt;P&gt;newbutton.SetProperties prop&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance !!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rajender&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-for-Disabling-the-conditional-for-expressions-in-chart/m-p/1319326#M840724</guid>
      <dc:creator>rajender_qlik</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Macro for Disabling the conditional for expressions in chart</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-for-Disabling-the-conditional-for-expressions-in-chart/m-p/1319327#M840726</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you tried:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;prop.EnableCondition.v = ""&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 May 2017 10:40:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-for-Disabling-the-conditional-for-expressions-in-chart/m-p/1319327#M840726</guid>
      <dc:creator>m_woolf</dc:creator>
      <dc:date>2017-05-11T10:40:43Z</dc:date>
    </item>
    <item>
      <title>Re: Macro for Disabling the conditional for expressions in chart</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-for-Disabling-the-conditional-for-expressions-in-chart/m-p/1319328#M840727</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the reply m w.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes I have tried but that didn't work. I have tried in another way and found the solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set expr = p1.Expressions.Item(1).Item(0).Data.ExpressionData&lt;/P&gt;&lt;P&gt;expr.Definition.v = "&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px;"&gt;count(Regions)&amp;lt;2&lt;/SPAN&gt;" &lt;/P&gt;&lt;P&gt;set expr = p1.Expressions.Item(1).Item(0).Data.EnableCondition&lt;/P&gt;&lt;P&gt;expr.Type =&amp;nbsp; 1&amp;nbsp; '1-Disable, 2- Clear &lt;/P&gt;&lt;P&gt;expr.Expression = ""&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This Macro code helps to enable the expression and disables the conditional when you run it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 May 2017 16:04:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-for-Disabling-the-conditional-for-expressions-in-chart/m-p/1319328#M840727</guid>
      <dc:creator>rajender_qlik</dc:creator>
      <dc:date>2017-05-11T16:04:26Z</dc:date>
    </item>
  </channel>
</rss>

