<?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 Passing argument to macro Function . in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Passing-argument-to-macro-Function/m-p/233486#M85023</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Manesh,&lt;/P&gt;&lt;P&gt;PFA&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 01 Mar 2011 09:39:21 GMT</pubDate>
    <dc:creator>deepakk</dc:creator>
    <dc:date>2011-03-01T09:39:21Z</dc:date>
    <item>
      <title>Passing argument to macro Function .</title>
      <link>https://community.qlik.com/t5/QlikView/Passing-argument-to-macro-Function/m-p/233480#M85017</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;How to pass the argument to the function (Macro)?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Mar 2011 04:56:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Passing-argument-to-macro-Function/m-p/233480#M85017</guid>
      <dc:creator>maneshkhottcpl</dc:creator>
      <dc:date>2011-03-01T04:56:46Z</dc:date>
    </item>
    <item>
      <title>Passing argument to macro Function .</title>
      <link>https://community.qlik.com/t5/QlikView/Passing-argument-to-macro-Function/m-p/233481#M85018</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I understand your question correctly, please see the attached QV example.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Mar 2011 07:13:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Passing-argument-to-macro-Function/m-p/233481#M85018</guid>
      <dc:creator>vupen</dc:creator>
      <dc:date>2011-03-01T07:13:46Z</dc:date>
    </item>
    <item>
      <title>Passing argument to macro Function .</title>
      <link>https://community.qlik.com/t5/QlikView/Passing-argument-to-macro-Function/m-p/233482#M85019</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Upendra, but it will not resolved my issue. I want to pass the argument while calling macro function using button.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Mar 2011 07:53:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Passing-argument-to-macro-Function/m-p/233482#M85019</guid>
      <dc:creator>maneshkhottcpl</dc:creator>
      <dc:date>2011-03-01T07:53:32Z</dc:date>
    </item>
    <item>
      <title>Passing argument to macro Function .</title>
      <link>https://community.qlik.com/t5/QlikView/Passing-argument-to-macro-Function/m-p/233483#M85020</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Manesh,&lt;/P&gt;&lt;P&gt;Before calling the macro Function , you can set a variable value and then call a macro code.&lt;/P&gt;&lt;P&gt;And in the initial code of the macro you can retrieve the variable data and used it in your functions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Mar 2011 08:31:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Passing-argument-to-macro-Function/m-p/233483#M85020</guid>
      <dc:creator>deepakk</dc:creator>
      <dc:date>2011-03-01T08:31:14Z</dc:date>
    </item>
    <item>
      <title>Passing argument to macro Function .</title>
      <link>https://community.qlik.com/t5/QlikView/Passing-argument-to-macro-Function/m-p/233484#M85021</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Deepak,&lt;/P&gt;&lt;P&gt;Can u share any example with me?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Mar 2011 08:34:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Passing-argument-to-macro-Function/m-p/233484#M85021</guid>
      <dc:creator>maneshkhottcpl</dc:creator>
      <dc:date>2011-03-01T08:34:20Z</dc:date>
    </item>
    <item>
      <title>Passing argument to macro Function .</title>
      <link>https://community.qlik.com/t5/QlikView/Passing-argument-to-macro-Function/m-p/233485#M85022</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Mnesh,&lt;/P&gt;&lt;P&gt;U can write a function like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;function getVariable(varName)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set v = ActiveDocument.Variables(varName)&lt;/P&gt;&lt;P&gt;getVariable = v.GetContent.String&lt;/P&gt;&lt;P style="font-weight: bold"&gt;end function&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&amp;amp; use it like&lt;/P&gt;&lt;P style="font-weight: bold"&gt;strSubject = getvariable("mailSubject")&lt;/P&gt;&lt;P&gt;The above way uses Function with a variable or the other direct way is to use ActiveDocument.GetVariable&lt;/P&gt;&lt;P style="font-weight: bold"&gt;set MgrName = ActiveDocument.GetVariable("vMgrID")&lt;/P&gt;&lt;P&gt;Also to Set a Variable u can use a macro like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;&lt;/B&gt;set MgrID = ActiveDocument.GetVariable("vMgrID")&lt;/P&gt;&lt;P&gt;&lt;B&gt;&lt;/B&gt;MgrID.SetContent "00000002" ,true&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Mar 2011 08:56:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Passing-argument-to-macro-Function/m-p/233485#M85022</guid>
      <dc:creator>amars</dc:creator>
      <dc:date>2011-03-01T08:56:44Z</dc:date>
    </item>
    <item>
      <title>Passing argument to macro Function .</title>
      <link>https://community.qlik.com/t5/QlikView/Passing-argument-to-macro-Function/m-p/233486#M85023</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Manesh,&lt;/P&gt;&lt;P&gt;PFA&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Mar 2011 09:39:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Passing-argument-to-macro-Function/m-p/233486#M85023</guid>
      <dc:creator>deepakk</dc:creator>
      <dc:date>2011-03-01T09:39:21Z</dc:date>
    </item>
    <item>
      <title>Passing argument to macro Function .</title>
      <link>https://community.qlik.com/t5/QlikView/Passing-argument-to-macro-Function/m-p/233487#M85024</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI deepak,&lt;/P&gt;&lt;P&gt;I think i am not explaining u properly.&lt;/P&gt;&lt;P&gt;Ok&lt;/P&gt;&lt;P&gt;I want to create a function say&lt;/P&gt;&lt;P&gt;function display(StrShID) ' StrShID as argument&lt;/P&gt;&lt;P&gt;msgbox StrShID&lt;/P&gt;&lt;P&gt;end function&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then in button click i call the function&lt;/P&gt;&lt;P&gt;i.e display('SHO1') '' SHO1 is sheet name to pass the argument to function&lt;/P&gt;&lt;P&gt;so whenever i clik on button , it will call the macro with argument.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Mar 2011 10:23:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Passing-argument-to-macro-Function/m-p/233487#M85024</guid>
      <dc:creator>maneshkhottcpl</dc:creator>
      <dc:date>2011-03-01T10:23:01Z</dc:date>
    </item>
    <item>
      <title>Passing argument to macro Function .</title>
      <link>https://community.qlik.com/t5/QlikView/Passing-argument-to-macro-Function/m-p/233488#M85025</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Manesh,&lt;/P&gt;&lt;P&gt;How dynamic is your data from the button. Will the value will come from user selection....&lt;/P&gt;&lt;P&gt;The above same can be acheived in the same way.,,,&lt;/P&gt;&lt;P&gt;IN the variable vtest store CH01. and in the function get the Variable and use it in the function.&lt;/P&gt;&lt;P&gt;same as what i had done in the above application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you can attach an application, I wil try to implement on that and Show it to u.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Mar 2011 10:52:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Passing-argument-to-macro-Function/m-p/233488#M85025</guid>
      <dc:creator>deepakk</dc:creator>
      <dc:date>2011-03-01T10:52:32Z</dc:date>
    </item>
  </channel>
</rss>

