<?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: Button &amp;gt; Action &amp;gt; start vbs-script with parameter in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Button-gt-Action-gt-start-vbs-script-with-parameter/m-p/372658#M138564</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Lee,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I see the reason of the confusion.&amp;nbsp; I didn't mean "using parameter in the button".&amp;nbsp; I meant use a variable as parameter in the macro.&amp;nbsp; The value of the variable can be set &lt;STRONG&gt;manually &lt;/STRONG&gt;in an input box.&lt;/P&gt;&lt;P&gt;If the value of the variable can be set &lt;STRONG&gt;automatically &lt;/STRONG&gt;based on some conditions - it can be set in the macro itself instead of an additional action, meaning that parameter not needed at all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 Jul 2012 10:21:08 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2012-07-30T10:21:08Z</dc:date>
    <item>
      <title>Button &gt; Action &gt; start vbs-script with parameter</title>
      <link>https://community.qlik.com/t5/QlikView/Button-gt-Action-gt-start-vbs-script-with-parameter/m-p/372654#M138560</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a vbs-script which I want to start with a button in QlikView. This is working fine, but now I want to add some Parameter to the script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In Windows-Shell I can start the script like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;script.vbs Para1 Para2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But how can I add the parameters to QlikView? It is possible to get the parameter in QV from a getfieldselection oder variable?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried Parameters but I get an errormessage.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="19044" class="jive-image-thumbnail jive-image" onclick="" alt="28.07.jpg" src="https://community.qlik.com/legacyfs/online/19044_28.07.jpg" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 28 Jul 2012 16:46:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Button-gt-Action-gt-start-vbs-script-with-parameter/m-p/372654#M138560</guid>
      <dc:creator />
      <dc:date>2012-07-28T16:46:53Z</dc:date>
    </item>
    <item>
      <title>Re: Button &gt; Action &gt; start vbs-script with parameter</title>
      <link>https://community.qlik.com/t5/QlikView/Button-gt-Action-gt-start-vbs-script-with-parameter/m-p/372655#M138561</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Consider using your vbscript in Edit Module as a macro, and your button action will be "Run Macro".&amp;nbsp; A variable can be used as parameter in this case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 29 Jul 2012 18:42:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Button-gt-Action-gt-start-vbs-script-with-parameter/m-p/372655#M138561</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-07-29T18:42:45Z</dc:date>
    </item>
    <item>
      <title>Re: Button &gt; Action &gt; start vbs-script with parameter</title>
      <link>https://community.qlik.com/t5/QlikView/Button-gt-Action-gt-start-vbs-script-with-parameter/m-p/372656#M138562</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I had to do something similar a while back. Variables cannot be passed in the code from the button. But you can use a preceding action to assign a value to a variable, and then reference the values in variables from within your VB script. As an example, the code below gets the string value from a variable named vObjectID and then strips out the double quotes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD&gt;sTableID = ActiveDocument.GetVariable("vObjectID").GetContent.String&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD&gt;sTableID = replace(sTableID, """", "")&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jul 2012 01:29:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Button-gt-Action-gt-start-vbs-script-with-parameter/m-p/372656#M138562</guid>
      <dc:creator>Lee_Matthews</dc:creator>
      <dc:date>2012-07-30T01:29:17Z</dc:date>
    </item>
    <item>
      <title>Re: Button &gt; Action &gt; start vbs-script with parameter</title>
      <link>https://community.qlik.com/t5/QlikView/Button-gt-Action-gt-start-vbs-script-with-parameter/m-p/372657#M138563</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, I will try it this week and tell you how it works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jul 2012 09:51:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Button-gt-Action-gt-start-vbs-script-with-parameter/m-p/372657#M138563</guid>
      <dc:creator />
      <dc:date>2012-07-30T09:51:51Z</dc:date>
    </item>
    <item>
      <title>Re: Button &gt; Action &gt; start vbs-script with parameter</title>
      <link>https://community.qlik.com/t5/QlikView/Button-gt-Action-gt-start-vbs-script-with-parameter/m-p/372658#M138564</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Lee,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I see the reason of the confusion.&amp;nbsp; I didn't mean "using parameter in the button".&amp;nbsp; I meant use a variable as parameter in the macro.&amp;nbsp; The value of the variable can be set &lt;STRONG&gt;manually &lt;/STRONG&gt;in an input box.&lt;/P&gt;&lt;P&gt;If the value of the variable can be set &lt;STRONG&gt;automatically &lt;/STRONG&gt;based on some conditions - it can be set in the macro itself instead of an additional action, meaning that parameter not needed at all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jul 2012 10:21:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Button-gt-Action-gt-start-vbs-script-with-parameter/m-p/372658#M138564</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-07-30T10:21:08Z</dc:date>
    </item>
    <item>
      <title>Re: Button &gt; Action &gt; start vbs-script with parameter</title>
      <link>https://community.qlik.com/t5/QlikView/Button-gt-Action-gt-start-vbs-script-with-parameter/m-p/372659#M138565</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Michael&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That’s a good point, there are many ways that the value of the variables could be set. The macro could also reference values from the current field selections.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jul 2012 10:50:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Button-gt-Action-gt-start-vbs-script-with-parameter/m-p/372659#M138565</guid>
      <dc:creator>Lee_Matthews</dc:creator>
      <dc:date>2012-07-30T10:50:30Z</dc:date>
    </item>
    <item>
      <title>Re: Button &gt; Action &gt; start vbs-script with parameter</title>
      <link>https://community.qlik.com/t5/QlikView/Button-gt-Action-gt-start-vbs-script-with-parameter/m-p/372660#M138566</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I did not thought of qlikview macro, this is a very good idea.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I get another errormessage when I use the same script in QV (type VBScript, System Access, Allow System Access)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set Para = wscript.Arguments&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;QV tells me&amp;nbsp; 'Objekt erforderlich: 'wscript'' (means Object needed: 'wscript') But I think I need this for my parameters&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dim Servername&lt;/P&gt;&lt;P&gt;Servername = Para(0)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jul 2012 18:20:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Button-gt-Action-gt-start-vbs-script-with-parameter/m-p/372660#M138566</guid>
      <dc:creator />
      <dc:date>2012-07-30T18:20:26Z</dc:date>
    </item>
    <item>
      <title>Re: Button &gt; Action &gt; start vbs-script with parameter</title>
      <link>https://community.qlik.com/t5/QlikView/Button-gt-Action-gt-start-vbs-script-with-parameter/m-p/372661#M138567</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you need to set Module Security to System Access, and Corrent Local Security to Allow System Access - they are in the bottom left part of the window.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jul 2012 18:25:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Button-gt-Action-gt-start-vbs-script-with-parameter/m-p/372661#M138567</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-07-30T18:25:32Z</dc:date>
    </item>
    <item>
      <title>Re: Button &gt; Action &gt; start vbs-script with parameter</title>
      <link>https://community.qlik.com/t5/QlikView/Button-gt-Action-gt-start-vbs-script-with-parameter/m-p/372662#M138568</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks, but I did - &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(type VBScript, System Access, Allow System Access)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jul 2012 18:40:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Button-gt-Action-gt-start-vbs-script-with-parameter/m-p/372662#M138568</guid>
      <dc:creator />
      <dc:date>2012-07-30T18:40:34Z</dc:date>
    </item>
    <item>
      <title>Re: Button &gt; Action &gt; start vbs-script with parameter</title>
      <link>https://community.qlik.com/t5/QlikView/Button-gt-Action-gt-start-vbs-script-with-parameter/m-p/372663#M138569</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, wasn't careful &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Are you using "option explicit"?&amp;nbsp; If yes, make sure you have "dim wscript".&lt;/P&gt;&lt;P&gt;Also, maybe you don't need "set" here, just&lt;/P&gt;&lt;P&gt;Para = wscript.Arguments&lt;/P&gt;&lt;P&gt;(Just a wild guess, can't tell for sure without seeing the whole picture.&amp;nbsp; And I'm not a VBScript expert.)&lt;/P&gt;&lt;P&gt;I often use msgbox-es in the macro script to debug, helps to see what is going on.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jul 2012 18:50:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Button-gt-Action-gt-start-vbs-script-with-parameter/m-p/372663#M138569</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-07-30T18:50:09Z</dc:date>
    </item>
  </channel>
</rss>

