<?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 Dynamically change data source in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Dynamically-change-data-source/m-p/146466#M716908</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I had a doubt here. From where will you pass the database name to connection string in the Edit script window?.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Raghu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Jun 2009 18:51:39 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-06-10T18:51:39Z</dc:date>
    <item>
      <title>Dynamically change data source</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamically-change-data-source/m-p/146463#M716905</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry if this is a total noob question, but i have just started using QLikView - I am evaluating it to see if it will fit my needs. One question I have not found the answer to yet on forums / manuals is: can I change the data source dynamically at run-time depending on the selection of a value in a table?&lt;/P&gt;&lt;P&gt;To explain more: I have 10 databases for 10 different divisions of a company. The databases are identical in structure, differ only in the data they contain. I want to be able to show the user a table of divisions (e.g. 'London', 'Manchester', 'Newcastle'), and depending on which one they select, I want to be able to connect to a different database to get my data from (i.e. change the source in my data script from 'ODBC CONNECT TO [London-SQL] to 'ODBC CONNECT TO [Manchester-SQL]')&lt;/P&gt;&lt;P&gt;For now I don't need to know HOW to do this, I only need to know IF this is possible in QlikView. Can anyone confirm this for me? Thanks for any help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jun 2009 17:20:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamically-change-data-source/m-p/146463#M716905</guid>
      <dc:creator />
      <dc:date>2009-06-10T17:20:25Z</dc:date>
    </item>
    <item>
      <title>Dynamically change data source</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamically-change-data-source/m-p/146464#M716906</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, that is possible with variables!&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Here a small example how to connect to 3 databases and select the customer table from each database.&lt;BR /&gt;Just insert the variable in the connection string. So in your example when a user on the frontend changes the variable, the connection goes to the selected database..&lt;/P&gt;&lt;PRE&gt;for each vDatabase in 'Nordwind','DB1','DB2' CONNECT TO [Provider=Microsoft.Jet.OLEDB.4.0;User ID=Admin;Data Source=C:\$(vDatabase).mdb;]; LOAD Region; SQL SELECT Region FROM Customer; next&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jun 2009 18:08:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamically-change-data-source/m-p/146464#M716906</guid>
      <dc:creator />
      <dc:date>2009-06-10T18:08:04Z</dc:date>
    </item>
    <item>
      <title>Dynamically change data source</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamically-change-data-source/m-p/146465#M716907</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Fantastic. That's just what I need. Thank you so much!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jun 2009 18:14:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamically-change-data-source/m-p/146465#M716907</guid>
      <dc:creator />
      <dc:date>2009-06-10T18:14:40Z</dc:date>
    </item>
    <item>
      <title>Dynamically change data source</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamically-change-data-source/m-p/146466#M716908</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I had a doubt here. From where will you pass the database name to connection string in the Edit script window?.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Raghu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jun 2009 18:51:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamically-change-data-source/m-p/146466#M716908</guid>
      <dc:creator />
      <dc:date>2009-06-10T18:51:39Z</dc:date>
    </item>
    <item>
      <title>Dynamically change data source</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamically-change-data-source/m-p/146467#M716909</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;a) you can allow the user to select the database by setting the variable in an inputbox (see attached example)&lt;/P&gt;&lt;P&gt;b) with the Publisher you may/may not want to do a repeat task to generate seperate .qvws for each database!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jun 2009 19:04:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamically-change-data-source/m-p/146467#M716909</guid>
      <dc:creator />
      <dc:date>2009-06-10T19:04:34Z</dc:date>
    </item>
    <item>
      <title>Dynamically change data source</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamically-change-data-source/m-p/146468#M716910</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks for your reply. Let me try with my application and get back to you if i find any problem.&lt;/P&gt;&lt;P&gt;-Raghu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jun 2009 19:42:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamically-change-data-source/m-p/146468#M716910</guid>
      <dc:creator />
      <dc:date>2009-06-10T19:42:37Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically change data source</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamically-change-data-source/m-p/146469#M716911</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;but it requires a reload after every selection. right?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jul 2014 11:24:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamically-change-data-source/m-p/146469#M716911</guid>
      <dc:creator />
      <dc:date>2014-07-10T11:24:58Z</dc:date>
    </item>
  </channel>
</rss>

