<?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 How to do an initial selection with Ajax and Qlikview server in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-do-an-initial-selection-with-Ajax-and-Qlikview-server/m-p/276199#M1190449</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would push back against the "Working As Designed" for OnOpen not working in Ajax. I don't see anything in the manual for V9 or V10 that limits OnOpen in the server environment. Iif there is a limitation, it should be documented in the manual. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OnOpen with Ajax, action Apply Bookmark, is working fine for me with QV10 SR3. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An alternative to using an OnOpen trigger is to save the document in the state you want it opened. Create a bookmark with search expressions like "=Date=date(today(1))", save those in a bookmark, and remember to apply the bookmark before saving the document in designer. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://robwunderlich.com"&gt;http://robwunderlich.com&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 23 Aug 2011 04:00:09 GMT</pubDate>
    <dc:creator>rwunderlich</dc:creator>
    <dc:date>2011-08-23T04:00:09Z</dc:date>
    <item>
      <title>How to do an initial selection with Ajax and Qlikview server</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-do-an-initial-selection-with-Ajax-and-Qlikview-server/m-p/276196#M1190443</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It seems like it should be fairly simple but I can't figure out how to do an initial selection using Ajax and the Qlikview Server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The manaul of course says you can use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Document.OnAnySelect&lt;/P&gt;&lt;P&gt;352&lt;/P&gt;&lt;P&gt;Field.OnSelect&lt;/P&gt;&lt;P&gt;Field.OnChange&lt;/P&gt;&lt;P&gt;Field.OnUnlock&lt;/P&gt;&lt;P&gt;Document.OnPressMacroButton&lt;/P&gt;&lt;P&gt;Variable.OnChange&lt;/P&gt;&lt;P&gt;Variable.OnInput&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But not to use &lt;/P&gt;&lt;P&gt;The following triggers are not to be used in the QlikView Server environment, since&lt;/P&gt;&lt;P&gt;they lack meaning or may cause unexpected results:&lt;/P&gt;&lt;P&gt;OnPostReduceData&lt;/P&gt;&lt;P&gt;OnPostReload&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The OnOpen Trigger does not appear to work with Ajax (although works fine with the ie client)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone have a solution for this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Aug 2011 15:03:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-do-an-initial-selection-with-Ajax-and-Qlikview-server/m-p/276196#M1190443</guid>
      <dc:creator>mellerbeck</dc:creator>
      <dc:date>2011-08-16T15:03:48Z</dc:date>
    </item>
    <item>
      <title>How to do an initial selection with Ajax and Qlikview server</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-do-an-initial-selection-with-Ajax-and-Qlikview-server/m-p/276197#M1190445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Strange I would think this would be a fairly normal request &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt; this was my reply for qliktech support&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The OnOpen trigger not working with AJAX is Working As Designed and is due to the way AJAX works with state-status. As for how to have default selections, unfortunately that is outside of the Support Agreement. I would suggest checking our community site (www.qlik.com) or contacting your Account Manager (listed as Andrew Dear, attached) to request help from Expert Services.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Aug 2011 20:20:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-do-an-initial-selection-with-Ajax-and-Qlikview-server/m-p/276197#M1190445</guid>
      <dc:creator>mellerbeck</dc:creator>
      <dc:date>2011-08-16T20:20:27Z</dc:date>
    </item>
    <item>
      <title>How to do an initial selection with Ajax and Qlikview server</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-do-an-initial-selection-with-Ajax-and-Qlikview-server/m-p/276198#M1190447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One way of doing is this is using Set Analysis with a variable. So far this has worked for me, but I still wish ajax version had an OnOpen Trigger &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Aug 2011 21:30:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-do-an-initial-selection-with-Ajax-and-Qlikview-server/m-p/276198#M1190447</guid>
      <dc:creator>mellerbeck</dc:creator>
      <dc:date>2011-08-22T21:30:34Z</dc:date>
    </item>
    <item>
      <title>How to do an initial selection with Ajax and Qlikview server</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-do-an-initial-selection-with-Ajax-and-Qlikview-server/m-p/276199#M1190449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would push back against the "Working As Designed" for OnOpen not working in Ajax. I don't see anything in the manual for V9 or V10 that limits OnOpen in the server environment. Iif there is a limitation, it should be documented in the manual. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OnOpen with Ajax, action Apply Bookmark, is working fine for me with QV10 SR3. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An alternative to using an OnOpen trigger is to save the document in the state you want it opened. Create a bookmark with search expressions like "=Date=date(today(1))", save those in a bookmark, and remember to apply the bookmark before saving the document in designer. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://robwunderlich.com"&gt;http://robwunderlich.com&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Aug 2011 04:00:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-do-an-initial-selection-with-Ajax-and-Qlikview-server/m-p/276199#M1190449</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2011-08-23T04:00:09Z</dc:date>
    </item>
    <item>
      <title>How to do an initial selection with Ajax and Qlikview server</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-do-an-initial-selection-with-Ajax-and-Qlikview-server/m-p/276200#M1190450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think if you turn off "Session Recovery" in QMC, the OnOpen trigger will start working in AJAX. Try and please post feeback here.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Feb 2012 22:41:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-do-an-initial-selection-with-Ajax-and-Qlikview-server/m-p/276200#M1190450</guid>
      <dc:creator>disqr_rm</dc:creator>
      <dc:date>2012-02-22T22:41:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to do an initial selection with Ajax and Qlikview server</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-do-an-initial-selection-with-Ajax-and-Qlikview-server/m-p/276201#M1190451</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did as you've suggested but its not working for me.&lt;/P&gt;&lt;P&gt;Could you please suggest something else.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jul 2012 10:36:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-do-an-initial-selection-with-Ajax-and-Qlikview-server/m-p/276201#M1190451</guid>
      <dc:creator />
      <dc:date>2012-07-20T10:36:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to do an initial selection with Ajax and Qlikview server</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-do-an-initial-selection-with-Ajax-and-Qlikview-server/m-p/276202#M1190452</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Page 426 qlikview 11 ref manual&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Document Event&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OnOpen&lt;/P&gt;&lt;P&gt;Select this event to assign an action to be executed each time the QlikView&lt;/P&gt;&lt;P&gt;document is opened. This event will not function when running in the Ajax&lt;/P&gt;&lt;P&gt;Client.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've been playing with initial selections with AJAX on the iphone. Of course I ran across your own post &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; with the answer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="loading active_link" href="http://qlikviewnotes.blogspot.com/2011/12/initial-selections-and-current.html" title="http://qlikviewnotes.blogspot.com/2011/12/initial-selections-and-current.html"&gt;http://qlikviewnotes.blogspot.com/2011/12/initial-selections-and-current.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyways, I was using OnOpen to select in field and then passing a variable. This appeared to work the very first time the qlikview was opened but hitting refresh or opening the qlikview again from the portal would not cause it to use a different value if it was changed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;Looking at your post I created a Search expression pointing to the variable&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=gl_perod_id=$(vCurrentPeriod) etc... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;this has so far proved very reliable and doesn't use the OnOpen which is supposidly a no no. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I haven't tested OnOpen with a bookmark if that is your normal way I wonder if it side steps what looks like a variable 'caching' ????&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="30746" class="jive-image-thumbnail jive-image" onclick="" alt="image.PNG" src="https://community.qlik.com/legacyfs/online/30746_image.PNG" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jan 2013 22:59:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-do-an-initial-selection-with-Ajax-and-Qlikview-server/m-p/276202#M1190452</guid>
      <dc:creator>mellerbeck</dc:creator>
      <dc:date>2013-01-17T22:59:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to do an initial selection with Ajax and Qlikview server</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-do-an-initial-selection-with-Ajax-and-Qlikview-server/m-p/276203#M1190453</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Another option you may want to test is the select parm available when opening in ajax. Assuming gl_period_year is in listbox LB01, add&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;amp;select=LB01,2012&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jan 2013 07:23:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-do-an-initial-selection-with-Ajax-and-Qlikview-server/m-p/276203#M1190453</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2013-01-22T07:23:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to do an initial selection with Ajax and Qlikview server</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-do-an-initial-selection-with-Ajax-and-Qlikview-server/m-p/276204#M1190454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Finally ended up using OnOpen with a bookmark with a variable. OnOpen with a bookmark appears to work every time.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Feb 2013 15:38:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-do-an-initial-selection-with-Ajax-and-Qlikview-server/m-p/276204#M1190454</guid>
      <dc:creator>mellerbeck</dc:creator>
      <dc:date>2013-02-20T15:38:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to do an initial selection with Ajax and Qlikview server</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-do-an-initial-selection-with-Ajax-and-Qlikview-server/m-p/276205#M1190455</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;looks like it works if you use static value with onOpen trigger - it does not work with dynamic variables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in my case I needed to set year to the current year so I set my variable in the load script and then used that variable in the onOpen trigger for the document.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Mar 2014 15:15:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-do-an-initial-selection-with-Ajax-and-Qlikview-server/m-p/276205#M1190455</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-03-19T15:15:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to do an initial selection with Ajax and Qlikview server</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-do-an-initial-selection-with-Ajax-and-Qlikview-server/m-p/276206#M1190456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to second that. In my case I was able to get my OnOpen trigger to work on apps opened in a browser (through QV server) by using a variable set in script and then using the variable without a dollar sign expansion. I'm using QV 11.20 SR5.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Apr 2014 20:37:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-do-an-initial-selection-with-Ajax-and-Qlikview-server/m-p/276206#M1190456</guid>
      <dc:creator />
      <dc:date>2014-04-18T20:37:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to do an initial selection with Ajax and Qlikview server</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-do-an-initial-selection-with-Ajax-and-Qlikview-server/m-p/276207#M1190457</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tried this without changing anything else and it worked. Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jul 2014 15:56:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-do-an-initial-selection-with-Ajax-and-Qlikview-server/m-p/276207#M1190457</guid>
      <dc:creator>bdiamante</dc:creator>
      <dc:date>2014-07-31T15:56:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to do an initial selection with Ajax and Qlikview server</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-do-an-initial-selection-with-Ajax-and-Qlikview-server/m-p/276208#M1190458</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;Rob Wunderlich wrote:&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;I would push back against the "Working As Designed" for OnOpen not working in Ajax. I don't see anything in the manual for V9 or V10 that limits OnOpen in the server environment. Iif there is a limitation, it should be documented in the manual.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;OnOpen with Ajax, action Apply Bookmark, is working fine for me with QV10 SR3. &lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;-Rob&lt;/P&gt;
&lt;P&gt;&lt;A class="jive-link-external-small" href="http://robwunderlich.com/"&gt;http://robwunderlich.com&lt;/A&gt;&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;BR /&gt;Add another to those that experienced an OnOpen trigger working with Ajax (QV 11.2 SR2).&amp;nbsp; We placed a Date = Today() expression in the trigger, cleared selections and saved fresh copies of the document on the server.&amp;nbsp; We reloaded, selected other dates, closed the ajax sessions, to all appearances and testing the trigger appeared to be working, but it was clear the manual said it shouldn't be.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Aug 2014 13:09:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-do-an-initial-selection-with-Ajax-and-Qlikview-server/m-p/276208#M1190458</guid>
      <dc:creator>evan_kurowski</dc:creator>
      <dc:date>2014-08-07T13:09:34Z</dc:date>
    </item>
  </channel>
</rss>

