<?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 Database Selection on Model Open? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Database-Selection-on-Model-Open/m-p/153168#M30312</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanx this will do, just tested it on a model and it will give me the desired "selection".&lt;/P&gt;&lt;P&gt;Now how do i use it as a trigger when a user open the document with Access Point?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Jan 2011 07:20:30 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-01-05T07:20:30Z</dc:date>
    <item>
      <title>Database Selection on Model Open?</title>
      <link>https://community.qlik.com/t5/QlikView/Database-Selection-on-Model-Open/m-p/153160#M30304</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;We are in the fruit industry and have recently started using our 2011 database from a pallet tracking system.&lt;/P&gt;&lt;P&gt;This makes it kind of difficult to switch between 2010 and 2011 data in Qlikview.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now i have my 2 load scripts running in the background collecting data from both databasis and storing it as QVD's with 2010 or 2011 in the file name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have one model that have all my reports etc tho which loads the QVD files that i have specified.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to have a 2010 or 2011 popup when the user open the document and based on that selection the model will load the 2010 or 2011 QVD's automatically?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Jan 2011 12:15:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Database-Selection-on-Model-Open/m-p/153160#M30304</guid>
      <dc:creator />
      <dc:date>2011-01-04T12:15:04Z</dc:date>
    </item>
    <item>
      <title>Database Selection on Model Open?</title>
      <link>https://community.qlik.com/t5/QlikView/Database-Selection-on-Model-Open/m-p/153161#M30305</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you mean, you want to load data according to user selection. i.e 2010 or 2011&lt;/P&gt;&lt;P&gt;Am I right ?.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Jan 2011 12:19:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Database-Selection-on-Model-Open/m-p/153161#M30305</guid>
      <dc:creator>suniljain</dc:creator>
      <dc:date>2011-01-04T12:19:03Z</dc:date>
    </item>
    <item>
      <title>Re: Database Selection on Model Open?</title>
      <link>https://community.qlik.com/t5/QlikView/Database-Selection-on-Model-Open/m-p/153162#M30306</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This script will do:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;LET vYear = Input('Input year', 'Warning!'); &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data:LOAD *&lt;/P&gt;&lt;P&gt;FROM File$(vYear).qvd (qvd); // provided the file is File2010.qvd&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Jan 2011 12:22:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Database-Selection-on-Model-Open/m-p/153162#M30306</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2011-01-04T12:22:40Z</dc:date>
    </item>
    <item>
      <title>Database Selection on Model Open?</title>
      <link>https://community.qlik.com/t5/QlikView/Database-Selection-on-Model-Open/m-p/153163#M30307</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes, my load scripts already load and store the 2010 and 2011 QVD files seperately, but i dont want to use 2 different models to view the data, my one model is like a template to with all the reports, i just want a "switch" to select which set of QVD files to load&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Jan 2011 12:38:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Database-Selection-on-Model-Open/m-p/153163#M30307</guid>
      <dc:creator />
      <dc:date>2011-01-04T12:38:05Z</dc:date>
    </item>
    <item>
      <title>Database Selection on Model Open?</title>
      <link>https://community.qlik.com/t5/QlikView/Database-Selection-on-Model-Open/m-p/153164#M30308</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;pls check in shared document , someone alredy posted application for this types of requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Jan 2011 12:40:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Database-Selection-on-Model-Open/m-p/153164#M30308</guid>
      <dc:creator>suniljain</dc:creator>
      <dc:date>2011-01-04T12:40:34Z</dc:date>
    </item>
    <item>
      <title>Database Selection on Model Open?</title>
      <link>https://community.qlik.com/t5/QlikView/Database-Selection-on-Model-Open/m-p/153165#M30309</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Ruan,&lt;/P&gt;&lt;P&gt;I would recommend you to make it simpler by loading both the data into the application.&lt;/P&gt;&lt;P&gt;Provide a filter of Year to user so that user can change the year on their will.&lt;/P&gt;&lt;P&gt;YOu can by default select the Year 2011 on the open Event of the application hence when ever the user opens the application he will be able to see the 2011 data and will have the option to change it to 2010 uisng the filters&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Jan 2011 12:56:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Database-Selection-on-Model-Open/m-p/153165#M30309</guid>
      <dc:creator>deepakk</dc:creator>
      <dc:date>2011-01-04T12:56:13Z</dc:date>
    </item>
    <item>
      <title>Database Selection on Model Open?</title>
      <link>https://community.qlik.com/t5/QlikView/Database-Selection-on-Model-Open/m-p/153166#M30310</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;suggestion given deepak direclt affect the performance at design level. to give fileter based on year takes lots of time to display content after selection.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jan 2011 07:06:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Database-Selection-on-Model-Open/m-p/153166#M30310</guid>
      <dc:creator>suniljain</dc:creator>
      <dc:date>2011-01-05T07:06:53Z</dc:date>
    </item>
    <item>
      <title>Database Selection on Model Open?</title>
      <link>https://community.qlik.com/t5/QlikView/Database-Selection-on-Model-Open/m-p/153167#M30311</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The solution given by Miguel is perfect&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jan 2011 07:07:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Database-Selection-on-Model-Open/m-p/153167#M30311</guid>
      <dc:creator>suniljain</dc:creator>
      <dc:date>2011-01-05T07:07:53Z</dc:date>
    </item>
    <item>
      <title>Database Selection on Model Open?</title>
      <link>https://community.qlik.com/t5/QlikView/Database-Selection-on-Model-Open/m-p/153168#M30312</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanx this will do, just tested it on a model and it will give me the desired "selection".&lt;/P&gt;&lt;P&gt;Now how do i use it as a trigger when a user open the document with Access Point?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jan 2011 07:20:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Database-Selection-on-Model-Open/m-p/153168#M30312</guid>
      <dc:creator />
      <dc:date>2011-01-05T07:20:30Z</dc:date>
    </item>
    <item>
      <title>Database Selection on Model Open?</title>
      <link>https://community.qlik.com/t5/QlikView/Database-Selection-on-Model-Open/m-p/153169#M30313</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;From what i could find is i need to use the OnOpen trigger and write a macro for it to ask the Year correct? Can somebody please help with Miguel's code in the macro?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jan 2011 07:53:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Database-Selection-on-Model-Open/m-p/153169#M30313</guid>
      <dc:creator />
      <dc:date>2011-01-05T07:53:42Z</dc:date>
    </item>
    <item>
      <title>SV:Re: Database Selection on Model Open?</title>
      <link>https://community.qlik.com/t5/QlikView/Database-Selection-on-Model-Open/m-p/153170#M30314</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Macro code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sub reload&lt;BR /&gt; ActiveDocument.Reload&lt;BR /&gt;end sub&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jan 2011 08:10:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Database-Selection-on-Model-Open/m-p/153170#M30314</guid>
      <dc:creator>gandalfgray</dc:creator>
      <dc:date>2011-01-05T08:10:14Z</dc:date>
    </item>
    <item>
      <title>SV:Re: Database Selection on Model Open?</title>
      <link>https://community.qlik.com/t5/QlikView/Database-Selection-on-Model-Open/m-p/153171#M30315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Note that some OnOpen and OnPostReload macros may not work when you access the document via client (open in server in Desktop, Plugin or AJAX). I'd better use some headers or passing some variable to the url so the document "know" who's opening the document and what year has to load.&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jan 2011 08:18:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Database-Selection-on-Model-Open/m-p/153171#M30315</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2011-01-05T08:18:23Z</dc:date>
    </item>
    <item>
      <title>SV:Re: SV:Re: Database Selection on Model Open?</title>
      <link>https://community.qlik.com/t5/QlikView/Database-Selection-on-Model-Open/m-p/153172#M30316</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="jive_text_macro jive_macro_quote" jivemacro="quote"&gt;&lt;BR /&gt;Miguel Angel Baeyens wrote:&lt;BR /&gt;Note that some OnOpen and OnPostReload macros may not work when you access the document via client (open in server in Desktop, Plugin or AJAX)... &amp;lt;div&amp;gt;&amp;lt;/div&amp;gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Yes, that's what I noticed too, reloading using ActiveDocument.Reload does not work for me through plugin client. &lt;IMG alt="Sad" src="http://community.qlik.com/emoticons/emotion-6.gif" /&gt;&lt;/P&gt;&lt;P&gt;I do not know if there's some setting to be done which I have not set correctly, this is what I use&lt;/P&gt;&lt;P&gt;&lt;A href="http://community.qlik.com/cfs-file.ashx/__key/CommunityServer.Discussions.Components.Files/11/5344.security1.JPG"&gt;&lt;IMG alt="" border="0" src="http://community.qlik.com/resized-image.ashx/__size/550x0/__key/CommunityServer.Discussions.Components.Files/11/5344.security1.JPG" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;and in the client I select "Give Module Script System Access"&lt;/P&gt;&lt;P&gt;but reloading does not work neither triggered OnOpen nor by a button&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jan 2011 08:34:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Database-Selection-on-Model-Open/m-p/153172#M30316</guid>
      <dc:creator>gandalfgray</dc:creator>
      <dc:date>2011-01-05T08:34:38Z</dc:date>
    </item>
    <item>
      <title>SV:Re: SV:Re: Database Selection on Model Open?</title>
      <link>https://community.qlik.com/t5/QlikView/Database-Selection-on-Model-Open/m-p/153173#M30317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Göran,&lt;/P&gt;&lt;P&gt;It's not a question of how you have configured your security rather than how the server behaviour is expected. According to the Ref Manual, OnOpen, OnPostReload and OnPostReduceData are not be used in QlikView Server environments, since "they lack meaning or may cause unexpected results".&lt;/P&gt;&lt;P&gt;However, I've read here that some people have got them working.&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jan 2011 09:03:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Database-Selection-on-Model-Open/m-p/153173#M30317</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2011-01-05T09:03:10Z</dc:date>
    </item>
    <item>
      <title>SV:Re: SV:Re: SV:Re: Database Selection on Model Open?</title>
      <link>https://community.qlik.com/t5/QlikView/Database-Selection-on-Model-Open/m-p/153174#M30318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="jive_text_macro jive_macro_quote" jivemacro="quote"&gt;&lt;BR /&gt;Miguel Angel Baeyens wrote:&lt;BR /&gt;Hello Göran,&lt;BR /&gt;It's not a question of how you have configured your security rather than how the server behaviour is expected. According to the Ref Manual, OnOpen, OnPostReload and OnPostReduceData are not be used in QlikView Server environments, since "they lack meaning or may cause unexpected results".&lt;BR /&gt;However, I've read here that some people have got them working.&lt;BR /&gt;Hope that helps. &amp;lt;div&amp;gt;&amp;lt;/div&amp;gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;So the conclusion is that the answer to the original question is: No it is not possible to load conditionally for clients accessing server qvw's.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would go for Deepaks solution, adding all data to the same application, adding a Year dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jan 2011 09:33:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Database-Selection-on-Model-Open/m-p/153174#M30318</guid>
      <dc:creator>gandalfgray</dc:creator>
      <dc:date>2011-01-05T09:33:52Z</dc:date>
    </item>
    <item>
      <title>Database Selection on Model Open?</title>
      <link>https://community.qlik.com/t5/QlikView/Database-Selection-on-Model-Open/m-p/153175#M30319</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to do a macro to do this, also executable from a button (run external macro).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My variable is VARYEARSELECTION. On executing the macro ask me to select 2010 or 2011&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jan 2011 15:13:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Database-Selection-on-Model-Open/m-p/153175#M30319</guid>
      <dc:creator />
      <dc:date>2011-01-10T15:13:18Z</dc:date>
    </item>
    <item>
      <title>Database Selection on Model Open?</title>
      <link>https://community.qlik.com/t5/QlikView/Database-Selection-on-Model-Open/m-p/153176#M30320</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The macro won't run OnLoad, OnOpen, etc. For the button, I'd suggest to create a VBS for WSH file which is executed before opening the document. Or take the values from a command prompt batch file.&lt;/P&gt;&lt;P&gt;Anyway, since the document is going to reload all data, it doesn't make much sense doing the above. I'd set a first sheet (keeping the rest hidden) in which the user has to select the year, all the tabs are shown based on the conditional.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Count(DISTINCT Year) = 1&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;In each tab.&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jan 2011 17:16:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Database-Selection-on-Model-Open/m-p/153176#M30320</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2011-01-10T17:16:36Z</dc:date>
    </item>
  </channel>
</rss>

