<?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 Actions: How to run macro with Parameters? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Actions-How-to-run-macro-with-Parameters/m-p/669871#M1061853</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I've a simple question :&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I've a macro which use a string in parameter :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_14114654303071497" jivemacro_uid="_14114654303071497" style="font-size: 13px; font-family: monospace; color: #3d3d3d;"&gt;&lt;BR /&gt;sub mymacro (message)&lt;BR /&gt;...&lt;BR /&gt;end sub&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;how to call it with an action ?&lt;BR /&gt;I mean there is an action / External / Run Macro. It works with macro without parameter (i write only the macro name). But I'm fighting to find the syntax to add a string parameter in this macro launch (for example to launch mymacro("my string parameter") with action).&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Best regards&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;P.S : I'm working with V9 SR4&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 23 Sep 2014 09:44:15 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-09-23T09:44:15Z</dc:date>
    <item>
      <title>Actions: How to run macro with Parameters?</title>
      <link>https://community.qlik.com/t5/QlikView/Actions-How-to-run-macro-with-Parameters/m-p/669871#M1061853</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I've a simple question :&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I've a macro which use a string in parameter :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_14114654303071497" jivemacro_uid="_14114654303071497" style="font-size: 13px; font-family: monospace; color: #3d3d3d;"&gt;&lt;BR /&gt;sub mymacro (message)&lt;BR /&gt;...&lt;BR /&gt;end sub&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;how to call it with an action ?&lt;BR /&gt;I mean there is an action / External / Run Macro. It works with macro without parameter (i write only the macro name). But I'm fighting to find the syntax to add a string parameter in this macro launch (for example to launch mymacro("my string parameter") with action).&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Best regards&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;P.S : I'm working with V9 SR4&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Sep 2014 09:44:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Actions-How-to-run-macro-with-Parameters/m-p/669871#M1061853</guid>
      <dc:creator />
      <dc:date>2014-09-23T09:44:15Z</dc:date>
    </item>
    <item>
      <title>Re: Actions: How to run macro with Parameters?</title>
      <link>https://community.qlik.com/t5/QlikView/Actions-How-to-run-macro-with-Parameters/m-p/669872#M1061854</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can't.&lt;/P&gt;&lt;P&gt;The only solution is to wrap it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sub CallMacroParamOne&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; call mymacro ParamOne&lt;/P&gt;&lt;P&gt;end sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sub mymacro(ParamOne)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...&lt;/P&gt;&lt;P&gt;end sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or use variables?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Sep 2014 10:16:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Actions-How-to-run-macro-with-Parameters/m-p/669872#M1061854</guid>
      <dc:creator>jerrysvensson</dc:creator>
      <dc:date>2014-09-23T10:16:03Z</dc:date>
    </item>
    <item>
      <title>Re: Actions: How to run macro with Parameters?</title>
      <link>https://community.qlik.com/t5/QlikView/Actions-How-to-run-macro-with-Parameters/m-p/669873#M1061855</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can call some macro without param that call the macro with param&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do you understand?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Action/Run Macro/ myMacro&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the edit module: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sub myMacro&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set param1=...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set param2=...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; call myMacroParam(param1,param2)&lt;/P&gt;&lt;P&gt;end sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fernando&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Sep 2014 12:37:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Actions-How-to-run-macro-with-Parameters/m-p/669873#M1061855</guid>
      <dc:creator>fkeuroglian</dc:creator>
      <dc:date>2014-09-23T12:37:59Z</dc:date>
    </item>
  </channel>
</rss>

