<?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: Actual year and month selected by default on a view of Qlikview in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Actual-year-and-month-selected-by-default-on-a-view-of-Qlikview/m-p/264304#M581357</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I did the example with your month = ﻿MonthNames (describe in the script beginning)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1Open the script&lt;/P&gt;&lt;P&gt;2 add that in the script (anywhere): &lt;/P&gt;&lt;P&gt;﻿﻿﻿let varYear =year(today());&lt;/P&gt;&lt;P&gt;let varMonth= Month(today());&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3Save and close your script.&lt;/P&gt;&lt;P&gt;4Go in Settings -&amp;gt; Document properties -&amp;gt; Triggers.&lt;/P&gt;&lt;P&gt;5 click "On Open" in&amp;nbsp; Document Event Triggers&lt;/P&gt;&lt;P&gt;6 click "Add action(s)"&lt;/P&gt;&lt;P&gt;7&amp;nbsp; click "Selection" in Action Type and "Select in field" in action&lt;/P&gt;&lt;P&gt;8 Click "ok"&lt;/P&gt;&lt;P&gt;9 Type your year field name in Field and "=varYear" in Search String&lt;/P&gt;&lt;P&gt;﻿﻿﻿﻿10 click "Add action(s)"&lt;/P&gt;&lt;P&gt;11click "selection" in action type and "select in field" in action&lt;/P&gt;&lt;P&gt;12 click "ok"&lt;/P&gt;&lt;P&gt;13 Type your year field name in field and "=varMonth" in Search string&lt;/P&gt;&lt;P&gt;14 click "ok" and "ok", &lt;/P&gt;&lt;P&gt;15 save and close the application&lt;/P&gt;&lt;P&gt;16 open it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it working/ For yhe year? the month?&lt;/P&gt;&lt;P&gt;﻿﻿&lt;/P&gt;&lt;P&gt;If it's not working for the month, could you give me the format month?﻿﻿&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 Jan 2012 21:17:21 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-01-10T21:17:21Z</dc:date>
    <item>
      <title>Actual year and month selected by default on a view of Qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Actual-year-and-month-selected-by-default-on-a-view-of-Qlikview/m-p/264296#M581349</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, My name is Natacha De la Rosa, I'm from Dominican Republic and i'm beggining to develop with qlikview.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So this is my question, I have a view that is displayed by year and month, and I want to put by default selected the actual year and month. Is that posible? and if the answer is yes. How can begin with that?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jan 2012 20:16:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Actual-year-and-month-selected-by-default-on-a-view-of-Qlikview/m-p/264296#M581349</guid>
      <dc:creator />
      <dc:date>2012-01-10T20:16:00Z</dc:date>
    </item>
    <item>
      <title>Actual year and month selected by default on a view of Qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Actual-year-and-month-selected-by-default-on-a-view-of-Qlikview/m-p/264297#M581350</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; You can set 2 Variables for the current Year and Month in the Load Script, and then create Actions to select those values in the corresponding Fields upon opening the document:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Open "Settings" - "Document Properties" - Triggers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Find the event "OnOpen" and enter the Actions editor. In the actions, pick "Select in field" and fill out the Field name and the Value (coming from the Variable).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This might be a bit too much for a beginner...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jan 2012 20:19:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Actual-year-and-month-selected-by-default-on-a-view-of-Qlikview/m-p/264297#M581350</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2012-01-10T20:19:22Z</dc:date>
    </item>
    <item>
      <title>Actual year and month selected by default on a view of Qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Actual-year-and-month-selected-by-default-on-a-view-of-Qlikview/m-p/264298#M581351</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Nice to meet you.&lt;/P&gt;&lt;P&gt;Yes it's possible. If you want a static solution it's really simple. You just need to select the month and the year. Save and close your application. When you open it again, the selectin stay. Qlikview open the application with the selection saved.&lt;/P&gt;&lt;P&gt;Do you need a dynamic solution??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jan 2012 20:20:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Actual-year-and-month-selected-by-default-on-a-view-of-Qlikview/m-p/264298#M581351</guid>
      <dc:creator />
      <dc:date>2012-01-10T20:20:30Z</dc:date>
    </item>
    <item>
      <title>Re: Actual year and month selected by default on a view of Qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Actual-year-and-month-selected-by-default-on-a-view-of-Qlikview/m-p/264299#M581352</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oleg Troyansky, thanks for answer, could you explain me a little more simple, like I write before, i'm beggining so could you help me at this point please.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EvaPOLINI, thanks for answer, I need a dynamic solution for this, What you recommend me?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jan 2012 20:23:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Actual-year-and-month-selected-by-default-on-a-view-of-Qlikview/m-p/264299#M581352</guid>
      <dc:creator />
      <dc:date>2012-01-10T20:23:17Z</dc:date>
    </item>
    <item>
      <title>Actual year and month selected by default on a view of Qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Actual-year-and-month-selected-by-default-on-a-view-of-Qlikview/m-p/264300#M581353</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Who?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jan 2012 20:26:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Actual-year-and-month-selected-by-default-on-a-view-of-Qlikview/m-p/264300#M581353</guid>
      <dc:creator />
      <dc:date>2012-01-10T20:26:52Z</dc:date>
    </item>
    <item>
      <title>Re: Actual year and month selected by default on a view of Qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Actual-year-and-month-selected-by-default-on-a-view-of-Qlikview/m-p/264301#M581354</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;who could guide me with this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jan 2012 20:30:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Actual-year-and-month-selected-by-default-on-a-view-of-Qlikview/m-p/264301#M581354</guid>
      <dc:creator />
      <dc:date>2012-01-10T20:30:45Z</dc:date>
    </item>
    <item>
      <title>Actual year and month selected by default on a view of Qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Actual-year-and-month-selected-by-default-on-a-view-of-Qlikview/m-p/264302#M581355</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can I do this with javascript and if the answer is yes, how can I do it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jan 2012 20:58:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Actual-year-and-month-selected-by-default-on-a-view-of-Qlikview/m-p/264302#M581355</guid>
      <dc:creator />
      <dc:date>2012-01-10T20:58:18Z</dc:date>
    </item>
    <item>
      <title>Actual year and month selected by default on a view of Qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Actual-year-and-month-selected-by-default-on-a-view-of-Qlikview/m-p/264303#M581356</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Natacha, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you might require a bit more detailed support than this forum is built for... We usually show you the right direction...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What part of the solution do you need help with?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Setting the variables in the script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let vCurrentYear = year(today());&lt;/P&gt;&lt;P&gt;let vCurrentMonth = Month(today());&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I described the rest in my previous post&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Oleg &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jan 2012 21:02:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Actual-year-and-month-selected-by-default-on-a-view-of-Qlikview/m-p/264303#M581356</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2012-01-10T21:02:03Z</dc:date>
    </item>
    <item>
      <title>Re: Actual year and month selected by default on a view of Qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Actual-year-and-month-selected-by-default-on-a-view-of-Qlikview/m-p/264304#M581357</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I did the example with your month = ﻿MonthNames (describe in the script beginning)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1Open the script&lt;/P&gt;&lt;P&gt;2 add that in the script (anywhere): &lt;/P&gt;&lt;P&gt;﻿﻿﻿let varYear =year(today());&lt;/P&gt;&lt;P&gt;let varMonth= Month(today());&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3Save and close your script.&lt;/P&gt;&lt;P&gt;4Go in Settings -&amp;gt; Document properties -&amp;gt; Triggers.&lt;/P&gt;&lt;P&gt;5 click "On Open" in&amp;nbsp; Document Event Triggers&lt;/P&gt;&lt;P&gt;6 click "Add action(s)"&lt;/P&gt;&lt;P&gt;7&amp;nbsp; click "Selection" in Action Type and "Select in field" in action&lt;/P&gt;&lt;P&gt;8 Click "ok"&lt;/P&gt;&lt;P&gt;9 Type your year field name in Field and "=varYear" in Search String&lt;/P&gt;&lt;P&gt;﻿﻿﻿﻿10 click "Add action(s)"&lt;/P&gt;&lt;P&gt;11click "selection" in action type and "select in field" in action&lt;/P&gt;&lt;P&gt;12 click "ok"&lt;/P&gt;&lt;P&gt;13 Type your year field name in field and "=varMonth" in Search string&lt;/P&gt;&lt;P&gt;14 click "ok" and "ok", &lt;/P&gt;&lt;P&gt;15 save and close the application&lt;/P&gt;&lt;P&gt;16 open it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it working/ For yhe year? the month?&lt;/P&gt;&lt;P&gt;﻿﻿&lt;/P&gt;&lt;P&gt;If it's not working for the month, could you give me the format month?﻿﻿&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jan 2012 21:17:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Actual-year-and-month-selected-by-default-on-a-view-of-Qlikview/m-p/264304#M581357</guid>
      <dc:creator />
      <dc:date>2012-01-10T21:17:21Z</dc:date>
    </item>
    <item>
      <title>Re: Actual year and month selected by default on a view of Qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Actual-year-and-month-selected-by-default-on-a-view-of-Qlikview/m-p/264305#M581358</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, I tried the example that you give me,works with the year but the month doesn't work, the month format is numeric.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jan 2012 13:31:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Actual-year-and-month-selected-by-default-on-a-view-of-Qlikview/m-p/264305#M581358</guid>
      <dc:creator />
      <dc:date>2012-01-12T13:31:51Z</dc:date>
    </item>
    <item>
      <title>Re: Actual year and month selected by default on a view of Qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Actual-year-and-month-selected-by-default-on-a-view-of-Qlikview/m-p/264306#M581359</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Like I said in the last sentence of my previous message. It's probably because yours formats don't match. wou will need to adapt varMonth to your month format. could you tell us if you use the long name, the short name, the number month??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jan 2012 14:02:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Actual-year-and-month-selected-by-default-on-a-view-of-Qlikview/m-p/264306#M581359</guid>
      <dc:creator />
      <dc:date>2012-01-12T14:02:07Z</dc:date>
    </item>
    <item>
      <title>Re: Actual year and month selected by default on a view of Qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Actual-year-and-month-selected-by-default-on-a-view-of-Qlikview/m-p/264307#M581360</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I use the number month, how could I adapt the format to the variable.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jan 2012 14:05:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Actual-year-and-month-selected-by-default-on-a-view-of-Qlikview/m-p/264307#M581360</guid>
      <dc:creator />
      <dc:date>2012-01-12T14:05:46Z</dc:date>
    </item>
    <item>
      <title>Actual year and month selected by default on a view of Qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Actual-year-and-month-selected-by-default-on-a-view-of-Qlikview/m-p/264308#M581361</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; there are a lot of date functions, you will find it in the reference manual. for exemple you can take your month number, make a date with that and apply Month().&lt;/P&gt;&lt;P&gt;It's depend of your variable MonthNames.&lt;/P&gt;&lt;P&gt;You have to lookng for in the manual to find witch one is adapt to your case.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jan 2012 14:18:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Actual-year-and-month-selected-by-default-on-a-view-of-Qlikview/m-p/264308#M581361</guid>
      <dc:creator />
      <dc:date>2012-01-12T14:18:12Z</dc:date>
    </item>
    <item>
      <title>Actual year and month selected by default on a view of Qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Actual-year-and-month-selected-by-default-on-a-view-of-Qlikview/m-p/264309#M581362</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;EvaPOLINI, thanks you very much!!!! I did it &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/grin.png" /&gt;!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jan 2012 15:29:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Actual-year-and-month-selected-by-default-on-a-view-of-Qlikview/m-p/264309#M581362</guid>
      <dc:creator />
      <dc:date>2012-01-12T15:29:09Z</dc:date>
    </item>
    <item>
      <title>Re: Actual year and month selected by default on a view of Qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Actual-year-and-month-selected-by-default-on-a-view-of-Qlikview/m-p/264310#M581363</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;Also just started developing in QlikView. Following the above I have set a variable of current financial yesr as the selection on opening.&amp;nbsp; I presume that with a variable for the previous financial year I should be able to open with both previous and current year selected.&amp;nbsp; What statement would I need in the search string to combine the two variables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for any help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jul 2014 15:42:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Actual-year-and-month-selected-by-default-on-a-view-of-Qlikview/m-p/264310#M581363</guid>
      <dc:creator />
      <dc:date>2014-07-22T15:42:46Z</dc:date>
    </item>
    <item>
      <title>Re: Actual year and month selected by default on a view of Qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Actual-year-and-month-selected-by-default-on-a-view-of-Qlikview/m-p/264311#M581364</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp; Gareth,&lt;/P&gt;&lt;P&gt;sorry for the delay,&lt;/P&gt;&lt;P&gt;Could you confirm to me something. You try to open your app with 2 values selected in the Year (CY, PY).&lt;/P&gt;&lt;P&gt;Am I right?&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Eva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Aug 2014 02:21:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Actual-year-and-month-selected-by-default-on-a-view-of-Qlikview/m-p/264311#M581364</guid>
      <dc:creator />
      <dc:date>2014-08-06T02:21:52Z</dc:date>
    </item>
    <item>
      <title>Re: Actual year and month selected by default on a view of Qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Actual-year-and-month-selected-by-default-on-a-view-of-Qlikview/m-p/264312#M581365</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Eva&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That is correct.  I have established how a variable can be set in the trigger but I want to open the app with two variables, CY and PY, active.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gareth&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tel: 01206 746530&lt;/P&gt;&lt;P&gt;email: gareth.rees@colchesterhospital.nhs.uk&amp;lt;mailto:gareth.rees@colchesterhospital.nhs.uk&amp;gt;&lt;/P&gt;&lt;P&gt;secure email:  gareth.rees2@nhs.net&amp;lt;mailto:gareth.rees2@nhs.net&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Aug 2014 08:49:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Actual-year-and-month-selected-by-default-on-a-view-of-Qlikview/m-p/264312#M581365</guid>
      <dc:creator />
      <dc:date>2014-08-11T08:49:36Z</dc:date>
    </item>
  </channel>
</rss>

