<?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: Cannot set values for variables using the command line and qvp:// protocol in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Cannot-set-values-for-variables-using-the-command-line-and-qvp/m-p/495964#M185448</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;Hi all,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;I'm novice at macros and I'm encountering the same problem. I have two queries:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;1-&amp;nbsp; I'd like to know how I should insert this text:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;"C:\Program Files\QlikView\Qv.exe" /vVariable=1 "&lt;A href="https://community.qlik.com/"&gt;\\MyUser\MyFolder\MyQV.qvw&lt;/A&gt;"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;in the module editor within the subroutine body. For now, the editor tells me that it expects an statement.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;Could anybody provide me with the complete macro code?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;2- Next step for me will be also to achieve this with qvp path at server side. Has anybody confirm if it has been possible and provide with the correct qvd path syntax?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;Thanks in advanced,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;Beatriz&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 27 Jan 2015 14:28:01 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-01-27T14:28:01Z</dc:date>
    <item>
      <title>Cannot set values for variables using the command line and qvp:// protocol</title>
      <link>https://community.qlik.com/t5/QlikView/Cannot-set-values-for-variables-using-the-command-line-and-qvp/m-p/495961#M185445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am having trouble with using QlikView from the command line when passing variables using the QVP protocol.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. My document has a variable called vFileID&lt;/P&gt;&lt;P&gt;2. I created a subroutine titled "AutoRun" and assigned this to run automatically on document open. (Document Properties &amp;gt; Triggers Tab &amp;gt; OnOpen &amp;gt; Edit Actions &amp;gt; Run Macro &amp;gt; AutoRun)&lt;/P&gt;&lt;P&gt;3. I call this QlikView document with the command line option -vvFileID=12345 to set the value of the variable from the command line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works beautifully if I open the file directly from the server file share. The variable is set and I can take action to filter the document on this value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;"c:\program files\QlikView\qv.exe" /vvFileID=12345 "\\muscobi\QlikView User Documents\SimpleDMS\SimpleDMS.qvw"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, when I open the document on the server using the QVP protocol that the users need, the variables are not set. The file opens, and the autorun code fires, but the variables are empty.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;"c:\program files\QlikView\qv.exe" /vvFileID=12345 "qvp://muscobi/AccessPoint/SimpleDMS/SimpleDMS.qvw"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone have any suggestions for getting this to work?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Sep 2013 17:31:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Cannot-set-values-for-variables-using-the-command-line-and-qvp/m-p/495961#M185445</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-09-06T17:31:04Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot set values for variables using the command line and qvp:// protocol</title>
      <link>https://community.qlik.com/t5/QlikView/Cannot-set-values-for-variables-using-the-command-line-and-qvp/m-p/495962#M185446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So, nothing? I guess this is one for QlikView technical support, then.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Sep 2013 16:24:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Cannot-set-values-for-variables-using-the-command-line-and-qvp/m-p/495962#M185446</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-09-10T16:24:25Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot set values for variables using the command line and qvp:// protocol</title>
      <link>https://community.qlik.com/t5/QlikView/Cannot-set-values-for-variables-using-the-command-line-and-qvp/m-p/495963#M185447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'courier new', courier;"&gt;"c:\program files\QlikView\qv.exe" "qvp://muscobi/AccessPoint/SimpleDMS/SimpleDMS.qvw?&lt;SPAN style="color: #3d3d3d; font-family: 'courier new', courier;"&gt;vFileID=12345&lt;/SPAN&gt;"&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jul 2014 10:51:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Cannot-set-values-for-variables-using-the-command-line-and-qvp/m-p/495963#M185447</guid>
      <dc:creator />
      <dc:date>2014-07-07T10:51:18Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot set values for variables using the command line and qvp:// protocol</title>
      <link>https://community.qlik.com/t5/QlikView/Cannot-set-values-for-variables-using-the-command-line-and-qvp/m-p/495964#M185448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;Hi all,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;I'm novice at macros and I'm encountering the same problem. I have two queries:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;1-&amp;nbsp; I'd like to know how I should insert this text:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;"C:\Program Files\QlikView\Qv.exe" /vVariable=1 "&lt;A href="https://community.qlik.com/"&gt;\\MyUser\MyFolder\MyQV.qvw&lt;/A&gt;"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;in the module editor within the subroutine body. For now, the editor tells me that it expects an statement.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;Could anybody provide me with the complete macro code?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;2- Next step for me will be also to achieve this with qvp path at server side. Has anybody confirm if it has been possible and provide with the correct qvd path syntax?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;Thanks in advanced,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;Beatriz&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jan 2015 14:28:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Cannot-set-values-for-variables-using-the-command-line-and-qvp/m-p/495964#M185448</guid>
      <dc:creator />
      <dc:date>2015-01-27T14:28:01Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot set values for variables using the command line and qvp:// protocol</title>
      <link>https://community.qlik.com/t5/QlikView/Cannot-set-values-for-variables-using-the-command-line-and-qvp/m-p/495965#M185449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I just created a new document and ran into the same problem as I had with this one. Searching Google I found my original limitation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your suggestion works! Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am running some macro code on load to make the selection based on the variable. This command line populates the variable as expected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"C:\Program Files\QlikView\Qv.exe" "qvp://muscobi/AccessPoint/Customer Service/Invoice Lookup.qvw?vInvoiceNo=149120"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My macro to make the selection:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sub AutoRun()&lt;/P&gt;&lt;P&gt;'clear selections&lt;/P&gt;&lt;P&gt;ActiveDocument.Clearall false&lt;/P&gt;&lt;P&gt;'msgbox activeDocument.variables("vInvoiceNo").GetContent.String&lt;/P&gt;&lt;P&gt;'set the InvoiceNo &lt;/P&gt;&lt;P&gt;if activeDocument.variables("vInvoiceNo").GetContent.String &amp;lt;&amp;gt; "" then&lt;/P&gt;&lt;P&gt;ActiveDocument.Fields("invoice_no").ToggleSelect activeDocument.variables("vInvoiceNo").GetContent.String&lt;/P&gt;&lt;P&gt;ActiveDocument.variables("vInvoiceNo").SetContent "", True&lt;/P&gt;&lt;P&gt;end if&lt;/P&gt;&lt;P&gt;&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;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 22 Jul 2017 00:50:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Cannot-set-values-for-variables-using-the-command-line-and-qvp/m-p/495965#M185449</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-07-22T00:50:07Z</dc:date>
    </item>
  </channel>
</rss>

