<?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: Force Today()'s date in List Box in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Force-Today-s-date-in-List-Box/m-p/383606#M143169</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Go to Settings &amp;gt; Document Properties &amp;gt; Triggers and add an OnOpen action. Choose Select in Field, then put INSPDATE in the field box and =Today() in the expression. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If your field INSPDATE is not formatted as the system date is you may need to wrap Today() in Date().&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jason&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 Sep 2012 06:53:01 GMT</pubDate>
    <dc:creator>Jason_Michaelides</dc:creator>
    <dc:date>2012-09-04T06:53:01Z</dc:date>
    <item>
      <title>Force Today()'s date in List Box</title>
      <link>https://community.qlik.com/t5/QlikView/Force-Today-s-date-in-List-Box/m-p/383605#M143168</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need to be able to force the application to start up with the current date. I tried this with the formula:&lt;/P&gt;&lt;P&gt;&amp;nbsp; =&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;INSPDATE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Today&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;() &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;in the Expression of the List Box. It creates a two row box with a 0 an -1, which allows me to click on the -1 and bring up Today's date, but does NOT force the current date on a regular reload. Any ideas? I'd rather just have it bring up the application with today's date already selected in the calendar.&amp;nbsp; JPT&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Sep 2012 00:27:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Force-Today-s-date-in-List-Box/m-p/383605#M143168</guid>
      <dc:creator />
      <dc:date>2012-09-04T00:27:01Z</dc:date>
    </item>
    <item>
      <title>Re: Force Today()'s date in List Box</title>
      <link>https://community.qlik.com/t5/QlikView/Force-Today-s-date-in-List-Box/m-p/383606#M143169</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Go to Settings &amp;gt; Document Properties &amp;gt; Triggers and add an OnOpen action. Choose Select in Field, then put INSPDATE in the field box and =Today() in the expression. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If your field INSPDATE is not formatted as the system date is you may need to wrap Today() in Date().&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jason&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Sep 2012 06:53:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Force-Today-s-date-in-List-Box/m-p/383606#M143169</guid>
      <dc:creator>Jason_Michaelides</dc:creator>
      <dc:date>2012-09-04T06:53:01Z</dc:date>
    </item>
    <item>
      <title>Re: Force Today()'s date in List Box</title>
      <link>https://community.qlik.com/t5/QlikView/Force-Today-s-date-in-List-Box/m-p/383607#M143170</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jason, I very much appreciate your help with this issue. I didn’t want to reply until I had a chance to give it a try, and I gave it several, but to no avail. I tried both the OnOpen and the OnPostReload Triggers, and I focused the field on the PeriodDate of the MasterCalendar. I cleared all selections and saved it, but upon opening … nothing.  JPT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Building the master calendar with most date dimensions&lt;/P&gt;&lt;P&gt;MasterCalendar:&lt;/P&gt;&lt;P&gt;load PeriodDate ,&lt;/P&gt;&lt;P&gt;       Year(PeriodDate) &amp;amp; Month(PeriodDate) &amp;amp; NUM(Day(PeriodDate), 00) as LinkDate,&lt;/P&gt;&lt;P&gt;       week(PeriodDate+1) as Week,&lt;/P&gt;&lt;P&gt;       DateKey,&lt;/P&gt;&lt;P&gt;       Year(PeriodDate) as Year,&lt;/P&gt;&lt;P&gt;       Month(PeriodDate) as Month,&lt;/P&gt;&lt;P&gt;       Day(PeriodDate) as Day,&lt;/P&gt;&lt;P&gt;       Year2date(PeriodDate)*-1 as CurYTDFlag,&lt;/P&gt;&lt;P&gt;       Year2date(PeriodDate,-1)*-1 as LastYTDFlag,&lt;/P&gt;&lt;P&gt;         date(monthstart(PeriodDate),'MMM-YYYY') as &lt;A href="Rolling Month"&gt;&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;       //if(week(PeriodDate)&amp;gt;= $(CurWeek) -3 and week(PeriodDate) &amp;lt;= $(CurWeek) and year(PeriodDate) = 2004,1,0) as FourWeekFlag,&lt;/P&gt;&lt;P&gt;       Week(PeriodDate+1) as CalendarWeek,&lt;/P&gt;&lt;P&gt;       Week(PeriodDate+1)&amp;amp;'-'&amp;amp;Year(PeriodDate) as WeekYear,&lt;/P&gt;&lt;P&gt;       weekday(PeriodDate) as WeekDay&lt;/P&gt;&lt;P&gt;resident TempCalendar  order by PeriodDate Asc;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Sep 2012 13:37:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Force-Today-s-date-in-List-Box/m-p/383607#M143170</guid>
      <dc:creator />
      <dc:date>2012-09-06T13:37:10Z</dc:date>
    </item>
  </channel>
</rss>

