<?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 OnOpen trigger: select max date from field in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/OnOpen-trigger-select-max-date-from-field/m-p/1621665#M507637</link>
    <description>&lt;P&gt;Hi everybody!&lt;/P&gt;&lt;P&gt;I want that everytime I open my dashboard, the more recent date is selected. The field i want this date is selected is named '-MonthYearMC', the format of the date of this field is 'MMM YY'.&lt;/P&gt;&lt;P&gt;I try in document properties&amp;gt;triggers&amp;gt;OnOpen&amp;gt;Select in field. but i have no luck .&lt;/P&gt;&lt;P&gt;I'll attach the script of the master calendar where my field is created.&lt;/P&gt;&lt;P&gt;Hope you could help me, thanks in advance.&lt;/P&gt;&lt;P&gt;PS: Have in mind that the date is always updating with more recent data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 20:07:04 GMT</pubDate>
    <dc:creator>s_herrera_pugli</dc:creator>
    <dc:date>2024-11-16T20:07:04Z</dc:date>
    <item>
      <title>OnOpen trigger: select max date from field</title>
      <link>https://community.qlik.com/t5/QlikView/OnOpen-trigger-select-max-date-from-field/m-p/1621665#M507637</link>
      <description>&lt;P&gt;Hi everybody!&lt;/P&gt;&lt;P&gt;I want that everytime I open my dashboard, the more recent date is selected. The field i want this date is selected is named '-MonthYearMC', the format of the date of this field is 'MMM YY'.&lt;/P&gt;&lt;P&gt;I try in document properties&amp;gt;triggers&amp;gt;OnOpen&amp;gt;Select in field. but i have no luck .&lt;/P&gt;&lt;P&gt;I'll attach the script of the master calendar where my field is created.&lt;/P&gt;&lt;P&gt;Hope you could help me, thanks in advance.&lt;/P&gt;&lt;P&gt;PS: Have in mind that the date is always updating with more recent data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 20:07:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/OnOpen-trigger-select-max-date-from-field/m-p/1621665#M507637</guid>
      <dc:creator>s_herrera_pugli</dc:creator>
      <dc:date>2024-11-16T20:07:04Z</dc:date>
    </item>
    <item>
      <title>Re: OnOpen trigger: select max date from field</title>
      <link>https://community.qlik.com/t5/QlikView/OnOpen-trigger-select-max-date-from-field/m-p/1625994#M507638</link>
      <description>&lt;P&gt;Sofia, I need a little more information here in order to try to figure out if there is something we can do here.&amp;nbsp; I did want to point out to you that the OnOpen trigger is an unsupported trigger in the Ajax Client, this is documented in the following Help link:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/qlikview/November2018/Subsystems/Client/Content/QV_QlikView/Document_Properties_Triggers.htm" target="_blank"&gt;https://help.qlik.com/en-US/qlikview/November2018/Subsystems/Client/Content/QV_QlikView/Document_Properties_Triggers.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Just off the top of my head, I am thinking the better way to go at this may be to set a variable in the script and then use the variable to set the date etc...&amp;nbsp; My post will kick this back up in the list, so someone else may have something better, but I think that is going to potentially be the better way to go here, but I do not have an example for you.&amp;nbsp; If you have not searched the prior posts, you may want to do that, as I am pretty sure there are other posts out there along these lines too.&amp;nbsp; I would do it for you, but you know your use case better than do I, so I will let you have a look to see what you can find, and if you do find something but have further questions, just post that link back here and pose your question and hopefully one of can try to help you further.&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Brett&lt;/P&gt;</description>
      <pubDate>Thu, 19 Sep 2019 20:44:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/OnOpen-trigger-select-max-date-from-field/m-p/1625994#M507638</guid>
      <dc:creator>Brett_Bleess</dc:creator>
      <dc:date>2019-09-19T20:44:04Z</dc:date>
    </item>
    <item>
      <title>Re: OnOpen trigger: select max date from field</title>
      <link>https://community.qlik.com/t5/QlikView/OnOpen-trigger-select-max-date-from-field/m-p/1626473#M507639</link>
      <description>&lt;P&gt;In as much as your field is text will do that:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Month&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;TempDate&lt;/SPAN&gt;&lt;SPAN&gt;) &amp;amp;' '&amp;amp; &lt;/SPAN&gt;&lt;SPAN&gt;Right&lt;/SPAN&gt;&lt;SPAN&gt;((&lt;/SPAN&gt;&lt;SPAN&gt;Year&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;TempDate&lt;/SPAN&gt;&lt;SPAN&gt;)),2) &lt;/SPAN&gt;&lt;SPAN&gt;AS&lt;/SPAN&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;SPAN&gt;-&lt;/SPAN&gt;&lt;SPAN&gt;MonthYearMC]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I would suggest instead creating the field in this manner:&lt;/P&gt;&lt;P&gt;Date(Floor(&lt;SPAN&gt;TempDate),'MMM YY') as&amp;nbsp;[-MonthYearMC]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;This will retain a numerical value and should fix your issue.&lt;/P&gt;&lt;P&gt;V/r,&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;</description>
      <pubDate>Fri, 20 Sep 2019 16:57:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/OnOpen-trigger-select-max-date-from-field/m-p/1626473#M507639</guid>
      <dc:creator>johnca</dc:creator>
      <dc:date>2019-09-20T16:57:20Z</dc:date>
    </item>
  </channel>
</rss>

