<?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 Nprinting HTML table if statement in Qlik NPrinting</title>
    <link>https://community.qlik.com/t5/Qlik-NPrinting/Nprinting-HTML-table-if-statement/m-p/1735415#M29700</link>
    <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;I am trying to create a custom message using the if statement on an html table. Below is my code. I need to send a custom message 'no report to show' if the value [Rating]has no value. In other words if the report does not return a value I want it to show the custom message&amp;nbsp; 'no report to show' .&lt;/P&gt;&lt;P&gt;&amp;lt;tr&amp;gt;&lt;BR /&gt;&amp;lt;th style="background-color:#58ACFA;width=13%"&amp;gt;&amp;lt;P align="left"&amp;gt;Issue Number&amp;lt;/P&amp;gt;&amp;lt;/th&amp;gt;&lt;BR /&gt;&amp;lt;th style="background-color:#58ACFA;width=14%"&amp;gt;&amp;lt;P align="left"&amp;gt;Issue Summary&amp;lt;/P&amp;gt;&amp;lt;/th&amp;gt;&lt;BR /&gt;&amp;lt;th style="background-color:#58ACFA;width=7%"&amp;gt;&amp;lt;P align="center"&amp;gt;Rating&amp;lt;/P&amp;gt;&amp;lt;/th&amp;gt;&lt;BR /&gt;&amp;lt;th style="background-color:#58ACFA;width=10%"&amp;gt;&amp;lt;P align="left"&amp;gt;Issue URL&amp;lt;/P&amp;gt;&amp;lt;/th&amp;gt;&lt;BR /&gt;&amp;lt;th style="background-color:#58ACFA;width=18%"&amp;gt;&amp;lt;P align="left"&amp;gt;Assigned Team&amp;lt;/P&amp;gt;&amp;lt;/th&amp;gt;&lt;BR /&gt;&amp;lt;th style="background-color:#58ACFA;width=11%"&amp;gt;&amp;lt;P align="left"&amp;gt;Issue Assignee&amp;lt;/P&amp;gt;&amp;lt;/th&amp;gt;&lt;BR /&gt;&amp;lt;th style="background-color:#58ACFA;width=15%"&amp;gt;&amp;lt;P align="left"&amp;gt;Reporter&amp;lt;/P&amp;gt;&amp;lt;/th&amp;gt;&lt;BR /&gt;&amp;lt;th style="background-color:#58ACFA;width=16%"&amp;gt;&amp;lt;P align="left"&amp;gt;Created Date&amp;lt;/P&amp;gt;&amp;lt;/th&amp;gt;&lt;BR /&gt;&amp;lt;/tr&amp;gt;&lt;BR /&gt;&amp;lt;tr&amp;gt;&lt;BR /&gt;&amp;lt;td&amp;gt;%%=[Issue Number]%%&amp;lt;/td&amp;gt;&lt;BR /&gt;&amp;lt;td&amp;gt;%%=[Issue Summary]%%&amp;lt;/td&amp;gt;&lt;BR /&gt;&amp;lt;td&amp;gt;&amp;lt;P align="center"&amp;gt;%%=[CusSat Rating]%%&amp;lt;/P&amp;gt;&amp;lt;/td&amp;gt;&lt;BR /&gt;&amp;lt;td&amp;gt;&amp;lt;A href="%%Issue URL%%"&amp;gt;Link&amp;lt;/A&amp;gt;&amp;lt;/td&amp;gt;&lt;BR /&gt;&amp;lt;td&amp;gt;%%=Aggr(if(wildmatch([Assigned Team],'Products*'), [Assigned Team]),[Assigned Team])%%&amp;lt;/td&amp;gt;&lt;BR /&gt;&amp;lt;td&amp;gt;%%=[Issue Assignee]%%&amp;lt;/td&amp;gt;&lt;BR /&gt;&amp;lt;td&amp;gt;%%=[CusSat Reporter]%%&amp;lt;/td&amp;gt;&lt;BR /&gt;&amp;lt;td&amp;gt;%%=[CusSat Created Date]%%&amp;lt;/td&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 12 Aug 2020 22:57:08 GMT</pubDate>
    <dc:creator>Pomna</dc:creator>
    <dc:date>2020-08-12T22:57:08Z</dc:date>
    <item>
      <title>Nprinting HTML table if statement</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/Nprinting-HTML-table-if-statement/m-p/1735415#M29700</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;I am trying to create a custom message using the if statement on an html table. Below is my code. I need to send a custom message 'no report to show' if the value [Rating]has no value. In other words if the report does not return a value I want it to show the custom message&amp;nbsp; 'no report to show' .&lt;/P&gt;&lt;P&gt;&amp;lt;tr&amp;gt;&lt;BR /&gt;&amp;lt;th style="background-color:#58ACFA;width=13%"&amp;gt;&amp;lt;P align="left"&amp;gt;Issue Number&amp;lt;/P&amp;gt;&amp;lt;/th&amp;gt;&lt;BR /&gt;&amp;lt;th style="background-color:#58ACFA;width=14%"&amp;gt;&amp;lt;P align="left"&amp;gt;Issue Summary&amp;lt;/P&amp;gt;&amp;lt;/th&amp;gt;&lt;BR /&gt;&amp;lt;th style="background-color:#58ACFA;width=7%"&amp;gt;&amp;lt;P align="center"&amp;gt;Rating&amp;lt;/P&amp;gt;&amp;lt;/th&amp;gt;&lt;BR /&gt;&amp;lt;th style="background-color:#58ACFA;width=10%"&amp;gt;&amp;lt;P align="left"&amp;gt;Issue URL&amp;lt;/P&amp;gt;&amp;lt;/th&amp;gt;&lt;BR /&gt;&amp;lt;th style="background-color:#58ACFA;width=18%"&amp;gt;&amp;lt;P align="left"&amp;gt;Assigned Team&amp;lt;/P&amp;gt;&amp;lt;/th&amp;gt;&lt;BR /&gt;&amp;lt;th style="background-color:#58ACFA;width=11%"&amp;gt;&amp;lt;P align="left"&amp;gt;Issue Assignee&amp;lt;/P&amp;gt;&amp;lt;/th&amp;gt;&lt;BR /&gt;&amp;lt;th style="background-color:#58ACFA;width=15%"&amp;gt;&amp;lt;P align="left"&amp;gt;Reporter&amp;lt;/P&amp;gt;&amp;lt;/th&amp;gt;&lt;BR /&gt;&amp;lt;th style="background-color:#58ACFA;width=16%"&amp;gt;&amp;lt;P align="left"&amp;gt;Created Date&amp;lt;/P&amp;gt;&amp;lt;/th&amp;gt;&lt;BR /&gt;&amp;lt;/tr&amp;gt;&lt;BR /&gt;&amp;lt;tr&amp;gt;&lt;BR /&gt;&amp;lt;td&amp;gt;%%=[Issue Number]%%&amp;lt;/td&amp;gt;&lt;BR /&gt;&amp;lt;td&amp;gt;%%=[Issue Summary]%%&amp;lt;/td&amp;gt;&lt;BR /&gt;&amp;lt;td&amp;gt;&amp;lt;P align="center"&amp;gt;%%=[CusSat Rating]%%&amp;lt;/P&amp;gt;&amp;lt;/td&amp;gt;&lt;BR /&gt;&amp;lt;td&amp;gt;&amp;lt;A href="%%Issue URL%%"&amp;gt;Link&amp;lt;/A&amp;gt;&amp;lt;/td&amp;gt;&lt;BR /&gt;&amp;lt;td&amp;gt;%%=Aggr(if(wildmatch([Assigned Team],'Products*'), [Assigned Team]),[Assigned Team])%%&amp;lt;/td&amp;gt;&lt;BR /&gt;&amp;lt;td&amp;gt;%%=[Issue Assignee]%%&amp;lt;/td&amp;gt;&lt;BR /&gt;&amp;lt;td&amp;gt;%%=[CusSat Reporter]%%&amp;lt;/td&amp;gt;&lt;BR /&gt;&amp;lt;td&amp;gt;%%=[CusSat Created Date]%%&amp;lt;/td&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Aug 2020 22:57:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/Nprinting-HTML-table-if-statement/m-p/1735415#M29700</guid>
      <dc:creator>Pomna</dc:creator>
      <dc:date>2020-08-12T22:57:08Z</dc:date>
    </item>
    <item>
      <title>Re: Nprinting HTML table if statement</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/Nprinting-HTML-table-if-statement/m-p/1735418#M29702</link>
      <description>&lt;P&gt;The way I would handle it would be to have whole thing build into Qlik Sense table like this (simpler though as it will not have any of pivot table complexity): &lt;A href="https://nprintingadventures.com/2020/04/24/how-to-build-html-pivot-table-in-nprinting/" target="_blank"&gt;https://nprintingadventures.com/2020/04/24/how-to-build-html-pivot-table-in-nprinting/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Can you share mock up of what the result needs to look like for both scenario? you can just do this in excel for the purpose of presentation...&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Aug 2020 23:13:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/Nprinting-HTML-table-if-statement/m-p/1735418#M29702</guid>
      <dc:creator>Lech_Miszkiewicz</dc:creator>
      <dc:date>2020-08-12T23:13:58Z</dc:date>
    </item>
    <item>
      <title>Re: Nprinting HTML table if statement</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/Nprinting-HTML-table-if-statement/m-p/1735608#M29711</link>
      <description>&lt;P&gt;I just need a straight table like the one below but I want to include a custom message if there is nothing to report. Like if there is no values to show the report should say 'no report to show'&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Pomna_0-1597325978844.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/38980i37B0EC5EC9C6CF3F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Pomna_0-1597325978844.png" alt="Pomna_0-1597325978844.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Aug 2020 13:40:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/Nprinting-HTML-table-if-statement/m-p/1735608#M29711</guid>
      <dc:creator>Pomna</dc:creator>
      <dc:date>2020-08-13T13:40:07Z</dc:date>
    </item>
    <item>
      <title>Re: Nprinting HTML table if statement</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/Nprinting-HTML-table-if-statement/m-p/1736083#M29729</link>
      <description>&lt;P&gt;The thing is if there is no values to show&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;do you still want to see table headers/ table with no records and also show message&lt;/LI&gt;&lt;LI&gt;or&lt;/LI&gt;&lt;LI&gt;do you want to hide table all together and only show the message?&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;Lech&lt;/P&gt;</description>
      <pubDate>Sat, 15 Aug 2020 01:18:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/Nprinting-HTML-table-if-statement/m-p/1736083#M29729</guid>
      <dc:creator>Lech_Miszkiewicz</dc:creator>
      <dc:date>2020-08-15T01:18:18Z</dc:date>
    </item>
    <item>
      <title>Re: Nprinting HTML table if statement</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/Nprinting-HTML-table-if-statement/m-p/1736403#M29743</link>
      <description>&lt;P&gt;Preferably hide table all together and only show message but&amp;nbsp; either way is fine.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Aug 2020 14:08:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/Nprinting-HTML-table-if-statement/m-p/1736403#M29743</guid>
      <dc:creator>Pomna</dc:creator>
      <dc:date>2020-08-17T14:08:56Z</dc:date>
    </item>
    <item>
      <title>Re: Nprinting HTML table if statement</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/Nprinting-HTML-table-if-statement/m-p/1736577#M29752</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Option 1:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Create 2 HTML reports&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;first report with the table when data is present and set condition to send this report when table has values&lt;/LI&gt;&lt;LI&gt;second report with your custom message condition to run this report when there is no data available.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;STRONG&gt;Option 2:&lt;/STRONG&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Use CSS (subject to CSS support in destination client: Web browser, Mail clients etc) and try not to display&amp;nbsp; an object (see code below). In there I am using &lt;STRONG&gt;display: none&amp;nbsp;&lt;/STRONG&gt;style which is created in NPrinting when generating report depending on data availability in the table. Below code is just&amp;nbsp; example which hides table and shows text "There is no Table to show", but if I would have&amp;nbsp;&lt;STRONG&gt;display: none&amp;nbsp;&lt;/STRONG&gt;set in p1 style instead I could show table and hide custom message. Also note that i put style in between body tags as those were used in email embedded reports&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;...&amp;lt;html&amp;gt;      
    
    &amp;lt;body&amp;gt;
    &amp;lt;style&amp;gt;
      table {
           display: none;  
       }
       p1 {
              
       } 
    &amp;lt;/style&amp;gt;
    
            &amp;lt;table cellspacing=0 style="border-collapse:collapse;"&amp;gt;
            &amp;lt;tr&amp;gt;
            &amp;lt;td&amp;gt;Dim1&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;CountExp&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;SumExp&amp;lt;/td&amp;gt;
            &amp;lt;/tr&amp;gt;&amp;lt;tr&amp;gt;
            &amp;lt;td&amp;gt;A&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;649&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;27564&amp;lt;/td&amp;gt;
            &amp;lt;/tr&amp;gt;&amp;lt;tr&amp;gt;
            &amp;lt;td&amp;gt;B&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;679&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;82187&amp;lt;/td&amp;gt;
            &amp;lt;/tr&amp;gt;&amp;lt;tr&amp;gt;
            &amp;lt;td&amp;gt;147668&amp;lt;/td&amp;gt;
            &amp;lt;/tr&amp;gt;
            &amp;lt;/table&amp;gt;
           &amp;lt;p1&amp;gt;
            There is no Table to show
           &amp;lt;/p1&amp;gt;
    &amp;lt;/body&amp;gt;
...&amp;lt;/html&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Option 3:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Create our HTML code in Qlik Table just like in the pivot table example mentioned in my blog post:&lt;/P&gt;&lt;P&gt;&lt;A href="https://nprintingadventures.com/2020/04/24/how-to-build-html-pivot-table-in-nprinting/" target="_blank" rel="noopener"&gt;https://nprintingadventures.com/2020/04/24/how-to-build-html-pivot-table-in-nprinting/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;this is more complicated option but it would be the one I would use preferably.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;cheers&lt;/P&gt;&lt;P&gt;Lech&lt;/P&gt;</description>
      <pubDate>Tue, 18 Aug 2020 04:26:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/Nprinting-HTML-table-if-statement/m-p/1736577#M29752</guid>
      <dc:creator>Lech_Miszkiewicz</dc:creator>
      <dc:date>2020-08-18T04:26:00Z</dc:date>
    </item>
  </channel>
</rss>

