<?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: Open a document on the access point and make selections with vb script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Open-a-document-on-the-access-point-and-make-selections-with-vb/m-p/615279#M685015</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;OL&gt;&lt;LI&gt;AccessPoint documents cannot be modified, even when you open them using your Desktop as an AP client.&lt;/LI&gt;&lt;LI&gt;VBScript macros in many cases do not run on the server. If you use the AJAX-client as default AccessPoint client, then VBS simply won't exist. Even the use of some triggers is restricted.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You may want to consult the QlikView Reference Manual Ch 80 &lt;EM&gt;Using Macros in QV Documents on the QV Server&lt;/EM&gt; for an overview what is/isn't possible in the server environment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Feb 2014 12:55:24 GMT</pubDate>
    <dc:creator>Peter_Cammaert</dc:creator>
    <dc:date>2014-02-06T12:55:24Z</dc:date>
    <item>
      <title>Open a document on the access point and make selections with vb script</title>
      <link>https://community.qlik.com/t5/QlikView/Open-a-document-on-the-access-point-and-make-selections-with-vb/m-p/615278#M685014</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi community.&lt;/P&gt;&lt;P&gt;I used the script provided by QlikTech to open a document, browse through objects and sheets, apply selections and close it again. This is used for precaching a document on the server so that the 1st user opens it quickly. It works fine if the document is opened by the desktop client.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Question : &lt;/P&gt;&lt;P&gt;Can it be done so that it opens on the access point instead of the desktop client? qvp call opens the file from the server but still it is opened in the desktop client (Like the open in server desktop functionality). I need to open it in the access point. Something like :&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Courier New'; font-size: 12px;"&gt;set doc = x.OpenDoc("c:\program files\internet explorer\iexplore.exe qvp://server/dashboard.qvw") &lt;SPAN style="font-size: 10pt;"&gt;but this does not work. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Script :&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;set x = CreateObject("QlikTech.QlikView")&lt;BR /&gt; set doc = x.OpenDoc("qvp://server/dashboard.qvw")&lt;BR /&gt; &lt;BR /&gt; loop_through_objects(doc)&lt;BR /&gt; doc.CloseDoc&lt;BR /&gt; x.Quit&lt;BR /&gt; &lt;BR /&gt; Sub loop_through_objects(doc)&lt;BR /&gt; For i = 0 to doc.NoOfSheets - 1&lt;BR /&gt; &lt;BR /&gt; doc.ActivateSheet i&lt;BR /&gt; 'Selection loop thru the field Region for example&lt;BR /&gt; Set val = doc.Fields("Region").GetOptionalValues&lt;BR /&gt; For y = 0 to val.Count - 1&lt;BR /&gt; &lt;BR /&gt; INH = val.Item(y).Text&lt;BR /&gt; doc.Fields("Region").select INH&lt;BR /&gt; Objects = doc.ActiveSheet.GetSheetObjects&lt;BR /&gt; For j = lBound(Objects) to uBound(Objects)&lt;BR /&gt; &lt;BR /&gt; set table = Objects(j)&lt;BR /&gt; select case Objects(j).GetObjectType&lt;BR /&gt; case 1,4,10,11,12,13,14,16,20,21,27&lt;BR /&gt; On Error Resume Next&lt;BR /&gt; CellRect = doc.GetApplication().GetEmptyRect()&lt;BR /&gt; CellRect.Top = 0&lt;BR /&gt; CellRect.Left = 0&lt;BR /&gt; CellRect.Width = table.GetColumnCount&lt;BR /&gt; CellRect.Height = table.GetRowCount&lt;BR /&gt; set CellMatrix = table.GetCells(CellRect)&lt;BR /&gt; For RowIter = 0 to CellMatrix.Count - 1&lt;BR /&gt; Next&lt;BR /&gt; End Select&lt;BR /&gt; &lt;BR /&gt; Next&lt;BR /&gt; &lt;BR /&gt; Next&lt;BR /&gt; doc.Fields("Region").clear&lt;BR /&gt; &lt;BR /&gt; Next&lt;BR /&gt; End Sub &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Feb 2014 11:53:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Open-a-document-on-the-access-point-and-make-selections-with-vb/m-p/615278#M685014</guid>
      <dc:creator>giakoum</dc:creator>
      <dc:date>2014-02-06T11:53:31Z</dc:date>
    </item>
    <item>
      <title>Re: Open a document on the access point and make selections with vb script</title>
      <link>https://community.qlik.com/t5/QlikView/Open-a-document-on-the-access-point-and-make-selections-with-vb/m-p/615279#M685015</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;OL&gt;&lt;LI&gt;AccessPoint documents cannot be modified, even when you open them using your Desktop as an AP client.&lt;/LI&gt;&lt;LI&gt;VBScript macros in many cases do not run on the server. If you use the AJAX-client as default AccessPoint client, then VBS simply won't exist. Even the use of some triggers is restricted.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You may want to consult the QlikView Reference Manual Ch 80 &lt;EM&gt;Using Macros in QV Documents on the QV Server&lt;/EM&gt; for an overview what is/isn't possible in the server environment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Feb 2014 12:55:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Open-a-document-on-the-access-point-and-make-selections-with-vb/m-p/615279#M685015</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2014-02-06T12:55:24Z</dc:date>
    </item>
    <item>
      <title>Re: Open a document on the access point and make selections with vb script</title>
      <link>https://community.qlik.com/t5/QlikView/Open-a-document-on-the-access-point-and-make-selections-with-vb/m-p/615280#M685016</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Peter.&lt;/P&gt;&lt;P&gt;this is not a macro within the document I am talking about. This is VB script in a vbs file executed outside the document, just calling in the document as an object.&lt;/P&gt;&lt;P&gt;That is why OpenDoc is used and not ActiveDocument. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Feb 2014 15:02:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Open-a-document-on-the-access-point-and-make-selections-with-vb/m-p/615280#M685016</guid>
      <dc:creator>giakoum</dc:creator>
      <dc:date>2014-02-06T15:02:50Z</dc:date>
    </item>
    <item>
      <title>Re: Open a document on the access point and make selections with vb script</title>
      <link>https://community.qlik.com/t5/QlikView/Open-a-document-on-the-access-point-and-make-selections-with-vb/m-p/615281#M685017</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So what are you up to? Opening a document in the AccessPoint/QVS and walking sheets and making selections creates a different Document State that applies to... the current user only. If your User1 is someone else, no luck...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A macro running outside the desktop uses COM objects and OCX calls to open and manipulate a QlikView document. Those functions only exist in the IE plugin or in the desktop itself. Seems logical to me that those are the ones being used as QV interfaces.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BTW when you use "qvp://servername/document.qvw" in your OpenDoc call, you are still opening your document in the AccessPoint - or better - from the QlikView Server because even the AccessPoint does nothing else than pass document information from QVS to the client. So that logic is sound. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or am I still not on the right track?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Feb 2014 15:32:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Open-a-document-on-the-access-point-and-make-selections-with-vb/m-p/615281#M685017</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2014-02-06T15:32:09Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Open a document on the access point and make selections with vb script</title>
      <link>https://community.qlik.com/t5/QlikView/Open-a-document-on-the-access-point-and-make-selections-with-vb/m-p/615282#M685018</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Peter.&lt;/P&gt;&lt;P&gt;If the caching applies to only the current user , then you are right, nothing accomplished. But I believe that the caching applies to all users that will use the document. See page 37 of the attached document.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Feb 2014 15:37:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Open-a-document-on-the-access-point-and-make-selections-with-vb/m-p/615282#M685018</guid>
      <dc:creator>giakoum</dc:creator>
      <dc:date>2014-02-06T15:37:37Z</dc:date>
    </item>
    <item>
      <title>Re: Open a document on the access point and make selections with vb script</title>
      <link>https://community.qlik.com/t5/QlikView/Open-a-document-on-the-access-point-and-make-selections-with-vb/m-p/615283#M685020</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Great, I learned something today. Didn't know you could manipulate QVS cache management.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You're clearly in a situation where your end-users might gain a lot from such techniques. Although cache management may look pretty unpredictable from the outside as it is highly load-related. The system decides on what to keep in the cache and what to throw out when memory runs low.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you do any performance improvement assessments with the working version of your set-up?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would very much appreciate it if you keep us posted about your advances.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Feb 2014 07:50:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Open-a-document-on-the-access-point-and-make-selections-with-vb/m-p/615283#M685020</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2014-02-07T07:50:12Z</dc:date>
    </item>
    <item>
      <title>Re: Open a document on the access point and make selections with vb script</title>
      <link>https://community.qlik.com/t5/QlikView/Open-a-document-on-the-access-point-and-make-selections-with-vb/m-p/615284#M685023</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Peter. I will keep you updated. The qvw file itself has been performance tuned to the max. At least, so we believe &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Feb 2014 08:11:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Open-a-document-on-the-access-point-and-make-selections-with-vb/m-p/615284#M685023</guid>
      <dc:creator>giakoum</dc:creator>
      <dc:date>2014-02-07T08:11:26Z</dc:date>
    </item>
    <item>
      <title>Re: Open a document on the access point and make selections with vb script</title>
      <link>https://community.qlik.com/t5/QlikView/Open-a-document-on-the-access-point-and-make-selections-with-vb/m-p/615285#M685027</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Peter, unfortunately you can not manipulate QVS cache management. The only thing you can do is the so-called cache warming, making some pre-selections so the aggregated data gets loaded into cache and an then be shared among other users.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Feb 2014 08:49:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Open-a-document-on-the-access-point-and-make-selections-with-vb/m-p/615285#M685027</guid>
      <dc:creator>simondachstr</dc:creator>
      <dc:date>2014-02-07T08:49:28Z</dc:date>
    </item>
    <item>
      <title>Re: Open a document on the access point and make selections with vb script</title>
      <link>https://community.qlik.com/t5/QlikView/Open-a-document-on-the-access-point-and-make-selections-with-vb/m-p/615286#M685030</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have a look at this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/docs/DOC-5812"&gt;http://community.qlik.com/docs/DOC-5812&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;JMeter virtually simulates a user logging into the document no the browser and making selections, however automated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Feb 2014 08:50:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Open-a-document-on-the-access-point-and-make-selections-with-vb/m-p/615286#M685030</guid>
      <dc:creator>simondachstr</dc:creator>
      <dc:date>2014-02-07T08:50:46Z</dc:date>
    </item>
    <item>
      <title>Re: Open a document on the access point and make selections with vb script</title>
      <link>https://community.qlik.com/t5/QlikView/Open-a-document-on-the-access-point-and-make-selections-with-vb/m-p/615287#M685033</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perhaps it could be an alternative to try it with a hyperlink to the vbs-file. Within a pivot-table and clicking on the link it worked for me in fat-client without confirmation and in IE and AJAX with prompting about the execution - maybe this could be solved per security settings. Maybe it is possible to put these logic in any actions therewith it could execute without knowing through the users.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Feb 2014 09:45:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Open-a-document-on-the-access-point-and-make-selections-with-vb/m-p/615287#M685033</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2014-02-07T09:45:59Z</dc:date>
    </item>
    <item>
      <title>Re: Open a document on the access point and make selections with vb script</title>
      <link>https://community.qlik.com/t5/QlikView/Open-a-document-on-the-access-point-and-make-selections-with-vb/m-p/615288#M685035</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How about kicking the VBS-script on the server from a Supporting Task that is chained to the end of the Document Reload. Doh, requires a Publisher and a CAL for the service account.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Feb 2014 09:52:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Open-a-document-on-the-access-point-and-make-selections-with-vb/m-p/615288#M685035</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2014-02-07T09:52:22Z</dc:date>
    </item>
    <item>
      <title>Re: Open a document on the access point and make selections with vb script</title>
      <link>https://community.qlik.com/t5/QlikView/Open-a-document-on-the-access-point-and-make-selections-with-vb/m-p/615289#M685037</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't use the publisher which afaik is the only possibility to trigger external events/batches in a chain of reloads. Only with the server it isn't possible - it needs external schedules/triggers (perhaps windows scheduler) and external checks and error handling. You need always the proper access rights within the file-system and a CAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Feb 2014 10:27:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Open-a-document-on-the-access-point-and-make-selections-with-vb/m-p/615289#M685037</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2014-02-07T10:27:11Z</dc:date>
    </item>
    <item>
      <title>Re: Open a document on the access point and make selections with vb script</title>
      <link>https://community.qlik.com/t5/QlikView/Open-a-document-on-the-access-point-and-make-selections-with-vb/m-p/615290#M685039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That would be my final solution if nothing else comes up. but I hate the idea of assigning a cal to the service account.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Feb 2014 13:32:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Open-a-document-on-the-access-point-and-make-selections-with-vb/m-p/615290#M685039</guid>
      <dc:creator>giakoum</dc:creator>
      <dc:date>2014-02-07T13:32:05Z</dc:date>
    </item>
    <item>
      <title>Re: Open a document on the access point and make selections with vb script</title>
      <link>https://community.qlik.com/t5/QlikView/Open-a-document-on-the-access-point-and-make-selections-with-vb/m-p/615291#M685041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Martin.&lt;/P&gt;&lt;P&gt;This looks promising. Not sure if I can install anything on the server but lets see.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Feb 2014 13:33:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Open-a-document-on-the-access-point-and-make-selections-with-vb/m-p/615291#M685041</guid>
      <dc:creator>giakoum</dc:creator>
      <dc:date>2014-02-07T13:33:17Z</dc:date>
    </item>
  </channel>
</rss>

