<?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 Open Qlikview Document action in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Open-Qlikview-Document-action/m-p/189557#M52401</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Aha! That makes great sense!&lt;/P&gt;&lt;P&gt;Thanks Oleg!&lt;/P&gt;&lt;P&gt;Gordon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 Jun 2010 17:26:14 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-06-15T17:26:14Z</dc:date>
    <item>
      <title>Open Qlikview Document action</title>
      <link>https://community.qlik.com/t5/QlikView/Open-Qlikview-Document-action/m-p/189555#M52399</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;Just upgraded to v9sr4 from v8.20 and going through the snag list....&lt;/P&gt;&lt;P&gt;I use a technique to pass parameters to invoke another document from a button where the code typically looks like:&lt;/P&gt;&lt;P&gt;sub CallMachMan&lt;BR /&gt;' Invoke Machine Management document&lt;/P&gt;&lt;P&gt;Set doc = ActiveDocument&lt;/P&gt;&lt;P&gt;PassPars = "?SheetName=SUZI List"&lt;/P&gt;&lt;P&gt;' If only one depot currently selected then default Machine Management to this value&lt;BR /&gt; set DefDep = doc.Fields("Depot No").GetPossibleValues&lt;BR /&gt; If DefDep.Count = 1 then&lt;BR /&gt; PassPars = PassPars &amp;amp; "&amp;amp;DepotNo=" &amp;amp; DefDep.Item(0).Text&lt;BR /&gt; End if&lt;/P&gt;&lt;P&gt;Set b = doc.GetSheetObject("BU05")&lt;BR /&gt; Set bp = b.GetProperties&lt;BR /&gt; bp.Application.v = "C:\Program Files\Internet Explorer\IEXPLORE.EXE"&lt;BR /&gt; bp.Parameters.v = "qvp://gbduxn015/QVWarranty/MACHINE MANAGEMENT.QVW" &amp;amp; PassPars&lt;BR /&gt;&lt;BR /&gt; b.SetProperties bp&lt;/P&gt;&lt;P&gt;b.Press&lt;/P&gt;&lt;P&gt;end sub&lt;/P&gt;&lt;P&gt;Both 'SheetName' and 'DepotNo' are variables declared in the document 'Machine Management' with OnChange triggers attached to them to activate the relevant sheet and select the passed depot number.&lt;/P&gt;&lt;P&gt;This doesnt work in v9sr4 as the button object doesnt support 'application'.&lt;/P&gt;&lt;P&gt;I can see that using 'Open Qlikview document' I can 'apply state on top of current' but how can I force an active sheet?&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Gordon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jun 2010 16:54:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Open-Qlikview-Document-action/m-p/189555#M52399</guid>
      <dc:creator />
      <dc:date>2010-06-15T16:54:12Z</dc:date>
    </item>
    <item>
      <title>Open Qlikview Document action</title>
      <link>https://community.qlik.com/t5/QlikView/Open-Qlikview-Document-action/m-p/189556#M52400</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Gordon,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as "work around"... I'd try converting the passed parameters into hidden fields with Selections (because Selection state can be passed into the opened document, and then create a set of Actions "On Open" that would test the selected Field Values and open the appropriate Sheet.&lt;/P&gt;&lt;P&gt;When I first switched from Macros (8.5) to Actions (9.00), my first struggle was the lack of the conditional statement IF... THEN ... ELSE...&lt;/P&gt;&lt;P&gt;Again, as a work around, I'm using Variables and conditional function IF () instead - I set a variable using IF() and then use the variable to do something like opening a specific sheet, or enabling objects, etc...&lt;/P&gt;&lt;P&gt;With all the differences and missing functions, I found that, overall, using Actions instead of Macros (when possible) is refreshingly easy and trouble-free...&lt;/P&gt;&lt;P&gt;cheers!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jun 2010 17:10:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Open-Qlikview-Document-action/m-p/189556#M52400</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2010-06-15T17:10:28Z</dc:date>
    </item>
    <item>
      <title>Open Qlikview Document action</title>
      <link>https://community.qlik.com/t5/QlikView/Open-Qlikview-Document-action/m-p/189557#M52401</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Aha! That makes great sense!&lt;/P&gt;&lt;P&gt;Thanks Oleg!&lt;/P&gt;&lt;P&gt;Gordon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jun 2010 17:26:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Open-Qlikview-Document-action/m-p/189557#M52401</guid>
      <dc:creator />
      <dc:date>2010-06-15T17:26:14Z</dc:date>
    </item>
    <item>
      <title>Open Qlikview Document action</title>
      <link>https://community.qlik.com/t5/QlikView/Open-Qlikview-Document-action/m-p/189558#M52402</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oleg,&lt;/P&gt;&lt;P&gt;I have tried using the principles you described, but have run into a smaller problem, which you may or may not have experienced.&lt;/P&gt;&lt;P&gt;In both the original and the destination QV document I have created a field names Transfer. When the action in the original document is executed it selects the value of 1 ind the Transfer field. The Transfer field in the destination document obtains the selection. So far all is good.&lt;/P&gt;&lt;P&gt;When trying to use field event triggers on change of the Field Transfer or a logially associated field, with the action of selecting sheet SH05, nothing happens. It's like the program doesn't register the change, when the document is opened. If I manualy change the selection in the Transfer field, the action, the selection of sheet SH05, is performed.&lt;/P&gt;&lt;P&gt;So I turned to your next suggestion of using variables. I created the variable vTransfer i the destination document, with this formula:&lt;BR /&gt;=&lt;B&gt;if&lt;/B&gt;(&lt;B&gt;GetFieldSelections&lt;/B&gt;(&lt;B&gt;[Transfer]&lt;/B&gt;)=1,1,0)&lt;/P&gt;&lt;P&gt;So when the selection is transfered, the Variable turns to 1 - otherwise 0. Made a variable trigger OnChange to activate SH05.&lt;/P&gt;&lt;P&gt;And it worked!&lt;BR /&gt;But the problem is, that whenever all selections are cleared, it triggers the variable OnChange, and activates SH05, which is quite unsuitable.&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Jul 2010 11:19:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Open-Qlikview-Document-action/m-p/189558#M52402</guid>
      <dc:creator />
      <dc:date>2010-07-30T11:19:23Z</dc:date>
    </item>
    <item>
      <title>Open Qlikview Document action</title>
      <link>https://community.qlik.com/t5/QlikView/Open-Qlikview-Document-action/m-p/189559#M52403</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hmm, I'd think along the lines of involving another variable, that could hold the "status" - once the document is open and sheet SH05 is activated, mthe second variable can be set to a value meaning "No More".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 01 Aug 2010 21:09:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Open-Qlikview-Document-action/m-p/189559#M52403</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2010-08-01T21:09:46Z</dc:date>
    </item>
  </channel>
</rss>

