<?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 Can datepicker on calendar object choose closest valid date? in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Can-datepicker-on-calendar-object-choose-closest-valid-date/m-p/1835968#M69887</link>
    <description>&lt;DIV class="_3xX726aBn29LDbsDtzr_6E _1Ap4F5maDtT1E1YuCiaO0r D3IL3FD0RFy_mkKLPwL4"&gt;&lt;DIV class="_292iotee39Lmt0MkQZ2hPV RichTextJSON-root"&gt;&lt;P class="_1qeIAgB0cPwnLhDF9XSiJM"&gt;Hi, using the calendar object for the first time and it seems to be working well with the exception of the date picker. If I select a date on the date picker that doesn't have any orders, there is no selection. Is there a way I can modify this behaviour so that the closest valid date is selected?&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Tue, 14 Sep 2021 11:13:57 GMT</pubDate>
    <dc:creator>WojinRina</dc:creator>
    <dc:date>2021-09-14T11:13:57Z</dc:date>
    <item>
      <title>Can datepicker on calendar object choose closest valid date?</title>
      <link>https://community.qlik.com/t5/App-Development/Can-datepicker-on-calendar-object-choose-closest-valid-date/m-p/1835968#M69887</link>
      <description>&lt;DIV class="_3xX726aBn29LDbsDtzr_6E _1Ap4F5maDtT1E1YuCiaO0r D3IL3FD0RFy_mkKLPwL4"&gt;&lt;DIV class="_292iotee39Lmt0MkQZ2hPV RichTextJSON-root"&gt;&lt;P class="_1qeIAgB0cPwnLhDF9XSiJM"&gt;Hi, using the calendar object for the first time and it seems to be working well with the exception of the date picker. If I select a date on the date picker that doesn't have any orders, there is no selection. Is there a way I can modify this behaviour so that the closest valid date is selected?&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 14 Sep 2021 11:13:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Can-datepicker-on-calendar-object-choose-closest-valid-date/m-p/1835968#M69887</guid>
      <dc:creator>WojinRina</dc:creator>
      <dc:date>2021-09-14T11:13:57Z</dc:date>
    </item>
    <item>
      <title>Re: Can datepicker on calendar object choose closest valid date?</title>
      <link>https://community.qlik.com/t5/App-Development/Can-datepicker-on-calendar-object-choose-closest-valid-date/m-p/1844950#M69912</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;If my understanding is correct, you have a dataset with orders and order dates. You are trying to use&lt;SPAN style="color:#2980b9"&gt;&lt;STRONG&gt; Date picker&lt;/STRONG&gt;&lt;/SPAN&gt; object and you have noticed that you can't select date where there are no any orders. To be more specific you have the following use case scenario:&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;You have a dataset such as:&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;&lt;IMG src="https://lithium-response-prod.s3.us-west-2.amazonaws.com/qlik.response.lithium.com/RESPONSEIMAGE/27f1d5d5-744f-4912-93a4-4e6d5721688f.default.PNG" /&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;You have loaded the data into Qlik Sense:&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;&lt;IMG src="https://lithium-response-prod.s3.us-west-2.amazonaws.com/qlik.response.lithium.com/RESPONSEIMAGE/daa58b4d-707f-4a89-aaba-5620b38d5142.default.PNG" /&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;You are trying to select dates with &lt;SPAN style="color:#2980b9"&gt;Date picker&lt;/SPAN&gt; object, but only the dates with orders are selectable:&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;&lt;IMG src="https://lithium-response-prod.s3.us-west-2.amazonaws.com/qlik.response.lithium.com/RESPONSEIMAGE/ce0771d3-404f-4ac8-b6a6-39861a59ff77.default.PNG" /&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;However, you would like to select the date e.g.&lt;SPAN style="color:#f39c12"&gt;&lt;STRONG&gt; 23rd of September&lt;/STRONG&gt;&lt;/SPAN&gt; (which doesn't have an order) and the date&lt;SPAN style="color:#8e44ad"&gt;&lt;STRONG&gt; 22nd of September&lt;/STRONG&gt;&lt;/SPAN&gt; (Which is the closest one) will be selected. If I have misunderstood the use case scenario, please elaborate in detail by providing further information.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;In this case Qlik Sense is working as designed and since your dataset doesn't have data for the other dates, you can't select those dates. If you want to make the other dates selectable, then you will have to create another table as &lt;STRONG&gt;master calendar&lt;/STRONG&gt;, which will hold all possible dates within a range. Then you can use that field for &lt;SPAN style="color:#2980b9"&gt;&lt;STRONG&gt;Date picker&lt;/STRONG&gt;&lt;/SPAN&gt; and you will be able to choose other dates as well. If your orders fall within the selected range then they will be displayed on the visualizations, otherwise if you select date range where no orders were placed, the visualizations will not show any data.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;I hope that this information was helpful.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Oct 2021 14:22:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Can-datepicker-on-calendar-object-choose-closest-valid-date/m-p/1844950#M69912</guid>
      <dc:creator>Andrei_Cusnir</dc:creator>
      <dc:date>2021-10-11T14:22:39Z</dc:date>
    </item>
  </channel>
</rss>

