<?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 Loadscript to connect to 40+ separate ODBC connections (Loop and on at a time) in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Loadscript-to-connect-to-40-separate-ODBC-connections-Loop-and/m-p/221437#M712649</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Take a look at my answer here:&lt;/P&gt;&lt;P&gt;&lt;A href="http://community.qlik.com/forums/t/44015.aspx"&gt;http://community.qlik.com/forums/t/44015.aspx&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Should give you an idea of how you can store the connection strings externally and then use a variable or a selection to decide the connection string.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Apr 2011 09:02:06 GMT</pubDate>
    <dc:creator>nathanfurby</dc:creator>
    <dc:date>2011-04-19T09:02:06Z</dc:date>
    <item>
      <title>Loadscript to connect to 40+ separate ODBC connections (Loop and on at a time)</title>
      <link>https://community.qlik.com/t5/QlikView/Loadscript-to-connect-to-40-separate-ODBC-connections-Loop-and/m-p/221434#M712646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I connect to about 40 different databases by ODBC.&lt;/P&gt;&lt;P&gt;I use an Input box in my LOAD-script to set a variable with the correct number for each company but with 40 companies and more companies coming in I'm starting to have trouble to keep track of which company have the right number. Today the code looks like the one below and every new company gets a new ELSEIF.&lt;/P&gt;&lt;P style="font-weight: bold"&gt;[CODE]&lt;/P&gt;&lt;P&gt;&lt;B&gt;LET&lt;/B&gt; &lt;B&gt;&lt;I&gt;vCompanynumber&lt;/I&gt;&lt;/B&gt; = input(' Companynumber: ', ' Company ');&lt;/P&gt;&lt;P&gt;&lt;B&gt;IF&lt;/B&gt; &lt;B&gt;&lt;I&gt;$(vCompanynumber)&lt;/I&gt;&lt;/B&gt;=01 THEN&lt;/P&gt;&lt;P&gt;ODBC &lt;B&gt;CONNECT&lt;/B&gt; TO [Company 1] (XUserId is cFVKFRBGQJMEWcdMHLAA, XPassword is ADBDIRFMOLYcWYIGIG);&lt;/P&gt;&lt;P&gt;&lt;B&gt;ELSEIF&lt;/B&gt; &lt;B&gt;&lt;I&gt;$(vCompanynumber)&lt;/I&gt;&lt;/B&gt;=02 THEN&lt;/P&gt;&lt;P&gt;ODBC &lt;B&gt;CONNECT&lt;/B&gt; TO [Company 2] (XUserId is SQfTFRBGRZNEWcdMHDDA, XPassword is YJUMNRFMOLYcWYIGCG);&lt;/P&gt;&lt;P&gt;&lt;B&gt;ENDIF&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;[/CODE]&lt;/B&gt; &lt;B&gt;&lt;BR /&gt;&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need help with 2 things:&lt;/P&gt;&lt;P&gt;1. I would like to get a dropdown-list or something with each company number and name (I would prefer ODBC Connection name but it's not necessary) and with an easy click to start the loading. I only load data from one company each time with this application.&lt;/P&gt;&lt;P&gt;2. For my second application I would like to load every company's settings and compare them. So I need a loop through all of the connections above.&lt;/P&gt;&lt;P&gt;Note: I'm maybe over my head here because I have learned everything I know from programming in this forum the last 3 years so I would prefer some explanations if you post code here. [:)]&lt;/P&gt;&lt;P&gt;Please help me.&lt;/P&gt;&lt;P&gt;/Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Apr 2011 07:27:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loadscript-to-connect-to-40-separate-ODBC-connections-Loop-and/m-p/221434#M712646</guid>
      <dc:creator />
      <dc:date>2011-04-19T07:27:10Z</dc:date>
    </item>
    <item>
      <title>Loadscript to connect to 40+ separate ODBC connections (Loop and on at a time)</title>
      <link>https://community.qlik.com/t5/QlikView/Loadscript-to-connect-to-40-separate-ODBC-connections-Loop-and/m-p/221435#M712647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;instead of using if else you can use switch case .&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Apr 2011 07:36:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loadscript-to-connect-to-40-separate-ODBC-connections-Loop-and/m-p/221435#M712647</guid>
      <dc:creator>sushil353</dc:creator>
      <dc:date>2011-04-19T07:36:29Z</dc:date>
    </item>
    <item>
      <title>SV:Re: Loadscript to connect to 40+ separate ODBC connections (Loop and on at a time)</title>
      <link>https://community.qlik.com/t5/QlikView/Loadscript-to-connect-to-40-separate-ODBC-connections-Loop-and/m-p/221436#M712648</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;Sushil wrote:&lt;BR /&gt;hi&lt;BR /&gt;instead of using if else you can use switch case .&lt;BR /&gt;HTH&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;Example plz?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Apr 2011 08:15:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loadscript-to-connect-to-40-separate-ODBC-connections-Loop-and/m-p/221436#M712648</guid>
      <dc:creator />
      <dc:date>2011-04-19T08:15:58Z</dc:date>
    </item>
    <item>
      <title>Loadscript to connect to 40+ separate ODBC connections (Loop and on at a time)</title>
      <link>https://community.qlik.com/t5/QlikView/Loadscript-to-connect-to-40-separate-ODBC-connections-Loop-and/m-p/221437#M712649</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Take a look at my answer here:&lt;/P&gt;&lt;P&gt;&lt;A href="http://community.qlik.com/forums/t/44015.aspx"&gt;http://community.qlik.com/forums/t/44015.aspx&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Should give you an idea of how you can store the connection strings externally and then use a variable or a selection to decide the connection string.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Apr 2011 09:02:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loadscript-to-connect-to-40-separate-ODBC-connections-Loop-and/m-p/221437#M712649</guid>
      <dc:creator>nathanfurby</dc:creator>
      <dc:date>2011-04-19T09:02:06Z</dc:date>
    </item>
    <item>
      <title>SV:Re: Loadscript to connect to 40+ separate ODBC connections (Loop and on at a time)</title>
      <link>https://community.qlik.com/t5/QlikView/Loadscript-to-connect-to-40-separate-ODBC-connections-Loop-and/m-p/221438#M712650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But that dosent fix that I have to write the companynumber without a separate note on my desk with company name and number??&lt;/P&gt;&lt;P&gt;I want to select from a list that shows med the company number and name when I reload my application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Apr 2011 09:46:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loadscript-to-connect-to-40-separate-ODBC-connections-Loop-and/m-p/221438#M712650</guid>
      <dc:creator />
      <dc:date>2011-04-19T09:46:34Z</dc:date>
    </item>
    <item>
      <title>SV:Re: Loadscript to connect to 40+ separate ODBC connections (Loop and on at a time)</title>
      <link>https://community.qlik.com/t5/QlikView/Loadscript-to-connect-to-40-separate-ODBC-connections-Loop-and/m-p/221439#M712651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't understand. You write the connection string, company name and company number into an Excel file. You only have to do this once. Then load it into the QV doc and use it in a list for selecting reload. You may need to link the selection to a variable to then use in the load script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Apr 2011 09:56:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loadscript-to-connect-to-40-separate-ODBC-connections-Loop-and/m-p/221439#M712651</guid>
      <dc:creator>nathanfurby</dc:creator>
      <dc:date>2011-04-19T09:56:21Z</dc:date>
    </item>
    <item>
      <title>SV:Re: SV:Re: Loadscript to connect to 40+ separate ODBC connections (Loop and on at a time)</title>
      <link>https://community.qlik.com/t5/QlikView/Loadscript-to-connect-to-40-separate-ODBC-connections-Loop-and/m-p/221440#M712652</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Normal 0 21 false false false SV X-NONE X-NONE&lt;/P&gt;Normal 0 21 false false false SV X-NONE X-NONE &lt;P style="margin-bottom:0.0001pt;line-height:normal;"&gt;I understand your solution. I tried it but how do I get a selection before I load my application? In your post you write: "could then change this via Input Box etc. and even think of a clever way to link the connection number from the Connections table to the variable" but I don't want an inputbox (Not like the one in my own script anyway) . I want to see all possible selections and select witch company data I want to load in my application.&lt;/P&gt;&lt;P style="margin-bottom:0.0001pt;line-height:normal;"&gt;&lt;/P&gt;&lt;P&gt;Let's say I'm not clever and show me an example of the code…. &lt;IMG alt="Big Smile" src="http://community.qlik.com/emoticons/emotion-2.gif" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Apr 2011 06:24:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loadscript-to-connect-to-40-separate-ODBC-connections-Loop-and/m-p/221440#M712652</guid>
      <dc:creator />
      <dc:date>2011-04-20T06:24:45Z</dc:date>
    </item>
    <item>
      <title>SV:Re: SV:Re: Loadscript to connect to 40+ separate ODBC connections (Loop and on at a time)</title>
      <link>https://community.qlik.com/t5/QlikView/Loadscript-to-connect-to-40-separate-ODBC-connections-Loop-and/m-p/221441#M712655</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;LillaJag1975 wrote:I want to see all possible selections and select witch company data I want to load in my application.&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;How are you going to 'Select' which company data you want to load?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Apr 2011 10:04:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loadscript-to-connect-to-40-separate-ODBC-connections-Loop-and/m-p/221441#M712655</guid>
      <dc:creator>nathanfurby</dc:creator>
      <dc:date>2011-04-20T10:04:25Z</dc:date>
    </item>
  </channel>
</rss>

