<?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 Re: CONNECTs other than LIB CONNECT are not available in this script mode in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/CONNECTs-other-than-LIB-CONNECT-are-not-available-in-this-script/m-p/836559#M2817</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you'll have to create connections for each environment and choose the one you need. Maybe something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #444444; font-family: 'Lucida Console', Monaco, monospace; font-size: 11px;"&gt;LET vEnv = 'Test'; //Choose from Dev, Test, Uat, Prod&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #444444; font-family: 'Lucida Console', Monaco, monospace; font-size: 11px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #444444; font-family: 'Lucida Console', Monaco, monospace; font-size: 11px;"&gt;LIB CONNECT 'MyODBC_DB_$(vEnv)' ;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 11 May 2015 16:10:57 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2015-05-11T16:10:57Z</dc:date>
    <item>
      <title>CONNECTs other than LIB CONNECT are not available in this script mode</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/CONNECTs-other-than-LIB-CONNECT-are-not-available-in-this-script/m-p/836556#M2814</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;I am trying to dynamically load ODBC Connection string through xml file (custom config file ) in&amp;nbsp; Qlik Sense Desktop 1.1&amp;nbsp; as below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vFolderPath = 'lib://ReportsFilePath/';&lt;/P&gt;&lt;P&gt;LOAD key, value&lt;BR /&gt;FROM $(vFolderPath)AppConfig.xml (XmlSimple, Table is [qsConfiguration/qsElement])&lt;BR /&gt;WHERE key = 'ConnString';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vConnString = peek('value');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ODBC Connect to $(vConnString);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I receive following error on last line as:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONNECTs other than LIB CONNECT are not available in this script mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please help?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greeshma&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 May 2015 15:27:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/CONNECTs-other-than-LIB-CONNECT-are-not-available-in-this-script/m-p/836556#M2814</guid>
      <dc:creator />
      <dc:date>2015-05-11T15:27:31Z</dc:date>
    </item>
    <item>
      <title>Re: CONNECTs other than LIB CONNECT are not available in this script mode</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/CONNECTs-other-than-LIB-CONNECT-are-not-available-in-this-script/m-p/836557#M2815</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have to define your ODBC connections first. Click on the Add Connection button in the Data Load Editor and choose ODBC from the standard connectors. Fill in the Create new connection (ODBC) form and save it. Then you can use this kind of connect statement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;LIB CONNECT TO&lt;/EM&gt;&lt;/STRONG&gt; 'AdventureWorksDW2014_ODBC';&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 May 2015 15:41:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/CONNECTs-other-than-LIB-CONNECT-are-not-available-in-this-script/m-p/836557#M2815</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-05-11T15:41:56Z</dc:date>
    </item>
    <item>
      <title>Re: CONNECTs other than LIB CONNECT are not available in this script mode</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/CONNECTs-other-than-LIB-CONNECT-are-not-available-in-this-script/m-p/836558#M2816</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I instead wish to load connection string from a config file. In my example above,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vConnString= " Provider=****;User Id=****; Password=****;Persist Security Info=****;Data Source=**** "&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am able to successfully connect using ODBC Connections defined under Data Connections. However, my intention is to load connection strings dynamically so that it could be run for different environment without any modifications to the data model script.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 May 2015 15:57:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/CONNECTs-other-than-LIB-CONNECT-are-not-available-in-this-script/m-p/836558#M2816</guid>
      <dc:creator />
      <dc:date>2015-05-11T15:57:49Z</dc:date>
    </item>
    <item>
      <title>Re: CONNECTs other than LIB CONNECT are not available in this script mode</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/CONNECTs-other-than-LIB-CONNECT-are-not-available-in-this-script/m-p/836559#M2817</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you'll have to create connections for each environment and choose the one you need. Maybe something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #444444; font-family: 'Lucida Console', Monaco, monospace; font-size: 11px;"&gt;LET vEnv = 'Test'; //Choose from Dev, Test, Uat, Prod&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #444444; font-family: 'Lucida Console', Monaco, monospace; font-size: 11px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #444444; font-family: 'Lucida Console', Monaco, monospace; font-size: 11px;"&gt;LIB CONNECT 'MyODBC_DB_$(vEnv)' ;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 May 2015 16:10:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/CONNECTs-other-than-LIB-CONNECT-are-not-available-in-this-script/m-p/836559#M2817</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-05-11T16:10:57Z</dc:date>
    </item>
    <item>
      <title>Re: CONNECTs other than LIB CONNECT are not available in this script mode</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/CONNECTs-other-than-LIB-CONNECT-are-not-available-in-this-script/m-p/836560#M2818</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yup. That's one solution. That's how I am doing it now.&amp;nbsp; However, that hides connection information at run time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any specific file I can look at to see how connection is defined within Data Connections? Please let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 May 2015 16:15:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/CONNECTs-other-than-LIB-CONNECT-are-not-available-in-this-script/m-p/836560#M2818</guid>
      <dc:creator />
      <dc:date>2015-05-11T16:15:11Z</dc:date>
    </item>
    <item>
      <title>Re: CONNECTs other than LIB CONNECT are not available in this script mode</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/CONNECTs-other-than-LIB-CONNECT-are-not-available-in-this-script/m-p/836561#M2819</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could also use the same variable to load a file with connection information into another variable (or a table) for display in the front end.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My guess is that the data connection definitions will be stored in the qvf file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 May 2015 16:25:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/CONNECTs-other-than-LIB-CONNECT-are-not-available-in-this-script/m-p/836561#M2819</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-05-11T16:25:00Z</dc:date>
    </item>
    <item>
      <title>Re: CONNECTs other than LIB CONNECT are not available in this script mode</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/CONNECTs-other-than-LIB-CONNECT-are-not-available-in-this-script/m-p/836562#M2820</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Couple things: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can actually run the load editor in legacy mode which will forego using the data connections that you define. In legacy mode the entire script runs as it would in QlikView. I'm not sure i recommend this but its possible. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you import the QVF app into Qlik Sense server, unless there are connections of the same name already on the server, the server will add them into the QMC.&amp;nbsp; You can edit the connection from the QMC and see the full connect string.&amp;nbsp; I don't believe you can use variables here however. I tried some testing (set a variable in the load editor) and reference the variable in the connect string of the data connection used in the load script... but was not successful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 May 2015 17:34:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/CONNECTs-other-than-LIB-CONNECT-are-not-available-in-this-script/m-p/836562#M2820</guid>
      <dc:creator>JonnyPoole</dc:creator>
      <dc:date>2015-05-12T17:34:24Z</dc:date>
    </item>
    <item>
      <title>Re: CONNECTs other than LIB CONNECT are not available in this script mode</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/CONNECTs-other-than-LIB-CONNECT-are-not-available-in-this-script/m-p/836563#M2821</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But you can make your Server to load data in legacy mode too but &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px; background-color: #f5faf0;"&gt;you won't be able to manage the connection strings in QMC anymore.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Dec 2016 12:24:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/CONNECTs-other-than-LIB-CONNECT-are-not-available-in-this-script/m-p/836563#M2821</guid>
      <dc:creator>ikomlyakov1929</dc:creator>
      <dc:date>2016-12-01T12:24:31Z</dc:date>
    </item>
  </channel>
</rss>

