<?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: How to run parametrized macro in trigger in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-run-parametrized-macro-in-trigger/m-p/472747#M1158956</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can call a sub but not a function in a macro. You won't get an error if you specificy the function name, but nothing will happen. So you have to call a sub. Use a variable to store your parameter and have the macro use the variable. If you want you can have the sub call the function and pass the value from the variable as parameter to the function.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 01 Jan 2013 10:39:33 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2013-01-01T10:39:33Z</dc:date>
    <item>
      <title>How to run parametrized macro in trigger</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-run-parametrized-macro-in-trigger/m-p/472746#M1158955</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have two macro functions. One of them is parametrized. &lt;/P&gt;&lt;P&gt;When I call the non-parametrized function from&amp;nbsp; 'OnPostReload' action as macro everyting seems ok.&lt;/P&gt;&lt;P&gt;But it is not working when I do the same for parametrized macro function.&lt;/P&gt;&lt;P&gt;Macros are like following :&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;--------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt; function NonParametrized&lt;/P&gt;&lt;P&gt; 'do sth script&lt;/P&gt;&lt;P&gt;end function&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; function Parametrized (param1)&lt;/P&gt;&lt;P&gt; 'do sth script&lt;/P&gt;&lt;P&gt;end function&lt;/P&gt;&lt;P&gt;--------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;--------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;'following works in module, but that is not what I need&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;function NonParametrized&lt;/P&gt;&lt;P&gt;call Parametrized ("testParam1")&lt;/P&gt;&lt;P&gt;'I want to do the same on OnPostReload's Edit Expression as macro (not in edit macro module, outside the macro module)&lt;/P&gt;&lt;P&gt;'do sth script&lt;/P&gt;&lt;P&gt;end function&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when I write it OnPostReload&amp;nbsp; as Macro Name such as&lt;/P&gt;&lt;P&gt;call Parametrized (param1)&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;Parametrized&amp;nbsp; param1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is not working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any Idea ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Dec 2012 14:37:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-run-parametrized-macro-in-trigger/m-p/472746#M1158955</guid>
      <dc:creator />
      <dc:date>2012-12-31T14:37:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to run parametrized macro in trigger</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-run-parametrized-macro-in-trigger/m-p/472747#M1158956</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can call a sub but not a function in a macro. You won't get an error if you specificy the function name, but nothing will happen. So you have to call a sub. Use a variable to store your parameter and have the macro use the variable. If you want you can have the sub call the function and pass the value from the variable as parameter to the function.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Jan 2013 10:39:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-run-parametrized-macro-in-trigger/m-p/472747#M1158956</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-01-01T10:39:33Z</dc:date>
    </item>
  </channel>
</rss>

