<?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 Input Box with Constraints from data column in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Input-Box-with-Constraints-from-data-column/m-p/481177#M480804</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi I'd like to add on an input box constraints from my data values (InsertDate column) is that possible?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using constraints for empty and dates less or equal to today with:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;len(date(date#($))) &amp;gt; 0 AND date#($) &amp;lt;= Today()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thats my data example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Customer, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Category, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; date(InsertDate) as InsertDate &lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;$(vPath)xsData.qvd&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 Nov 2013 13:08:19 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-11-05T13:08:19Z</dc:date>
    <item>
      <title>Input Box with Constraints from data column</title>
      <link>https://community.qlik.com/t5/QlikView/Input-Box-with-Constraints-from-data-column/m-p/481177#M480804</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi I'd like to add on an input box constraints from my data values (InsertDate column) is that possible?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using constraints for empty and dates less or equal to today with:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;len(date(date#($))) &amp;gt; 0 AND date#($) &amp;lt;= Today()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thats my data example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Customer, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Category, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; date(InsertDate) as InsertDate &lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;$(vPath)xsData.qvd&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Nov 2013 13:08:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Input-Box-with-Constraints-from-data-column/m-p/481177#M480804</guid>
      <dc:creator />
      <dc:date>2013-11-05T13:08:19Z</dc:date>
    </item>
    <item>
      <title>Re: Input Box with Constraints from data column</title>
      <link>https://community.qlik.com/t5/QlikView/Input-Box-with-Constraints-from-data-column/m-p/481178#M480805</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What are you exactly trying to do with the input box?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would suggest to load an island date field that has all the valid values you need.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Nov 2013 23:06:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Input-Box-with-Constraints-from-data-column/m-p/481178#M480805</guid>
      <dc:creator>Carlos_Reyes</dc:creator>
      <dc:date>2013-11-06T23:06:44Z</dc:date>
    </item>
    <item>
      <title>Re: Input Box with Constraints from data column</title>
      <link>https://community.qlik.com/t5/QlikView/Input-Box-with-Constraints-from-data-column/m-p/481179#M480806</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The input box is used for a date filter. It is date format. I'd like to restrict inputs to dates that exists in my data table (InsertDate field). Is this possible through constraints?&lt;/P&gt;&lt;P&gt;Something like:&lt;/P&gt;&lt;P&gt;$(=Count({$&amp;lt;InsertDate = {"&amp;gt;= ...... &amp;lt;=......."}&amp;gt;} InsertDate)) &amp;gt; 0&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Nov 2013 09:12:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Input-Box-with-Constraints-from-data-column/m-p/481179#M480806</guid>
      <dc:creator />
      <dc:date>2013-11-07T09:12:01Z</dc:date>
    </item>
    <item>
      <title>Re: Input Box with Constraints from data column</title>
      <link>https://community.qlik.com/t5/QlikView/Input-Box-with-Constraints-from-data-column/m-p/481180#M480807</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Use Min and Max Functions like below, make correction in the syntax.&lt;/P&gt;&lt;P&gt;and make sure your entered date format should be same format as you have in date fiels.&lt;/P&gt;&lt;P&gt;or use variables for min and max date, and the use those variable in conditions...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;$(=Count({$&amp;lt;InsertDate = {"&amp;gt;= $(=Min(InsertDate) , &amp;lt;=&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt; $(=Max(InsertDate)&lt;/SPAN&gt;"}&amp;gt;})&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Nov 2013 09:23:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Input-Box-with-Constraints-from-data-column/m-p/481180#M480807</guid>
      <dc:creator>israrkhan</dc:creator>
      <dc:date>2013-11-07T09:23:34Z</dc:date>
    </item>
    <item>
      <title>Re: Input Box with Constraints from data column</title>
      <link>https://community.qlik.com/t5/QlikView/Input-Box-with-Constraints-from-data-column/m-p/481181#M480808</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try using Concat() function like:&lt;/P&gt;&lt;P&gt;Predefined Values-&amp;gt;Listed Values&lt;/P&gt;&lt;P&gt;Expression:&lt;/P&gt;&lt;P&gt;=Concat({$&amp;lt;InsertDate = {"&amp;gt;= ...... &amp;lt;=......."}&amp;gt;} InsertDate, '&lt;STRONG&gt; ;&lt;/STRONG&gt; ')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Nov 2013 09:29:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Input-Box-with-Constraints-from-data-column/m-p/481181#M480808</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2013-11-07T09:29:10Z</dc:date>
    </item>
    <item>
      <title>Re: Input Box with Constraints from data column</title>
      <link>https://community.qlik.com/t5/QlikView/Input-Box-with-Constraints-from-data-column/m-p/481182#M480809</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've got a possible solution for you. To constrain a varaible against a predefined list means defining some values like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'a'; 'b'; 'c'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So what I've done is load a quoted version of the InsertDate (referred to as DropDownDate in the script) which can be used to build such a string. Another option though (unless you really need to store the date in a variable) is to use a calandar object. See the attached qvw&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Nov 2013 09:53:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Input-Box-with-Constraints-from-data-column/m-p/481182#M480809</guid>
      <dc:creator>a_mullick</dc:creator>
      <dc:date>2013-11-07T09:53:32Z</dc:date>
    </item>
    <item>
      <title>Re: Input Box with Constraints from data column</title>
      <link>https://community.qlik.com/t5/QlikView/Input-Box-with-Constraints-from-data-column/m-p/481183#M480810</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm asking about the current inserted (by user) date on a custom "input constraint". I want to accept only dates that exists on data.&lt;/P&gt;&lt;P&gt;an example that works with variable is: $(=Count({$&amp;lt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;InsertDate&lt;/SPAN&gt;= {"&amp;lt;=$(vDateIns)&amp;gt;=$(vDateIns)"}&amp;gt;} &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;InsertDate&lt;/SPAN&gt;))&lt;/P&gt;&lt;P&gt;i want to instead of a variable to check the inserted by user date and if it has count number &amp;gt;0 to accept the date, else i display the error message like one other constraint i have: date#($) &amp;lt;= Today()&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Nov 2013 11:25:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Input-Box-with-Constraints-from-data-column/m-p/481183#M480810</guid>
      <dc:creator />
      <dc:date>2013-11-07T11:25:02Z</dc:date>
    </item>
  </channel>
</rss>

