<?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 Parameters in Macro in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Parameters-in-Macro/m-p/207058#M62961</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Fredrik, thxs for your answer and idea.&lt;/P&gt;&lt;P&gt;I tried and that way, it works!&lt;/P&gt;&lt;P&gt;Thxs!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 11 Jan 2010 15:32:07 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-01-11T15:32:07Z</dc:date>
    <item>
      <title>Parameters in Macro</title>
      <link>https://community.qlik.com/t5/QlikView/Parameters-in-Macro/m-p/207055#M62958</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Morning,&lt;/P&gt;&lt;P&gt;I've this macro that do the same calculations with 2 diferents table object. The macro shuold be called from 2 Button Objects.&lt;/P&gt;&lt;P&gt;In order to identify wich button made the call (and that way knows wich table object take to do the calculations) I need to send by parameters a string with the name of the table to work at.&lt;/P&gt;&lt;P&gt;I tried to put in parenthesis the name of the table object at the button properties, but it doesn't work.&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Which is the way to send a string parameter when I call a macro from a button object?? 'cause I dont want to have the macro twice just to change one line (the one with the name of the table to work)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thxs in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jan 2010 14:34:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Parameters-in-Macro/m-p/207055#M62958</guid>
      <dc:creator />
      <dc:date>2010-01-11T14:34:16Z</dc:date>
    </item>
    <item>
      <title>Parameters in Macro</title>
      <link>https://community.qlik.com/t5/QlikView/Parameters-in-Macro/m-p/207056#M62959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I'm not sure if you can call a macro with parameters from the UI. I know it works in the script.&lt;BR /&gt;An alternative, if you use version 9, is to use a variable. Lets call it buttonClicked.&lt;BR /&gt;On you first button, you add an action to set the variable buttonClicked = button1. Then another action that runs your macro.&lt;BR /&gt;Do the same for the second button but set buttonClicked = button2.&lt;BR /&gt;&lt;BR /&gt;Then, in your macro, you check the value of your variable:&lt;BR /&gt;set v = ActiveDocument.Variables("buttonClicked")&lt;BR /&gt;if v.GetContent.String = "button1" then&lt;BR /&gt; msgbox("Button1 clicked")&lt;BR /&gt;else&lt;BR /&gt; msgbox("Button2 clicked")&lt;BR /&gt;end if&lt;/P&gt;&lt;P&gt;/Fredrik&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;First action: External -&amp;gt; Set variable. Second action: External -&amp;gt; Run macro.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jan 2010 14:53:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Parameters-in-Macro/m-p/207056#M62959</guid>
      <dc:creator />
      <dc:date>2010-01-11T14:53:51Z</dc:date>
    </item>
    <item>
      <title>Parameters in Macro</title>
      <link>https://community.qlik.com/t5/QlikView/Parameters-in-Macro/m-p/207057#M62960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you create a global variable using 'Dim' you can set and use it in different subroutines.&lt;/P&gt;&lt;P&gt;Use globals sparingly:-)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jan 2010 14:59:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Parameters-in-Macro/m-p/207057#M62960</guid>
      <dc:creator />
      <dc:date>2010-01-11T14:59:24Z</dc:date>
    </item>
    <item>
      <title>Parameters in Macro</title>
      <link>https://community.qlik.com/t5/QlikView/Parameters-in-Macro/m-p/207058#M62961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Fredrik, thxs for your answer and idea.&lt;/P&gt;&lt;P&gt;I tried and that way, it works!&lt;/P&gt;&lt;P&gt;Thxs!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jan 2010 15:32:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Parameters-in-Macro/m-p/207058#M62961</guid>
      <dc:creator />
      <dc:date>2010-01-11T15:32:07Z</dc:date>
    </item>
    <item>
      <title>Parameters in Macro</title>
      <link>https://community.qlik.com/t5/QlikView/Parameters-in-Macro/m-p/207059#M62962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Frederik, it works.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Jan 2011 08:17:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Parameters-in-Macro/m-p/207059#M62962</guid>
      <dc:creator />
      <dc:date>2011-01-12T08:17:43Z</dc:date>
    </item>
  </channel>
</rss>

