<?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 Can't get Document Trigger to work. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Can-t-get-Document-Trigger-to-work/m-p/332143#M1177033</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Celambarasan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It was as simple as "=" before the expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(Not needed before the field name.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Muchas gracias!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 02 Mar 2012 09:54:47 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-03-02T09:54:47Z</dc:date>
    <item>
      <title>Can't get Document Trigger to work.</title>
      <link>https://community.qlik.com/t5/QlikView/Can-t-get-Document-Trigger-to-work/m-p/332140#M1177030</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I know it's me... it always is!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a variable that I have created to give me the maximum year in which there has been data entered. (There is a similar fomrula for max week in the selected year also.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my example, I am analysing weekly production, and I define the variable MaxYear as:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Max (TOTAL If(IsNull([Litres Produced]),Null(),[Year])) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;I am trying to use this as a Document Trigger so that the year will be automatically selected on opening te document.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;﻿&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;﻿&lt;/SPAN&gt;This then (I hope) allows Only(Year) to work without the user being required to select a period.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;﻿&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;﻿So I have selected the "Triggers" tab in Document Properties, there selected the Document Event Trigger "OnOpen", chosen the Action "Select in Field", selected the field "Year" (no quotes) and entered the formula above as the Search String.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;﻿&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;﻿&lt;/SPAN&gt;I expected this would do what I wanted, but it appears to do nothing at all.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;﻿&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;﻿&lt;/SPAN&gt;As usual... help please!&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;﻿&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;﻿&lt;/SPAN&gt;Dave&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Mar 2012 15:30:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-t-get-Document-Trigger-to-work/m-p/332140#M1177030</guid>
      <dc:creator />
      <dc:date>2012-03-01T15:30:37Z</dc:date>
    </item>
    <item>
      <title>Can't get Document Trigger to work.</title>
      <link>https://community.qlik.com/t5/QlikView/Can-t-get-Document-Trigger-to-work/m-p/332141#M1177031</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Have you tried with = sign before your expression.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =Max (TOTAL If(IsNull([Litres Produced]),Null(),[Year]))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Or&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =Max(Year)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;Celambarasan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Mar 2012 04:47:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-t-get-Document-Trigger-to-work/m-p/332141#M1177031</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2012-03-02T04:47:58Z</dc:date>
    </item>
    <item>
      <title>Can't get Document Trigger to work.</title>
      <link>https://community.qlik.com/t5/QlikView/Can-t-get-Document-Trigger-to-work/m-p/332142#M1177032</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;Try this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Max(YearFieldName)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will always select the Latest year based on the selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to get the max ever irrespective of selections then use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Max(ALL YearFieldName)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Mar 2012 05:44:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-t-get-Document-Trigger-to-work/m-p/332142#M1177032</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2012-03-02T05:44:34Z</dc:date>
    </item>
    <item>
      <title>Can't get Document Trigger to work.</title>
      <link>https://community.qlik.com/t5/QlikView/Can-t-get-Document-Trigger-to-work/m-p/332143#M1177033</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Celambarasan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It was as simple as "=" before the expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(Not needed before the field name.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Muchas gracias!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Mar 2012 09:54:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-t-get-Document-Trigger-to-work/m-p/332143#M1177033</guid>
      <dc:creator />
      <dc:date>2012-03-02T09:54:47Z</dc:date>
    </item>
    <item>
      <title>Can't get Document Trigger to work.</title>
      <link>https://community.qlik.com/t5/QlikView/Can-t-get-Document-Trigger-to-work/m-p/332144#M1177034</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Jagan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I appreciate your time and input.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Mar 2012 09:56:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-t-get-Document-Trigger-to-work/m-p/332144#M1177034</guid>
      <dc:creator />
      <dc:date>2012-03-02T09:56:12Z</dc:date>
    </item>
  </channel>
</rss>

