<?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: Using Triggers on Document open in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Using-Triggers-on-Document-open/m-p/652181#M238444</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Evan, that's exactly what I needed and it worked first time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You're a genius!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 Aug 2014 12:13:19 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-08-05T12:13:19Z</dc:date>
    <item>
      <title>Using Triggers on Document open</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Triggers-on-Document-open/m-p/652179#M238442</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've got a document that I need to select to show the year-to-date position when it loads.&amp;nbsp; I still want users to be able to change this selection if they want to.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my document I've got MonthNo and Period - MonthNo is the numeric month (e.g. 01) and Period is the text month of the financial year (e.g. Apr).&amp;nbsp; Last Closed Period is the numeric month number that I'm also pulling in from the data source.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've managed to set a Trigger that selects the MonthNo as less than or equal to the current month by setting the field as MonthNo and the search string as ='&amp;lt;=$(=[Last Closed Period])'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works, but throughout the document I use the Period field, rather than MonthNo, as the field that the end user sees.&amp;nbsp; What this means is that Period will show as Apr, May and Jun in white, but Jul to Mar are greyed out.&amp;nbsp; The MonthNo field shows 01-03 as green, and 04-12 as greyed out, because that's the field that's been used for the trigger.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a relatively simple way that I could use the Period field as the basis of the Trigger to make it more obvious to end users which months are selected?&amp;nbsp; I don't want to display the MonthNo field to end users, if possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dave&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jul 2014 13:52:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Triggers-on-Document-open/m-p/652179#M238442</guid>
      <dc:creator />
      <dc:date>2014-07-10T13:52:27Z</dc:date>
    </item>
    <item>
      <title>Re: Using Triggers on Document open</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Triggers-on-Document-open/m-p/652180#M238443</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Dave,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For your OnOpen() Trigger you want to create a chain of string values for all your Period values that fall prior to [Last Closed Period].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use an expression like this to Select In Field - Period :&lt;/P&gt;&lt;P&gt;='(' &amp;amp; CONCAT({&amp;lt;MonthNo={"&amp;lt;= $(=[Last Closed Period])"}&amp;gt;}&amp;nbsp; DISTINCT Period,'|',MonthNo) &amp;amp; ')'&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;The output of that expression should produce something like this (depending on what the value of [Last Closed Period] is):&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="63699" alt="temp_value_chain.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/63699_temp_value_chain.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Aug 2014 02:50:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Triggers-on-Document-open/m-p/652180#M238443</guid>
      <dc:creator>evan_kurowski</dc:creator>
      <dc:date>2014-08-05T02:50:45Z</dc:date>
    </item>
    <item>
      <title>Re: Using Triggers on Document open</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Triggers-on-Document-open/m-p/652181#M238444</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Evan, that's exactly what I needed and it worked first time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You're a genius!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Aug 2014 12:13:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Triggers-on-Document-open/m-p/652181#M238444</guid>
      <dc:creator />
      <dc:date>2014-08-05T12:13:19Z</dc:date>
    </item>
  </channel>
</rss>

