<?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: Vbs - passing parameters to opendoc or opendocex in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Vbs-passing-parameters-to-opendoc-or-opendocex/m-p/484283#M693026</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your variable is already exists in the called app? Perhaps there is a little error in the syntax ... post your code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Aug 2013 06:49:49 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2013-08-13T06:49:49Z</dc:date>
    <item>
      <title>Vbs - passing parameters to opendoc or opendocex</title>
      <link>https://community.qlik.com/t5/QlikView/Vbs-passing-parameters-to-opendoc-or-opendocex/m-p/484279#M693022</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;thanks for all your solutions and good topics of this community.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a issue with automating the reloading of qvw with vbs. Indeed, I would like to reload a bunch of apps with a batch script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thus, I first used the qv.exe command line with /r and /l arguments but I faced an issue with the progress window that does not automatically close.&lt;/P&gt;&lt;P&gt;So I then found the vbs solution, using the opendocex function which allow a "progress mode" and avoid this progress window. This nicely works, except that I can not find out how to pass parameters to this method (same as /v argument with the qv.exe command line).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I searched my friend google but have not found out the answer. Any idea ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks by advance for you help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Romain&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Aug 2013 10:08:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Vbs-passing-parameters-to-opendoc-or-opendocex/m-p/484279#M693022</guid>
      <dc:creator />
      <dc:date>2013-08-12T10:08:33Z</dc:date>
    </item>
    <item>
      <title>Re: Vbs - passing parameters to opendoc or opendocex</title>
      <link>https://community.qlik.com/t5/QlikView/Vbs-passing-parameters-to-opendoc-or-opendocex/m-p/484280#M693023</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1 - Using Publisher&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In QlikView QMC-&amp;gt; Users-&amp;gt; Supporting Tasks-&amp;gt; External commands. You could run external commands and pass parameters the same way you schedule a Windows Scheduled task.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2 - ShellExecute command :&lt;/P&gt;&lt;P&gt;- Make sure that you have checked on 'close when finished' on Script Execution Progress window.&lt;/P&gt;&lt;P&gt;- Also you could use window paramter to hide QV to be displayed while reloading ,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Example : &lt;A class="loading" href="http://ss64.com/vb/shellexecute.html"&gt;http://ss64.com/vb/shellexecute.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MultiView&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Aug 2013 10:43:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Vbs-passing-parameters-to-opendoc-or-opendocex/m-p/484280#M693023</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-08-12T10:43:16Z</dc:date>
    </item>
    <item>
      <title>Re: Vbs - passing parameters to opendoc or opendocex</title>
      <link>https://community.qlik.com/t5/QlikView/Vbs-passing-parameters-to-opendoc-or-opendocex/m-p/484281#M693024</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could the apps treat as object and set hereby any variables you want:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set App = ActiveDocument.GetApplication&lt;/P&gt;&lt;P&gt;set newdoc = App.OpenDoc (Path &amp;amp; Area &amp;amp; arr(i_app),"","")&lt;/P&gt;&lt;P&gt;newdoc.Variables("text_update").SetContent M_all, true&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Aug 2013 11:41:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Vbs-passing-parameters-to-opendoc-or-opendocex/m-p/484281#M693024</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2013-08-12T11:41:54Z</dc:date>
    </item>
    <item>
      <title>Re: Vbs - passing parameters to opendoc or opendocex</title>
      <link>https://community.qlik.com/t5/QlikView/Vbs-passing-parameters-to-opendoc-or-opendocex/m-p/484282#M693025</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Multiview and Marcus.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried the "object" solution, but unfortunately I got an error :&lt;/P&gt;&lt;P&gt;"Required Object: 'Variables(...)'"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; ?&lt;/P&gt;&lt;P&gt;oO &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Aug 2013 16:08:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Vbs-passing-parameters-to-opendoc-or-opendocex/m-p/484282#M693025</guid>
      <dc:creator />
      <dc:date>2013-08-12T16:08:28Z</dc:date>
    </item>
    <item>
      <title>Re: Vbs - passing parameters to opendoc or opendocex</title>
      <link>https://community.qlik.com/t5/QlikView/Vbs-passing-parameters-to-opendoc-or-opendocex/m-p/484283#M693026</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your variable is already exists in the called app? Perhaps there is a little error in the syntax ... post your code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Aug 2013 06:49:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Vbs-passing-parameters-to-opendoc-or-opendocex/m-p/484283#M693026</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2013-08-13T06:49:49Z</dc:date>
    </item>
    <item>
      <title>Re: Vbs - passing parameters to opendoc or opendocex</title>
      <link>https://community.qlik.com/t5/QlikView/Vbs-passing-parameters-to-opendoc-or-opendocex/m-p/484284#M693027</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much for your assistance Marcus.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is my code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Option Explicit&lt;/P&gt;&lt;P&gt;Dim QA, QD, apppath, param1&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;apppath = "C:\test.qvw"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;param1 = inputBox("param: ")&lt;/P&gt;&lt;P&gt;set QA = CreateObject("QlikTech.QlikView")&lt;/P&gt;&lt;P&gt;set newdoc = QA.OpenDoc(apppath, "","")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;newdoc.Variables("matable").SetContent param1, true&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;QD.ReloadEx 0,1&lt;/P&gt;&lt;P&gt;QD.save&lt;/P&gt;&lt;P&gt;QD.CloseDoc&lt;/P&gt;&lt;P&gt;QA.Quit&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note that the variable "matable" is declared in my QVW.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Aug 2013 07:41:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Vbs-passing-parameters-to-opendoc-or-opendocex/m-p/484284#M693027</guid>
      <dc:creator />
      <dc:date>2013-08-13T07:41:40Z</dc:date>
    </item>
    <item>
      <title>Re: Vbs - passing parameters to opendoc or opendocex</title>
      <link>https://community.qlik.com/t5/QlikView/Vbs-passing-parameters-to-opendoc-or-opendocex/m-p/484285#M693028</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This worked:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Option Explicit&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dim QA, QD, apppath, param1, newdoc&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;apppath = "C:\test.qvw"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;param1 = inputBox("param: ")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set QA = CreateObject("QlikTech.QlikView")&lt;/P&gt;&lt;P&gt;set QD = QA.ActiveDocument.GetApplication&lt;/P&gt;&lt;P&gt;set newdoc = QD.OpenDoc(apppath, "","")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;newdoc.Variables("matable").SetContent param1, true&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;newdoc.ReloadEx 0,1&lt;/P&gt;&lt;P&gt;newdoc.save&lt;/P&gt;&lt;P&gt;newdoc.CloseDoc&lt;/P&gt;&lt;P&gt;QD.Quit&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Aug 2013 11:11:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Vbs-passing-parameters-to-opendoc-or-opendocex/m-p/484285#M693028</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2013-08-13T11:11:11Z</dc:date>
    </item>
    <item>
      <title>Re: Vbs - passing parameters to opendoc or opendocex</title>
      <link>https://community.qlik.com/t5/QlikView/Vbs-passing-parameters-to-opendoc-or-opendocex/m-p/484286#M693029</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Got it working! Thanks Marcus. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Aug 2013 12:41:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Vbs-passing-parameters-to-opendoc-or-opendocex/m-p/484286#M693029</guid>
      <dc:creator />
      <dc:date>2013-08-13T12:41:38Z</dc:date>
    </item>
  </channel>
</rss>

