<?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 Default Selection in List Box of Week in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Default-Selection-in-List-Box-of-Week/m-p/259117#M496675</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 have made a OnActiveSheet Avent Trigger, Select in Field action, for a Date field. It is working fine with the following Search String &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;='&amp;gt;=$(=Date(today()-30))&amp;lt;=$(=Date(today()+30))'&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my Date List Box current day +- 30 days are selected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when I am trying to do the same with a Week field I cannot get it working. Week field is made by WeekName() function in a script.&lt;/P&gt;&lt;P&gt;I have tryed the following Search String:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;='&amp;gt;=$(=WeekName(today()-30))&amp;lt;=$(=WeekName(today()+30))'&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas how should I do that?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 09 Jan 2012 06:39:12 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-01-09T06:39:12Z</dc:date>
    <item>
      <title>Default Selection in List Box of Week</title>
      <link>https://community.qlik.com/t5/QlikView/Default-Selection-in-List-Box-of-Week/m-p/259117#M496675</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 have made a OnActiveSheet Avent Trigger, Select in Field action, for a Date field. It is working fine with the following Search String &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;='&amp;gt;=$(=Date(today()-30))&amp;lt;=$(=Date(today()+30))'&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my Date List Box current day +- 30 days are selected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when I am trying to do the same with a Week field I cannot get it working. Week field is made by WeekName() function in a script.&lt;/P&gt;&lt;P&gt;I have tryed the following Search String:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;='&amp;gt;=$(=WeekName(today()-30))&amp;lt;=$(=WeekName(today()+30))'&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas how should I do that?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jan 2012 06:39:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Default-Selection-in-List-Box-of-Week/m-p/259117#M496675</guid>
      <dc:creator />
      <dc:date>2012-01-09T06:39:12Z</dc:date>
    </item>
    <item>
      <title>Default Selection in List Box of Week</title>
      <link>https://community.qlik.com/t5/QlikView/Default-Selection-in-List-Box-of-Week/m-p/259118#M496676</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;='=WEEKFIELD&amp;gt;= '&amp;amp; chr(39) &amp;amp; '$(=Weekname(today()-30))' &amp;amp; chr(39) &amp;amp; ' and WEEKFIELD &amp;lt;=' &amp;amp; chr(39) &amp;amp; '$(=Weekname(today()+30))' &amp;amp;chr(39)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Replace WEEKFIELD by your week field name.&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>Mon, 09 Jan 2012 10:14:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Default-Selection-in-List-Box-of-Week/m-p/259118#M496676</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-01-09T10:14:33Z</dc:date>
    </item>
    <item>
      <title>Default Selection in List Box of Week</title>
      <link>https://community.qlik.com/t5/QlikView/Default-Selection-in-List-Box-of-Week/m-p/259119#M496677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; This is working fine!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot for your help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jan 2012 10:48:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Default-Selection-in-List-Box-of-Week/m-p/259119#M496677</guid>
      <dc:creator />
      <dc:date>2012-01-09T10:48:22Z</dc:date>
    </item>
  </channel>
</rss>

