<?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: How do I hide a button that selects a bookmark if that selection would return 0 results? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-do-I-hide-a-button-that-selects-a-bookmark-if-that-selection/m-p/454749#M487516</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should be able to use set analysis to check the number of records, something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=count( {BOOKMARKNAME} FIELDTOCOUNT)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where FIELDTOCOUNT is the field name that you need to count to get your number of records.&lt;/P&gt;&lt;P&gt;BOOKMARKNAME is the name of your bookmark.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you can use this expression as is in a conditional show expression for the button (on layout tab of the button properties).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 Jan 2013 17:37:03 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2013-01-24T17:37:03Z</dc:date>
    <item>
      <title>How do I hide a button that selects a bookmark if that selection would return 0 results?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-I-hide-a-button-that-selects-a-bookmark-if-that-selection/m-p/454748#M487515</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have three buttons, each of which activates a bookmark. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Each bookmark is for monitoring purposes - they highlight certain records that require investigation by a user.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eg&lt;/P&gt;&lt;P&gt;Expires Today&lt;/P&gt;&lt;P&gt;Overdue Tasks&lt;/P&gt;&lt;P&gt;New Complaints&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sometimes though, there will be no records for the user to check, so I don't want the relevant button to be visible. If there are no matching results I don't want to waste the user's time clicking on buttons that give them nothing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How would I hide the button? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EDIT: If this is not possible, as an alternative, how would I return the number of matching rows?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eg &lt;/P&gt;&lt;P&gt;Expires Today (12)&lt;/P&gt;&lt;P&gt;Overdue Tasks (14)&lt;/P&gt;&lt;P&gt;New Complaints (0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Andi Mohr&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jan 2013 17:14:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-I-hide-a-button-that-selects-a-bookmark-if-that-selection/m-p/454748#M487515</guid>
      <dc:creator />
      <dc:date>2013-01-24T17:14:00Z</dc:date>
    </item>
    <item>
      <title>Re: How do I hide a button that selects a bookmark if that selection would return 0 results?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-I-hide-a-button-that-selects-a-bookmark-if-that-selection/m-p/454749#M487516</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should be able to use set analysis to check the number of records, something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=count( {BOOKMARKNAME} FIELDTOCOUNT)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where FIELDTOCOUNT is the field name that you need to count to get your number of records.&lt;/P&gt;&lt;P&gt;BOOKMARKNAME is the name of your bookmark.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you can use this expression as is in a conditional show expression for the button (on layout tab of the button properties).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jan 2013 17:37:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-I-hide-a-button-that-selects-a-bookmark-if-that-selection/m-p/454749#M487516</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-01-24T17:37:03Z</dc:date>
    </item>
    <item>
      <title>Re: How do I hide a button that selects a bookmark if that selection would return 0 results?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-I-hide-a-button-that-selects-a-bookmark-if-that-selection/m-p/454750#M487517</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Stefan, this is perfect! This allows me to do both, I can hide the button, and display the number of results. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jan 2013 17:47:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-I-hide-a-button-that-selects-a-bookmark-if-that-selection/m-p/454750#M487517</guid>
      <dc:creator />
      <dc:date>2013-01-24T17:47:32Z</dc:date>
    </item>
  </channel>
</rss>

