<?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: loop and print selection in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/loop-and-print-selection/m-p/155807#M31914</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You know some condition that disables the field by which you select the different reports?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could make an extra field in script, with only the values you want to loop. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;original_field&amp;nbsp; report_field&lt;/P&gt;&lt;P&gt;A&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; A&lt;/P&gt;&lt;P&gt;B&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; B&lt;/P&gt;&lt;P&gt;C&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 Jul 2014 12:57:59 GMT</pubDate>
    <dc:creator>sebastiandperei</dc:creator>
    <dc:date>2014-07-30T12:57:59Z</dc:date>
    <item>
      <title>loop and print selection</title>
      <link>https://community.qlik.com/t5/QlikView/loop-and-print-selection/m-p/155799#M31906</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have a pivot table which displays information about sales, variance, profit etc. Those information are based on a department selection, so for example when user selects frozen department, it will display information only about that department. There are about 10 departments overall.&lt;/P&gt;&lt;P&gt;Is it possible to create a button, which will loop through those 10 departments, and print out sheet with pivot table for each department?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Aug 2010 19:37:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/loop-and-print-selection/m-p/155799#M31906</guid>
      <dc:creator />
      <dc:date>2010-08-10T19:37:17Z</dc:date>
    </item>
    <item>
      <title>loop and print selection</title>
      <link>https://community.qlik.com/t5/QlikView/loop-and-print-selection/m-p/155800#M31907</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, you can create a report for that dimension and then create a macro that outputs the report for each values. The macro could then be triggered by a button.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Aug 2010 21:23:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/loop-and-print-selection/m-p/155800#M31907</guid>
      <dc:creator>vgutkovsky</dc:creator>
      <dc:date>2010-08-10T21:23:11Z</dc:date>
    </item>
    <item>
      <title>loop and print selection</title>
      <link>https://community.qlik.com/t5/QlikView/loop-and-print-selection/m-p/155801#M31908</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not really sure how to create macro that outputs the report for each value. Could you point out some reference where I could find more information about it? I searched to forum but didn't find much information relevant to solve my problem&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>Thu, 12 Aug 2010 15:37:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/loop-and-print-selection/m-p/155801#M31908</guid>
      <dc:creator />
      <dc:date>2010-08-12T15:37:31Z</dc:date>
    </item>
    <item>
      <title>loop and print selection</title>
      <link>https://community.qlik.com/t5/QlikView/loop-and-print-selection/m-p/155802#M31909</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See these posts, they're not exactly the same but may help point you in the right direction.&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;&lt;A href="http://community.qlik.com/media/p/90766.aspx"&gt;http://community.qlik.com/media/p/90766.aspx&lt;/A&gt;&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;&lt;A href="http://community.qlik.com/media/p/89326.aspx"&gt;http://community.qlik.com/media/p/89326.aspx&lt;/A&gt;&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;&lt;A href="http://community.qlik.com/media/p/81032.aspx"&gt;http://community.qlik.com/media/p/81032.aspx&lt;/A&gt;&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;&lt;A href="http://community.qlik.com/media/p/64479.aspx"&gt;http://community.qlik.com/media/p/64479.aspx&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Also, take a look at the API Guide; that should have a lot more information on macro syntax for automating reports.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Aug 2010 23:32:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/loop-and-print-selection/m-p/155802#M31909</guid>
      <dc:creator>vgutkovsky</dc:creator>
      <dc:date>2010-08-12T23:32:25Z</dc:date>
    </item>
    <item>
      <title>loop and print selection</title>
      <link>https://community.qlik.com/t5/QlikView/loop-and-print-selection/m-p/155803#M31910</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will definetly look through those, and post my solution next week. Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Aug 2010 15:26:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/loop-and-print-selection/m-p/155803#M31910</guid>
      <dc:creator />
      <dc:date>2010-08-13T15:26:59Z</dc:date>
    </item>
    <item>
      <title>loop and print selection</title>
      <link>https://community.qlik.com/t5/QlikView/loop-and-print-selection/m-p/155804#M31911</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Install PDFCreator&lt;/P&gt;&lt;P&gt;Add a button on your report.&lt;/P&gt;&lt;P&gt;Set the Actions to Run Macro. Set the Macro Name property to PrintObjectToPDFForEachValue&lt;/P&gt;&lt;P&gt;Click Edit Module...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Paste this in:&lt;/P&gt;&lt;P&gt;Sub PrintObjectToPDFForEachValue&lt;BR /&gt; Dim WSHShell&lt;BR /&gt; set objSheet =ActiveDocument.Sheets("&lt;B&gt;NAME OF SHEET YOU ARE PRINTING&lt;/B&gt;")&lt;BR /&gt; Set val=ActiveDocument.Fields("&lt;B&gt;NAME OF FIELD YOU ARE LOOPING THROUGH&lt;/B&gt;").GetPossibleValues(20000)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt; For i = 1 to Val.count - 1&lt;BR /&gt;&lt;BR /&gt; ActiveDocument.Fields("&lt;B&gt;NAME OF FIELD YOU ARE LOOPING THROUGH&lt;/B&gt;").Select val.item(i).Text&lt;BR /&gt;&lt;BR /&gt; Set WSHShell = CreateObject("WScript.Shell")&lt;BR /&gt; filename = val.item(i).Text &amp;amp; "_Report.pdf"&lt;BR /&gt; RegKey = "HKEY_CURRENT_USER\Software\PDFCreator\Program\"&lt;BR /&gt; WSHShell.RegWrite RegKey &amp;amp; "UseAutosave", 1, "REG_SZ"&lt;BR /&gt; WSHShell.RegWrite RegKey &amp;amp; "AutosaveFilename", filename, "REG_SZ"&lt;BR /&gt; WSHShell.RegWrite RegKey &amp;amp; "SaveFilename", filename, "REG_SZ"&lt;BR /&gt;&lt;BR /&gt; ActiveDocument.GetApplication.Sleep 5000&lt;BR /&gt; ActiveDocument.GetSheetObject( "&lt;B&gt;NAME OF OBJECT YOU ARE PRINTING&lt;/B&gt;" ).PrintEx "PDFCreator"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt; ActiveDocument.GetApplication.Sleep 5000&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt; Next&lt;BR /&gt; WSHShell.RegWrite RegKey &amp;amp; "AutosaveFilename", "", "REG_SZ"&lt;BR /&gt; WSHShell.RegWrite RegKey &amp;amp; "SaveFilename", "", "REG_SZ"&lt;BR /&gt; WSHShell.RegWrite RegKey &amp;amp; "UseAutosave", 0, "REG_SZ"&lt;BR /&gt;&lt;BR /&gt; Set WSHShell = nothing&lt;BR /&gt; msgbox "done"&lt;BR /&gt;end sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Nov 2010 12:26:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/loop-and-print-selection/m-p/155804#M31911</guid>
      <dc:creator />
      <dc:date>2010-11-02T12:26:18Z</dc:date>
    </item>
    <item>
      <title>Re: loop and print selection</title>
      <link>https://community.qlik.com/t5/QlikView/loop-and-print-selection/m-p/155805#M31912</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just for those looking at this post after 2010, for QlikView 11.2 SR5 (12235) you can make use of a Print Report Action and then use banding within the report to loop through the values within the dimension (in this question, that would be department).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As per the help file:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Banding&lt;/P&gt;&lt;P&gt;This tab contains properties for banded output of the page. This means that the page is printed repeatedly for each possible value in a specified field. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When the check box Loop Page Over Possible Values in Field is marked, the page will be printed repeatedly while selecting each possible value in the field specified in the drop-down box below. If there are no possible values in the specified field, nothing will be printed. Note that if a selection loop has been specified also on the report level (see the The Selections Tab) you may face a situation where the report selection excludes all values in the page level loop variable. The page will then be skipped for that report loop value. After completed printing, the original selections will be re-applied. If page numbers are used, these will be continuous over all pages printed. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIH&lt;/P&gt;&lt;P&gt;Charles&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jun 2014 16:04:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/loop-and-print-selection/m-p/155805#M31912</guid>
      <dc:creator />
      <dc:date>2014-06-17T16:04:24Z</dc:date>
    </item>
    <item>
      <title>Re: loop and print selection</title>
      <link>https://community.qlik.com/t5/QlikView/loop-and-print-selection/m-p/155806#M31913</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I need to suppress blank pages.&amp;nbsp; Blanks happen when one of the values I band over does not return any values and the graph is blank in QV.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I tried adding a calculation condition to the table but then get the "Calculation Condition not met" printed on the "empty" page.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;The I tried the same as the above but with no Caption, same result as above, except now without table headings.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Then I added a Conditional Show expression on the Layout tab for every item on the report, that resulted in the same number of pages, but now the ones I wanted to be suppressed were printing blank. &lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;This could be a solution if you are not using page numbers and remove the blank pages from the printed report (atleast you can reuse those pages again &lt;SPAN class="emoticon-inline emoticon_grin" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;/SPAN&gt;).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Will keep on trying and let you know if I get it figured out...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Let me know if you get to suppress the "empty" pages&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jul 2014 07:29:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/loop-and-print-selection/m-p/155806#M31913</guid>
      <dc:creator>joggiek</dc:creator>
      <dc:date>2014-07-18T07:29:43Z</dc:date>
    </item>
    <item>
      <title>Re: loop and print selection</title>
      <link>https://community.qlik.com/t5/QlikView/loop-and-print-selection/m-p/155807#M31914</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You know some condition that disables the field by which you select the different reports?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could make an extra field in script, with only the values you want to loop. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;original_field&amp;nbsp; report_field&lt;/P&gt;&lt;P&gt;A&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; A&lt;/P&gt;&lt;P&gt;B&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; B&lt;/P&gt;&lt;P&gt;C&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jul 2014 12:57:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/loop-and-print-selection/m-p/155807#M31914</guid>
      <dc:creator>sebastiandperei</dc:creator>
      <dc:date>2014-07-30T12:57:59Z</dc:date>
    </item>
    <item>
      <title>Re: loop and print selection</title>
      <link>https://community.qlik.com/t5/QlikView/loop-and-print-selection/m-p/155808#M31915</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you mean I must do a check for Nulls in the field the report loops over, and then create a report lookup temp table...?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jul 2014 13:08:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/loop-and-print-selection/m-p/155808#M31915</guid>
      <dc:creator>joggiek</dc:creator>
      <dc:date>2014-07-30T13:08:59Z</dc:date>
    </item>
    <item>
      <title>Re: loop and print selection</title>
      <link>https://community.qlik.com/t5/QlikView/loop-and-print-selection/m-p/155809#M31916</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, in first place, try to identify why these report is blank. You said: "... &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Blanks happen when one of the values I band over does not return any values and the graph is blank in QV&lt;/SPAN&gt;..." &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is always like that? e.g.: The field that i loop is "Product", and if you know that the product "Beer" doesn't have any data, you should create another dimention like "Product_report", linked with "Product", but without the row "Beer"...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you send a reduced sample?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jul 2014 14:33:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/loop-and-print-selection/m-p/155809#M31916</guid>
      <dc:creator>sebastiandperei</dc:creator>
      <dc:date>2014-07-30T14:33:59Z</dc:date>
    </item>
    <item>
      <title>Re: loop and print selection</title>
      <link>https://community.qlik.com/t5/QlikView/loop-and-print-selection/m-p/155810#M31917</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Aug 2014 15:16:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/loop-and-print-selection/m-p/155810#M31917</guid>
      <dc:creator>sebastiandperei</dc:creator>
      <dc:date>2014-08-12T15:16:15Z</dc:date>
    </item>
  </channel>
</rss>

