<?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 Select a Report at runtime.... in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Select-a-Report-at-runtime/m-p/198815#M57990</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Anand,&lt;/P&gt;&lt;P&gt;If you can add the script then it will be easy to find the error.&lt;/P&gt;&lt;P&gt;Below is the code which we normally use&lt;/P&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;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&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;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;set&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;v = ActiveDocument.Variables("test") &lt;P&gt;&lt;/P&gt;&lt;P&gt;ActiveDocument.PrintReport v.GetContent.&lt;/P&gt;&lt;P&gt;&lt;B&gt;String&lt;/B&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;I hope this helps&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Feb 2011 07:04:52 GMT</pubDate>
    <dc:creator>deepakk</dc:creator>
    <dc:date>2011-02-03T07:04:52Z</dc:date>
    <item>
      <title>Select a Report at runtime....</title>
      <link>https://community.qlik.com/t5/QlikView/Select-a-Report-at-runtime/m-p/198814#M57989</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I have created 2 reports with name RP01 and RP02. RP01 is for a table CH01 and RP02 is for CH02.&lt;/P&gt;&lt;P&gt;I have created a button and selected the action PrintReport to export the report in PDF. As the button is 1 and Tables are 2 then I created a variable say varRep. Now in sheet properties on Trigger tab I added action OnActive of CH01 and assigned RP01 to varRep variable. Similarly, active action of CH02 I assigned RP02 to varRep variable. I am using this variable in the action tab of the button in ReportID of PrintReport action.&lt;/P&gt;&lt;P&gt;Now the problem is, it is not taking the value of this varRep variable. When I hardcode RP01 or RP02 report name then it export the report in PDF perfectly but when I use this variable it doesn't take.&lt;/P&gt;&lt;P&gt;Anybody has any idea why this behaviour is or any other way to achieve it i.e. select the different report at run time.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Feb 2011 06:24:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-a-Report-at-runtime/m-p/198814#M57989</guid>
      <dc:creator />
      <dc:date>2011-02-03T06:24:13Z</dc:date>
    </item>
    <item>
      <title>Select a Report at runtime....</title>
      <link>https://community.qlik.com/t5/QlikView/Select-a-Report-at-runtime/m-p/198815#M57990</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Anand,&lt;/P&gt;&lt;P&gt;If you can add the script then it will be easy to find the error.&lt;/P&gt;&lt;P&gt;Below is the code which we normally use&lt;/P&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;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&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;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;set&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;v = ActiveDocument.Variables("test") &lt;P&gt;&lt;/P&gt;&lt;P&gt;ActiveDocument.PrintReport v.GetContent.&lt;/P&gt;&lt;P&gt;&lt;B&gt;String&lt;/B&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;I hope this helps&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Feb 2011 07:04:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-a-Report-at-runtime/m-p/198815#M57990</guid>
      <dc:creator>deepakk</dc:creator>
      <dc:date>2011-02-03T07:04:52Z</dc:date>
    </item>
  </channel>
</rss>

