<?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 call macro in a loading script ? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/how-to-call-macro-in-a-loading-script/m-p/499095#M686414</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This works fine! Thaks it helps me!&lt;/P&gt;&lt;P&gt;Juan &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Apr 2014 08:56:30 GMT</pubDate>
    <dc:creator>juan_c_martinez</dc:creator>
    <dc:date>2014-04-03T08:56:30Z</dc:date>
    <item>
      <title>how to call macro in a loading script ?</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-call-macro-in-a-loading-script/m-p/499083#M686402</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Qlikview Document edit module,maro code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sub kk&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;how to call macro in a loading script ? is it possible to execute a macro?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance &amp;amp; best regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Dec 2013 06:15:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-call-macro-in-a-loading-script/m-p/499083#M686402</guid>
      <dc:creator />
      <dc:date>2013-12-18T06:15:02Z</dc:date>
    </item>
    <item>
      <title>Re: how to call macro in a loading script ?</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-call-macro-in-a-loading-script/m-p/499084#M686403</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try like:&lt;/P&gt;&lt;P&gt;LET vVar= kk();&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Dec 2013 06:18:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-call-macro-in-a-loading-script/m-p/499084#M686403</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2013-12-18T06:18:51Z</dc:date>
    </item>
    <item>
      <title>Re: how to call macro in a loading script ?</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-call-macro-in-a-loading-script/m-p/499085#M686404</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;LET vVar= kk();&amp;nbsp; is not working&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Dec 2013 06:22:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-call-macro-in-a-loading-script/m-p/499085#M686404</guid>
      <dc:creator />
      <dc:date>2013-12-18T06:22:15Z</dc:date>
    </item>
    <item>
      <title>Re: how to call macro in a loading script ?</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-call-macro-in-a-loading-script/m-p/499086#M686405</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;Check this URLs&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/message/12166#12166" style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3778c7; background-color: #fafafa;"&gt;Execute a Macro inside load script&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example Macro:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-style: inherit; font-weight: inherit; font-size: 10pt; line-height: 1.5em;"&gt;Function CreateFolder()&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim objFSO&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set objFSO = CreateObject("Scripting.FileSystemObject")&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; objFSO.CreateFolder("C:\MacroTestFolder")&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;End Function&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;QlikView Load Script:&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;P&gt;&lt;/P&gt;&lt;OL class="dp-c" start="1" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;LI&gt;&lt;SPAN style="font-style: inherit; font-weight: inherit;"&gt;LET CreateFolder = CreateFolder();&amp;nbsp; &lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Dec 2013 06:25:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-call-macro-in-a-loading-script/m-p/499086#M686405</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2013-12-18T06:25:18Z</dc:date>
    </item>
    <item>
      <title>Re: how to call macro in a loading script ?</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-call-macro-in-a-loading-script/m-p/499087#M686406</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you post your sample app that demonstrates the issue?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Dec 2013 06:27:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-call-macro-in-a-loading-script/m-p/499087#M686406</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2013-12-18T06:27:31Z</dc:date>
    </item>
    <item>
      <title>Re: how to call macro in a loading script ?</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-call-macro-in-a-loading-script/m-p/499088#M686407</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See Jagan's example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Be aware that you cannot access interface elements at LOAD SCRIPT time. For example, if you want to export a chart, it will not work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Dec 2013 06:35:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-call-macro-in-a-loading-script/m-p/499088#M686407</guid>
      <dc:creator>luciancotea</dc:creator>
      <dc:date>2013-12-18T06:35:16Z</dc:date>
    </item>
    <item>
      <title>Re: Re: how to call macro in a loading script ?</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-call-macro-in-a-loading-script/m-p/499089#M686408</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;See attached&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Dec 2013 06:36:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-call-macro-in-a-loading-script/m-p/499089#M686408</guid>
      <dc:creator />
      <dc:date>2013-12-18T06:36:03Z</dc:date>
    </item>
    <item>
      <title>Re: how to call macro in a loading script ?</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-call-macro-in-a-loading-script/m-p/499090#M686409</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can't access interface objects at LOAD SCRIPT time. You have to call your macro using a trigger after the script is run (like OnPostReload trigger)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Dec 2013 06:42:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-call-macro-in-a-loading-script/m-p/499090#M686409</guid>
      <dc:creator>luciancotea</dc:creator>
      <dc:date>2013-12-18T06:42:23Z</dc:date>
    </item>
    <item>
      <title>Re: Re: how to call macro in a loading script ?</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-call-macro-in-a-loading-script/m-p/499091#M686410</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;See attached&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Dec 2013 06:44:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-call-macro-in-a-loading-script/m-p/499091#M686410</guid>
      <dc:creator />
      <dc:date>2013-12-18T06:44:20Z</dc:date>
    </item>
    <item>
      <title>Re: how to call macro in a loading script ?</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-call-macro-in-a-loading-script/m-p/499092#M686411</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As said by &lt;A href="https://community.qlik.com/qlik-users/3404"&gt;Lucian Cotea&lt;/A&gt;, you can't access UI object at load script. While you call a macro in the script, it is expected that the macro function would &lt;STRONG&gt;return a value &lt;/STRONG&gt;whic is not the case with your macro.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Dec 2013 07:08:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-call-macro-in-a-loading-script/m-p/499092#M686411</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2013-12-18T07:08:28Z</dc:date>
    </item>
    <item>
      <title>Re: how to call macro in a loading script ?</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-call-macro-in-a-loading-script/m-p/499093#M686412</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First of all, you need create the Macro in Edit Module with &lt;STRONG&gt;Function FNAME()... End Function&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So you can this function in script.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Dec 2013 14:17:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-call-macro-in-a-loading-script/m-p/499093#M686412</guid>
      <dc:creator />
      <dc:date>2013-12-18T14:17:49Z</dc:date>
    </item>
    <item>
      <title>Re: how to call macro in a loading script ?</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-call-macro-in-a-loading-script/m-p/499094#M686413</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Xiao,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After you have written script in the edit module part, then you need to call that macro on the open event of application.&lt;/P&gt;&lt;P&gt;In this case the macro name is 'kk'...&lt;/P&gt;&lt;P&gt;Goto Settings tab&lt;/P&gt;&lt;P&gt;Goto Triggers tab&lt;/P&gt;&lt;P&gt;Under Document Event Triggers, click on 'On Open'&lt;/P&gt;&lt;P&gt;Now click on Add Actions tab&lt;/P&gt;&lt;P&gt;select External as action type&lt;/P&gt;&lt;P&gt;Select Run Macro as action&lt;/P&gt;&lt;P&gt;Give the name as kk(as per the macro you had created in the attached qvw file )&lt;/P&gt;&lt;P&gt;Click on apply.&lt;/P&gt;&lt;P&gt;Now save the qvw and open again&amp;nbsp; And now you will find Macro Running...statement visible on the bottom left hand side when you open the application..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Dec 2013 14:37:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-call-macro-in-a-loading-script/m-p/499094#M686413</guid>
      <dc:creator />
      <dc:date>2013-12-18T14:37:42Z</dc:date>
    </item>
    <item>
      <title>Re: how to call macro in a loading script ?</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-call-macro-in-a-loading-script/m-p/499095#M686414</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This works fine! Thaks it helps me!&lt;/P&gt;&lt;P&gt;Juan &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Apr 2014 08:56:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-call-macro-in-a-loading-script/m-p/499095#M686414</guid>
      <dc:creator>juan_c_martinez</dc:creator>
      <dc:date>2014-04-03T08:56:30Z</dc:date>
    </item>
  </channel>
</rss>

