<?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: Select certain year in the list box by using variable in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Select-certain-year-in-the-list-box-by-using-variable/m-p/475319#M177496</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi TerezaGr,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not sure if this is helpful in your case but I use a document trigger to select a date range.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Settings --&amp;gt; Document Properties --&amp;gt; Triggers --&amp;gt; Document Event triggers --&amp;gt; OnOpen --&amp;gt; Add --&amp;gt; Select in Field...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Field: Date&lt;/P&gt;&lt;P&gt;Search String: ='&amp;gt;=' &amp;amp; weekstart(today(0)) &amp;amp; '&amp;lt;=' &amp;amp; weekend(today(0)+200)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Perhaps it is helpful and you can use it in your scenario.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It works in QV Desktop and Ajax (QV AccessPoint).as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards and I hope its helpful,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Jan 2014 15:40:01 GMT</pubDate>
    <dc:creator>peschu123</dc:creator>
    <dc:date>2014-01-07T15:40:01Z</dc:date>
    <item>
      <title>Select certain year in the list box by using variable</title>
      <link>https://community.qlik.com/t5/QlikView/Select-certain-year-in-the-list-box-by-using-variable/m-p/475314#M177491</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have this list box where I store data about years:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;year&lt;/P&gt;&lt;P&gt;2015/6&lt;/P&gt;&lt;P&gt;2014/5&lt;/P&gt;&lt;P&gt;2013/2&lt;/P&gt;&lt;P&gt;2012/1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like the year 2014/5 to be pre-selected for users when they open the application. I have been trying this with some variables, but unfortunately not very successfully.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have any advice how to do this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your advice in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jan 2014 12:17:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-certain-year-in-the-list-box-by-using-variable/m-p/475314#M177491</guid>
      <dc:creator>terezagr</dc:creator>
      <dc:date>2014-01-07T12:17:52Z</dc:date>
    </item>
    <item>
      <title>Re: Select certain year in the list box by using variable</title>
      <link>https://community.qlik.com/t5/QlikView/Select-certain-year-in-the-list-box-by-using-variable/m-p/475315#M177492</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;try to use a trigger at the document level (Settings --&amp;gt; Document Properties --&amp;gt; Triggers) on the OnOpen event and add a Select in Field Action on Year field (search string 2014/5)&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jan 2014 12:24:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-certain-year-in-the-list-box-by-using-variable/m-p/475315#M177492</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2014-01-07T12:24:44Z</dc:date>
    </item>
    <item>
      <title>Re: Select certain year in the list box by using variable</title>
      <link>https://community.qlik.com/t5/QlikView/Select-certain-year-in-the-list-box-by-using-variable/m-p/475316#M177493</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Tereza&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do test this early in WebView / AccessPoint Ajax mode as I fear they do not support OnOpen Triggers, even though they work perfectly in the standard Qv Desktop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;Bill&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jan 2014 12:26:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-certain-year-in-the-list-box-by-using-variable/m-p/475316#M177493</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-01-07T12:26:55Z</dc:date>
    </item>
    <item>
      <title>Re: Select certain year in the list box by using variable</title>
      <link>https://community.qlik.com/t5/QlikView/Select-certain-year-in-the-list-box-by-using-variable/m-p/475317#M177494</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Go to any sheet and right click&lt;/P&gt;&lt;P&gt;Properties&lt;/P&gt;&lt;P&gt;Triggers&lt;/P&gt;&lt;P&gt;OnActiveSheet&lt;/P&gt;&lt;P&gt;AddAction&lt;/P&gt;&lt;P&gt;Add&lt;/P&gt;&lt;P&gt;Selection&lt;/P&gt;&lt;P&gt;Select in Field&lt;/P&gt;&lt;P&gt;Field = Year&lt;/P&gt;&lt;P&gt;SearchString = &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px;"&gt;2014&lt;/SPAN&gt;/5&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jan 2014 12:29:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-certain-year-in-the-list-box-by-using-variable/m-p/475317#M177494</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-01-07T12:29:08Z</dc:date>
    </item>
    <item>
      <title>Re: Select certain year in the list box by using variable</title>
      <link>https://community.qlik.com/t5/QlikView/Select-certain-year-in-the-list-box-by-using-variable/m-p/475318#M177495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the advice guys, but it does not work for me. Also at the moment I want the year 2014/5 be pre-selected, but in some point in the future I would like 2015/16 selected etc. So with the roll-over to another year the SearchString would have to be changed, which in my opinion is not the best practice. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am thinking about having a variable set in my load script, where max(year)-365. Any thoughts on this approach?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers T.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jan 2014 14:06:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-certain-year-in-the-list-box-by-using-variable/m-p/475318#M177495</guid>
      <dc:creator>terezagr</dc:creator>
      <dc:date>2014-01-07T14:06:59Z</dc:date>
    </item>
    <item>
      <title>Re: Select certain year in the list box by using variable</title>
      <link>https://community.qlik.com/t5/QlikView/Select-certain-year-in-the-list-box-by-using-variable/m-p/475319#M177496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi TerezaGr,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not sure if this is helpful in your case but I use a document trigger to select a date range.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Settings --&amp;gt; Document Properties --&amp;gt; Triggers --&amp;gt; Document Event triggers --&amp;gt; OnOpen --&amp;gt; Add --&amp;gt; Select in Field...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Field: Date&lt;/P&gt;&lt;P&gt;Search String: ='&amp;gt;=' &amp;amp; weekstart(today(0)) &amp;amp; '&amp;lt;=' &amp;amp; weekend(today(0)+200)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Perhaps it is helpful and you can use it in your scenario.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It works in QV Desktop and Ajax (QV AccessPoint).as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards and I hope its helpful,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jan 2014 15:40:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-certain-year-in-the-list-box-by-using-variable/m-p/475319#M177496</guid>
      <dc:creator>peschu123</dc:creator>
      <dc:date>2014-01-07T15:40:01Z</dc:date>
    </item>
    <item>
      <title>Re: Select certain year in the list box by using variable</title>
      <link>https://community.qlik.com/t5/QlikView/Select-certain-year-in-the-list-box-by-using-variable/m-p/475320#M177497</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for info Bill, I tested it and in Ajax OnOpen doesn't work. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jan 2014 08:13:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-certain-year-in-the-list-box-by-using-variable/m-p/475320#M177497</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2014-01-08T08:13:12Z</dc:date>
    </item>
    <item>
      <title>Re: Select certain year in the list box by using variable</title>
      <link>https://community.qlik.com/t5/QlikView/Select-certain-year-in-the-list-box-by-using-variable/m-p/475321#M177498</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi evrybody&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to use a variable, it is not SELECT in field&amp;nbsp; but "External", "set variable"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best regards&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jan 2014 08:17:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-certain-year-in-the-list-box-by-using-variable/m-p/475321#M177498</guid>
      <dc:creator />
      <dc:date>2014-01-08T08:17:17Z</dc:date>
    </item>
    <item>
      <title>Re: Select certain year in the list box by using variable</title>
      <link>https://community.qlik.com/t5/QlikView/Select-certain-year-in-the-list-box-by-using-variable/m-p/475322#M177499</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chris,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in general you are right.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't know exactly what T. wants to do, but perhaps it is not neccessary to use a variable. Or the variable can be set during script run and than used in the search expression of the trigger event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By the way, I didn't saw that &lt;SPAN class="j-post-author" style="font-size: 0.9em; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;A href="https://community.qlik.com/people/maxgro"&gt;maxgro&lt;/A&gt; already described what I suggested.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jan 2014 08:50:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-certain-year-in-the-list-box-by-using-variable/m-p/475322#M177499</guid>
      <dc:creator>peschu123</dc:creator>
      <dc:date>2014-01-08T08:50:10Z</dc:date>
    </item>
  </channel>
</rss>

