<?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: Help in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Help/m-p/418719#M1157816</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;Actually, I have created one Macro sub procedure with parameters in Macro&lt;/P&gt;&lt;P&gt;The parameters are ChartID and txt odject Id.&lt;/P&gt;&lt;P&gt;so, on button click&amp;nbsp; I want to pass that particular Chart ID and txt odject Id through parameters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lets see 2 e.g.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) e.g.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;suppose I hv&amp;nbsp; 1 sub&amp;nbsp; &lt;/P&gt;&lt;P&gt;sub xy(p1, p2) &lt;/P&gt;&lt;P&gt;......&lt;/P&gt;&lt;P&gt;.......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;End sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;on button action , I wrote xy("a","b").&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after, if click on button, it didnt perform any action.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) e.g.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In macro If I call sub&amp;nbsp; xy("a","b") like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sub Scall &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;xy("a","b")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;End Sub &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and if i wrote &lt;EM&gt;Scall&lt;/EM&gt; Macro on button Action&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then It works.., Perfect.... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but I need to follow 1st scenario.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 08 Feb 2013 10:25:30 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-02-08T10:25:30Z</dc:date>
    <item>
      <title>Help</title>
      <link>https://community.qlik.com/t5/QlikView/Help/m-p/418717#M1157814</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;&lt;/P&gt;&lt;P&gt;I wan to call a Parameterized Macro from button action&lt;/P&gt;&lt;P&gt;how can I do that?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Feb 2013 09:52:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help/m-p/418717#M1157814</guid>
      <dc:creator />
      <dc:date>2013-02-08T09:52:09Z</dc:date>
    </item>
    <item>
      <title>Re: Help</title>
      <link>https://community.qlik.com/t5/QlikView/Help/m-p/418718#M1157815</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ususally I define a variable in the document then I read that variable inside the macro and set the value of the variable in the button ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hopeit helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Feb 2013 10:04:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help/m-p/418718#M1157815</guid>
      <dc:creator>alexandros17</dc:creator>
      <dc:date>2013-02-08T10:04:39Z</dc:date>
    </item>
    <item>
      <title>Re: Help</title>
      <link>https://community.qlik.com/t5/QlikView/Help/m-p/418719#M1157816</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;Actually, I have created one Macro sub procedure with parameters in Macro&lt;/P&gt;&lt;P&gt;The parameters are ChartID and txt odject Id.&lt;/P&gt;&lt;P&gt;so, on button click&amp;nbsp; I want to pass that particular Chart ID and txt odject Id through parameters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lets see 2 e.g.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) e.g.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;suppose I hv&amp;nbsp; 1 sub&amp;nbsp; &lt;/P&gt;&lt;P&gt;sub xy(p1, p2) &lt;/P&gt;&lt;P&gt;......&lt;/P&gt;&lt;P&gt;.......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;End sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;on button action , I wrote xy("a","b").&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after, if click on button, it didnt perform any action.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) e.g.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In macro If I call sub&amp;nbsp; xy("a","b") like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sub Scall &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;xy("a","b")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;End Sub &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and if i wrote &lt;EM&gt;Scall&lt;/EM&gt; Macro on button Action&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then It works.., Perfect.... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but I need to follow 1st scenario.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Feb 2013 10:25:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help/m-p/418719#M1157816</guid>
      <dc:creator />
      <dc:date>2013-02-08T10:25:30Z</dc:date>
    </item>
    <item>
      <title>Re: Help</title>
      <link>https://community.qlik.com/t5/QlikView/Help/m-p/418720#M1157817</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can add actions to a button. First add an action that sets the value of a variable. Next add an action that executes a macro. The macro will have to use the variable. You cannot directly pass a value to a macro, so that's why you need to use a variable.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Feb 2013 10:30:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help/m-p/418720#M1157817</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-02-08T10:30:33Z</dc:date>
    </item>
    <item>
      <title>Re: Help</title>
      <link>https://community.qlik.com/t5/QlikView/Help/m-p/418721#M1157818</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Sub MYSUB&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set v = ActiveDocument.GetVariable("MyVar")&lt;/P&gt;&lt;P&gt;select case v.GetContent.String&lt;BR /&gt;&lt;BR /&gt; case 1&lt;BR /&gt;&lt;BR /&gt; v.SetContent "0",true&lt;BR /&gt;&lt;BR /&gt;... do something else&lt;BR /&gt;&lt;BR /&gt; case else&lt;BR /&gt;&lt;BR /&gt; v.SetContent "1",true&lt;/P&gt;&lt;P&gt;... do something else&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; &lt;BR /&gt;&lt;BR /&gt; end select&lt;BR /&gt;&lt;BR /&gt;end sub&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This script read a variable MyVar defined in the document and you can set ithe variable with the button; there is no way to pass parameters in other way&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Feb 2013 10:41:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help/m-p/418721#M1157818</guid>
      <dc:creator>alexandros17</dc:creator>
      <dc:date>2013-02-08T10:41:22Z</dc:date>
    </item>
  </channel>
</rss>

