<?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 Macro not running? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/OnOpen-Macro-not-running/m-p/239168#M89843</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rich,&lt;/P&gt;&lt;P&gt;Do you display any image or play a sound or have any other "Opening" options set in the Document Properties? We encountered a bug with the combination of having an image appear on opening and then using an "On Open" macro which made field selections. Once we removed the image appearing on open, the regular OnOpen macro worked. (Using 8.5, IE Plugin)&lt;/P&gt;&lt;P&gt;Also, you could consider having the start page be a welcome page and then when the users click to access another tab, you can have the macro run (OnLeavePage or whatever the option is). This would avoid the OnOpen dilemma.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 27 Jul 2010 17:25:20 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-07-27T17:25:20Z</dc:date>
    <item>
      <title>OnOpen Macro not running?</title>
      <link>https://community.qlik.com/t5/QlikView/OnOpen-Macro-not-running/m-p/239163#M89838</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a macro to select a default year upon opening the document in the document settings:&lt;/P&gt;&lt;P&gt;Sub SetDefaultYear&lt;/P&gt;&lt;P&gt;ActiveDocument.ClearAll(true)&lt;/P&gt;&lt;P&gt;theYear = ActiveDocument.Variables("vThisYear").GetContent.string&lt;/P&gt;&lt;P&gt;ActiveDocument.Fields("YEAR_E").Select theYear&lt;/P&gt;&lt;P&gt;The variable vThisYear is working correctly, but when I open the document it makes no selections for YEAR_E? Anyone know whats going on here? Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 May 2010 14:46:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/OnOpen-Macro-not-running/m-p/239163#M89838</guid>
      <dc:creator>richnorris</dc:creator>
      <dc:date>2010-05-12T14:46:28Z</dc:date>
    </item>
    <item>
      <title>OnOpen Macro not running?</title>
      <link>https://community.qlik.com/t5/QlikView/OnOpen-Macro-not-running/m-p/239164#M89839</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi RichNorris,&lt;/P&gt;&lt;P&gt;I am attaching a qlikview application along with this post. hope this helps you. But I have used a predefined macro to get the corresponding initial selections in the list box when it is opeing. Another methode for doing is make a bookmark or the selections you want to make and using the predefined macro trigger this action when the application opens with the initial selections made in the application.&lt;/P&gt;&lt;P&gt;hope this helps .&lt;/P&gt;&lt;P&gt;Thanks Joseph......&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 May 2010 14:54:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/OnOpen-Macro-not-running/m-p/239164#M89839</guid>
      <dc:creator />
      <dc:date>2010-05-12T14:54:15Z</dc:date>
    </item>
    <item>
      <title>OnOpen Macro not running?</title>
      <link>https://community.qlik.com/t5/QlikView/OnOpen-Macro-not-running/m-p/239165#M89840</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi rich,&lt;/P&gt;&lt;P&gt;u can use predefined macros as suggested by thopz.&lt;/P&gt;&lt;P&gt;onopen -&amp;gt;edit action-&amp;gt;action-&amp;gt;add-&amp;gt;select in field&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;give the field as YEAR_E and search string as =vThisYear&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it should work&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 May 2010 15:03:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/OnOpen-Macro-not-running/m-p/239165#M89840</guid>
      <dc:creator />
      <dc:date>2010-05-12T15:03:21Z</dc:date>
    </item>
    <item>
      <title>OnOpen Macro not running?</title>
      <link>https://community.qlik.com/t5/QlikView/OnOpen-Macro-not-running/m-p/239166#M89841</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm guessing 'edit action' is new in QV9? We're still using 8.5 unfortunately. Thanks though! Thopz, I cant see your app?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 May 2010 15:10:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/OnOpen-Macro-not-running/m-p/239166#M89841</guid>
      <dc:creator>richnorris</dc:creator>
      <dc:date>2010-05-12T15:10:10Z</dc:date>
    </item>
    <item>
      <title>OnOpen Macro not running?</title>
      <link>https://community.qlik.com/t5/QlikView/OnOpen-Macro-not-running/m-p/239167#M89842</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've literally just sent the following in an email to support which you might find of interest....&lt;/P&gt;&lt;P style="margin:0cm 0cm 0pt;"&gt;The manual states (page 384 of v9 Reference Manual Book II):&lt;/P&gt;&lt;P style="margin:0cm 0cm 0pt;"&gt;&lt;/P&gt;&lt;P style="margin:0cm 0cm 0pt;"&gt;The following triggers are not to be used in the QlikView Server environment, since&lt;/P&gt;&lt;P style="margin:0cm 0cm 0pt;"&gt;they lack meaning or may cause unexpected results:&lt;/P&gt;&lt;P style="margin:0cm 0cm 0pt;"&gt;OnOpen&lt;/P&gt;&lt;P style="margin:0cm 0cm 0pt;"&gt;OnPostReduceData&lt;/P&gt;&lt;P style="margin:0cm 0cm 0pt;"&gt;OnPostReload&lt;/P&gt;&lt;P style="margin:0cm 0cm 0pt;"&gt;&lt;/P&gt;&lt;P style="margin:0cm 0cm 0pt;"&gt;However, the only other way to fire an initial macro if the OnOpen trigger cannot be used is to pass the macro through a named pair in the URL call using the qvp protocol:&lt;/P&gt;&lt;P style="margin:0cm 0cm 0pt;"&gt;qvp://servername/folder/document.qvw?MACRO=SetEnv&lt;/P&gt;&lt;P style="margin:0cm 0cm 0pt;"&gt;&lt;/P&gt;&lt;P style="margin:0cm 0cm 0pt;"&gt;and this is not configurable with AccessPoint.&lt;/P&gt;&lt;P style="margin:0cm 0cm 0pt;"&gt;&lt;/P&gt;&lt;P style="margin:0cm 0cm 0pt;"&gt;Is this a 'gotcha'?&lt;/P&gt;&lt;P&gt;Also, during testing for upgrading from v8.20 to v9, I reported the following to support:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One of my documents has a field value that is contained within brackets and is the subject of field.select within a macro. Under 8.20 it works fine but not with the latest where it does not seem to be able to match it. I also tried using the value in an Action 'Select In Field' and the problem remains. It is a simple fix requiring the wildcard '*' added to the end of the string, but it could of course be representative of a larger issue.&lt;/P&gt;&lt;P&gt;which was confirmed as bug 26437. Maybe the wildcard will work for you?&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Gordon&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 May 2010 15:48:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/OnOpen-Macro-not-running/m-p/239167#M89842</guid>
      <dc:creator />
      <dc:date>2010-05-12T15:48:55Z</dc:date>
    </item>
    <item>
      <title>OnOpen Macro not running?</title>
      <link>https://community.qlik.com/t5/QlikView/OnOpen-Macro-not-running/m-p/239168#M89843</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rich,&lt;/P&gt;&lt;P&gt;Do you display any image or play a sound or have any other "Opening" options set in the Document Properties? We encountered a bug with the combination of having an image appear on opening and then using an "On Open" macro which made field selections. Once we removed the image appearing on open, the regular OnOpen macro worked. (Using 8.5, IE Plugin)&lt;/P&gt;&lt;P&gt;Also, you could consider having the start page be a welcome page and then when the users click to access another tab, you can have the macro run (OnLeavePage or whatever the option is). This would avoid the OnOpen dilemma.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jul 2010 17:25:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/OnOpen-Macro-not-running/m-p/239168#M89843</guid>
      <dc:creator />
      <dc:date>2010-07-27T17:25:20Z</dc:date>
    </item>
  </channel>
</rss>

