<?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 Call subroutine from button in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Call-subroutine-from-button/m-p/1446611#M433478</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is it possible to execute a subroutine from a Button Action? I want to call a subroutine which receives a variable as an argument. (The subroutine manipulates the argument and assigns a value to another variable.)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 Aug 2017 16:18:37 GMT</pubDate>
    <dc:creator>nickedw0</dc:creator>
    <dc:date>2017-08-22T16:18:37Z</dc:date>
    <item>
      <title>Call subroutine from button</title>
      <link>https://community.qlik.com/t5/QlikView/Call-subroutine-from-button/m-p/1446611#M433478</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is it possible to execute a subroutine from a Button Action? I want to call a subroutine which receives a variable as an argument. (The subroutine manipulates the argument and assigns a value to another variable.)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Aug 2017 16:18:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Call-subroutine-from-button/m-p/1446611#M433478</guid>
      <dc:creator>nickedw0</dc:creator>
      <dc:date>2017-08-22T16:18:37Z</dc:date>
    </item>
    <item>
      <title>Re: Call subroutine from button</title>
      <link>https://community.qlik.com/t5/QlikView/Call-subroutine-from-button/m-p/1446612#M433479</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Hanief,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There's no possibility to call a subroutine from load script into a button, you can only do that with macros in View and than use the macro into the button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've made a simple example of macro bellow, that gets the variable vTest and add one to it and puts the result to vTestFinal.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;function getVariable&lt;/P&gt;&lt;P&gt;&amp;nbsp; set v = ActiveDocument.GetVariable("vTest")&lt;/P&gt;&lt;P&gt;&amp;nbsp; set vFinal = ActiveDocument.GetVariable("vTestFinal")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;msgbox(v.GetContent.String)&lt;/P&gt;&lt;P&gt;vNum = CInt(v.GetContent.String)&lt;/P&gt;&lt;P&gt;vNum = vNum+1 ' do calculations here&lt;/P&gt;&lt;P&gt;msgbox(vNum)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vFinal.SetContent vNum,true&lt;/P&gt;&lt;P&gt;end function&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also attached a sample QVW&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Aug 2017 17:53:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Call-subroutine-from-button/m-p/1446612#M433479</guid>
      <dc:creator>felipedl</dc:creator>
      <dc:date>2017-08-22T17:53:53Z</dc:date>
    </item>
    <item>
      <title>Re: Call subroutine from button</title>
      <link>https://community.qlik.com/t5/QlikView/Call-subroutine-from-button/m-p/1446613#M433480</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you. This resolved my issue&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Aug 2017 20:15:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Call-subroutine-from-button/m-p/1446613#M433480</guid>
      <dc:creator>nickedw0</dc:creator>
      <dc:date>2017-08-22T20:15:08Z</dc:date>
    </item>
    <item>
      <title>Re: Call subroutine from button</title>
      <link>https://community.qlik.com/t5/QlikView/Call-subroutine-from-button/m-p/1446614#M433481</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there any way to macro using Qlikview script statements? Otherwise I have to convert the code to vbscript&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Aug 2017 20:20:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Call-subroutine-from-button/m-p/1446614#M433481</guid>
      <dc:creator>nickedw0</dc:creator>
      <dc:date>2017-08-22T20:20:14Z</dc:date>
    </item>
  </channel>
</rss>

