<?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 Opening document from other in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Opening-document-from-other/m-p/146183#M24779</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is the one I use:&lt;/P&gt;&lt;P&gt;SUB LaunchApp&lt;/P&gt;&lt;P&gt;SET doc = ActiveDocument&lt;/P&gt;&lt;P&gt;'This part deals with setting a parameter to send into the invoked document, it is of course optional&lt;BR /&gt; 'And you would need to add something into the invoked document to transfer this to a field&lt;BR /&gt; 'selection, I have included it as an example&lt;BR /&gt; '&lt;BR /&gt; 'Note that it will only set the value if a single selection is made, it cannot deal with multiple selections&lt;/P&gt;&lt;P&gt;SET fld = doc.GetField("CF_ShortName")&lt;BR /&gt; IF fld.GetValueCount(1) = 1 THEN ' explicitly selected&lt;BR /&gt; param1 = doc.fields("CF_ShortName").GetSelectedValues.Item(0).text&lt;BR /&gt; ELSE&lt;BR /&gt; IF fld.GetValueCount(2) = 1 THEN ' implicitly selected (associated)&lt;BR /&gt; param1 = doc.fields("CF_ShortName").GetOptionalValues.Item(0).text&lt;BR /&gt; ELSE&lt;BR /&gt; param1 = ""&lt;BR /&gt; END IF&lt;BR /&gt; END IF&lt;/P&gt;&lt;P&gt;'Note: BU220 is a button that is hidden in the document, it is marked as a button to Launch/Export and by default&lt;BR /&gt; 'the properties are set to launch the Internet Explorer application.&lt;/P&gt;&lt;P&gt;SET b = doc.GetSheetObject("BU220")&lt;/P&gt;&lt;P&gt;SET bp = b.GetProperties&lt;/P&gt;&lt;P&gt;'Following line sets the application to Launch&lt;BR /&gt; bp.Application.v = "C:\Program Files\Internet Explorer\IEXPLORE.EXE"&lt;/P&gt;&lt;P&gt;'Following line sets the parameter property of the button, this is the URL to launch the invoked document&lt;BR /&gt; 'note that qvp:// is the standard syntax for launching a document on the server, the path and filename&lt;BR /&gt; 'obviously should be changed according to your own requirements.&lt;BR /&gt; bp.Parameters.v = "qvp://qaqkv02/darqmatter/innovation/Investor Reporting (Innovation).QVW?parm_FundName=" &amp;amp; param1&lt;/P&gt;&lt;P&gt;'This line sets the above properties into the button&lt;BR /&gt; b.SetProperties bp&lt;/P&gt;&lt;P&gt;'This line presses the button (i.e. it executes the launch/export function&lt;BR /&gt; b.Press&lt;BR /&gt;END SUB&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nigel.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 08 Jun 2009 23:12:36 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-06-08T23:12:36Z</dc:date>
    <item>
      <title>Opening document from other</title>
      <link>https://community.qlik.com/t5/QlikView/Opening-document-from-other/m-p/146180#M24776</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;can you explain me if it's possibile, and how, to create an QV document that manages other QV docment ?&lt;/P&gt;&lt;P&gt;I have realized this with a Macro on a button and it works...but if I deploy the document on the server it doesn't work.&lt;/P&gt;&lt;P&gt;It seem like the the Macro cannot run in the browser (in a LAN contest).&lt;/P&gt;&lt;P&gt;Thanks a lot.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jun 2009 22:35:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Opening-document-from-other/m-p/146180#M24776</guid>
      <dc:creator />
      <dc:date>2009-06-08T22:35:29Z</dc:date>
    </item>
    <item>
      <title>Opening document from other</title>
      <link>https://community.qlik.com/t5/QlikView/Opening-document-from-other/m-p/146181#M24777</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Sayed&lt;/P&gt;&lt;P&gt;I have got this working on the Server in the last couple of weeks so it's certainly possible, it is probably something to do with your macro that is causing the problem. Can you post a sample of the code you are using so I can take a look.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nigel.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jun 2009 22:51:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Opening-document-from-other/m-p/146181#M24777</guid>
      <dc:creator />
      <dc:date>2009-06-08T22:51:06Z</dc:date>
    </item>
    <item>
      <title>Opening document from other</title>
      <link>https://community.qlik.com/t5/QlikView/Opening-document-from-other/m-p/146182#M24778</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have not the Macro with me now.&lt;/P&gt;&lt;P&gt;Can you please post me yours ?&lt;/P&gt;&lt;P&gt;So I can try and verify.&lt;/P&gt;&lt;P&gt;Thanks a lot.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jun 2009 23:00:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Opening-document-from-other/m-p/146182#M24778</guid>
      <dc:creator />
      <dc:date>2009-06-08T23:00:37Z</dc:date>
    </item>
    <item>
      <title>Opening document from other</title>
      <link>https://community.qlik.com/t5/QlikView/Opening-document-from-other/m-p/146183#M24779</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is the one I use:&lt;/P&gt;&lt;P&gt;SUB LaunchApp&lt;/P&gt;&lt;P&gt;SET doc = ActiveDocument&lt;/P&gt;&lt;P&gt;'This part deals with setting a parameter to send into the invoked document, it is of course optional&lt;BR /&gt; 'And you would need to add something into the invoked document to transfer this to a field&lt;BR /&gt; 'selection, I have included it as an example&lt;BR /&gt; '&lt;BR /&gt; 'Note that it will only set the value if a single selection is made, it cannot deal with multiple selections&lt;/P&gt;&lt;P&gt;SET fld = doc.GetField("CF_ShortName")&lt;BR /&gt; IF fld.GetValueCount(1) = 1 THEN ' explicitly selected&lt;BR /&gt; param1 = doc.fields("CF_ShortName").GetSelectedValues.Item(0).text&lt;BR /&gt; ELSE&lt;BR /&gt; IF fld.GetValueCount(2) = 1 THEN ' implicitly selected (associated)&lt;BR /&gt; param1 = doc.fields("CF_ShortName").GetOptionalValues.Item(0).text&lt;BR /&gt; ELSE&lt;BR /&gt; param1 = ""&lt;BR /&gt; END IF&lt;BR /&gt; END IF&lt;/P&gt;&lt;P&gt;'Note: BU220 is a button that is hidden in the document, it is marked as a button to Launch/Export and by default&lt;BR /&gt; 'the properties are set to launch the Internet Explorer application.&lt;/P&gt;&lt;P&gt;SET b = doc.GetSheetObject("BU220")&lt;/P&gt;&lt;P&gt;SET bp = b.GetProperties&lt;/P&gt;&lt;P&gt;'Following line sets the application to Launch&lt;BR /&gt; bp.Application.v = "C:\Program Files\Internet Explorer\IEXPLORE.EXE"&lt;/P&gt;&lt;P&gt;'Following line sets the parameter property of the button, this is the URL to launch the invoked document&lt;BR /&gt; 'note that qvp:// is the standard syntax for launching a document on the server, the path and filename&lt;BR /&gt; 'obviously should be changed according to your own requirements.&lt;BR /&gt; bp.Parameters.v = "qvp://qaqkv02/darqmatter/innovation/Investor Reporting (Innovation).QVW?parm_FundName=" &amp;amp; param1&lt;/P&gt;&lt;P&gt;'This line sets the above properties into the button&lt;BR /&gt; b.SetProperties bp&lt;/P&gt;&lt;P&gt;'This line presses the button (i.e. it executes the launch/export function&lt;BR /&gt; b.Press&lt;BR /&gt;END SUB&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nigel.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jun 2009 23:12:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Opening-document-from-other/m-p/146183#M24779</guid>
      <dc:creator />
      <dc:date>2009-06-08T23:12:36Z</dc:date>
    </item>
    <item>
      <title>Opening document from other</title>
      <link>https://community.qlik.com/t5/QlikView/Opening-document-from-other/m-p/146184#M24780</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can also just put the qvp URL in a launch button. No macro required.&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jun 2009 04:05:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Opening-document-from-other/m-p/146184#M24780</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2009-06-09T04:05:08Z</dc:date>
    </item>
  </channel>
</rss>

