<?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 Manage PDF Distribution task on Server in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Manage-PDF-Distribution-task-on-Server/m-p/510727#M190809</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="text-align: left; text-indent: 0px; color: #575757;"&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="text-align: left; text-indent: 0px; color: #575757;"&gt;I have a pdf distribution task that needs to be triggered on successful load of the application. &lt;SPAN style="font-size: 10pt;"&gt;However, the pdf distribution task should not get triggered if there's no data for the previous day. The previous day is stored in a Field "Data as of".&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: left; text-indent: 0px; color: #575757;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: left; text-indent: 0px; color: #575757;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;So the PDF needs to be triggerd if&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: left; text-indent: 0px; color: #575757;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: left; text-indent: 0px; color: #575757;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;1. The application is successfully reloaded&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: left; text-indent: 0px; color: #575757;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;2. The value of the field "Data as of" is&lt;SPAN class="Apple-converted-space"&gt; &lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;Today()-1&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="text-align: left; text-indent: 0px; color: #575757;"&gt;I don't find any option in the management console to control the trigger with a combination of these conditions. Any idea how and if this can be achieved?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="text-align: left; text-indent: 0px; color: #575757;"&gt;I am OK even with another workaround.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="text-align: left; text-indent: 0px; color: #575757;"&gt;1. I set the pdf to get triggered on successful reload of the application&lt;/P&gt;&lt;P style="text-align: left; text-indent: 0px; color: #575757;"&gt;2. I force the application to fail to load if value of the field "Data as of" &amp;lt;&amp;gt; &lt;EM&gt;&lt;STRONG&gt;Today()-1&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="text-align: left; text-indent: 0px; color: #575757;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; This way the pdf won't get distributed as the application would have failed to load.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="text-align: left; text-indent: 0px; color: #575757;"&gt;However, I am not sure how to make the application to fail the reload on a given condition. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="text-align: left; text-indent: 0px; color: #575757;"&gt;Please let me know if you have any other suggestions that would help me from sending out obsolete reports to the users if there's no data for previous day.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="text-align: left; text-indent: 0px; color: #575757;"&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="text-align: left; text-indent: 0px; color: #575757;"&gt;Bhaskar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 29 Nov 2013 15:33:26 GMT</pubDate>
    <dc:creator>bhaskarsharma03</dc:creator>
    <dc:date>2013-11-29T15:33:26Z</dc:date>
    <item>
      <title>Manage PDF Distribution task on Server</title>
      <link>https://community.qlik.com/t5/QlikView/Manage-PDF-Distribution-task-on-Server/m-p/510727#M190809</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="text-align: left; text-indent: 0px; color: #575757;"&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="text-align: left; text-indent: 0px; color: #575757;"&gt;I have a pdf distribution task that needs to be triggered on successful load of the application. &lt;SPAN style="font-size: 10pt;"&gt;However, the pdf distribution task should not get triggered if there's no data for the previous day. The previous day is stored in a Field "Data as of".&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: left; text-indent: 0px; color: #575757;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: left; text-indent: 0px; color: #575757;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;So the PDF needs to be triggerd if&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: left; text-indent: 0px; color: #575757;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: left; text-indent: 0px; color: #575757;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;1. The application is successfully reloaded&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: left; text-indent: 0px; color: #575757;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;2. The value of the field "Data as of" is&lt;SPAN class="Apple-converted-space"&gt; &lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;Today()-1&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="text-align: left; text-indent: 0px; color: #575757;"&gt;I don't find any option in the management console to control the trigger with a combination of these conditions. Any idea how and if this can be achieved?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="text-align: left; text-indent: 0px; color: #575757;"&gt;I am OK even with another workaround.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="text-align: left; text-indent: 0px; color: #575757;"&gt;1. I set the pdf to get triggered on successful reload of the application&lt;/P&gt;&lt;P style="text-align: left; text-indent: 0px; color: #575757;"&gt;2. I force the application to fail to load if value of the field "Data as of" &amp;lt;&amp;gt; &lt;EM&gt;&lt;STRONG&gt;Today()-1&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="text-align: left; text-indent: 0px; color: #575757;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; This way the pdf won't get distributed as the application would have failed to load.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="text-align: left; text-indent: 0px; color: #575757;"&gt;However, I am not sure how to make the application to fail the reload on a given condition. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="text-align: left; text-indent: 0px; color: #575757;"&gt;Please let me know if you have any other suggestions that would help me from sending out obsolete reports to the users if there's no data for previous day.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="text-align: left; text-indent: 0px; color: #575757;"&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="text-align: left; text-indent: 0px; color: #575757;"&gt;Bhaskar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Nov 2013 15:33:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Manage-PDF-Distribution-task-on-Server/m-p/510727#M190809</guid>
      <dc:creator>bhaskarsharma03</dc:creator>
      <dc:date>2013-11-29T15:33:26Z</dc:date>
    </item>
    <item>
      <title>Re: Manage PDF Distribution task on Server</title>
      <link>https://community.qlik.com/t5/QlikView/Manage-PDF-Distribution-task-on-Server/m-p/510728#M190810</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't know about the reports, but I can tell you how you can fail the reload of your application.&amp;nbsp; Check out the following load script (example.qvw is also attached):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let vDataAsOf = PEEK('Data as of'); //This gets the value in your [Data as of] field&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set ErrorMode = 1; //This makes sure the reload will fail&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF vDataAsOf &amp;lt;&amp;gt; today()-1 then //If the [Data as of] date is not equal to yesterday, drop a table that doesn't exist, so the reload will fail&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; drop table faketable;&lt;/P&gt;&lt;P&gt;endif&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Dec 2013 16:06:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Manage-PDF-Distribution-task-on-Server/m-p/510728#M190810</guid>
      <dc:creator>Nicole-Smith</dc:creator>
      <dc:date>2013-12-02T16:06:40Z</dc:date>
    </item>
  </channel>
</rss>

