<?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 URL connect in script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/URL-connect-in-script/m-p/306976#M707566</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hello everybody,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I need to connect to a QV server in the script and make it throw a script error if the connection can't be established. I tried to do the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET ErroreMode = 0;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;CONNECT to '[&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://servername/qlikview/index.htm';"&gt;http://servername/qlikview/index.htm';&lt;/A&gt;&lt;SPAN&gt; | &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://servername/qlikview/index.htm';"&gt;http://servername/qlikview/index.htm';&lt;/A&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if ScriptError &amp;gt; 1 then&lt;BR /&gt; SET ErrorMode = 1;&lt;BR /&gt; SET vURL = False&lt;BR /&gt; exit script;&lt;BR /&gt;end if&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET ErroreMode = 1;&lt;BR /&gt;SET vURL=True;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically, all I need is to know, if the server is available and set the variable accordingly. The topic has already been discussed, but I can't get it working for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thank you for any advice,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Christian&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Feb 2012 09:06:05 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-02-22T09:06:05Z</dc:date>
    <item>
      <title>URL connect in script</title>
      <link>https://community.qlik.com/t5/QlikView/URL-connect-in-script/m-p/306976#M707566</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hello everybody,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I need to connect to a QV server in the script and make it throw a script error if the connection can't be established. I tried to do the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET ErroreMode = 0;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;CONNECT to '[&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://servername/qlikview/index.htm';"&gt;http://servername/qlikview/index.htm';&lt;/A&gt;&lt;SPAN&gt; | &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://servername/qlikview/index.htm';"&gt;http://servername/qlikview/index.htm';&lt;/A&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if ScriptError &amp;gt; 1 then&lt;BR /&gt; SET ErrorMode = 1;&lt;BR /&gt; SET vURL = False&lt;BR /&gt; exit script;&lt;BR /&gt;end if&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET ErroreMode = 1;&lt;BR /&gt;SET vURL=True;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically, all I need is to know, if the server is available and set the variable accordingly. The topic has already been discussed, but I can't get it working for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thank you for any advice,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Christian&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Feb 2012 09:06:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/URL-connect-in-script/m-p/306976#M707566</guid>
      <dc:creator />
      <dc:date>2012-02-22T09:06:05Z</dc:date>
    </item>
    <item>
      <title>URL connect in script</title>
      <link>https://community.qlik.com/t5/QlikView/URL-connect-in-script/m-p/306977#M707567</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would pinging the server help?&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/message/80817#80817"&gt;http://community.qlik.com/message/80817#80817&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could also turn that to a function and check. Like done here: &lt;A _jive_internal="true" href="https://community.qlik.com/message/194528#194528"&gt;http://community.qlik.com/message/194528#194528&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Otherwise, you could load something from your web page. You can generate load script using "Web File" load button in the script editor.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Feb 2012 22:33:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/URL-connect-in-script/m-p/306977#M707567</guid>
      <dc:creator>disqr_rm</dc:creator>
      <dc:date>2012-02-22T22:33:42Z</dc:date>
    </item>
    <item>
      <title>URL connect in script</title>
      <link>https://community.qlik.com/t5/QlikView/URL-connect-in-script/m-p/306978#M707568</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rakesh,&lt;/P&gt;&lt;P&gt;I did the latter and it worked for me. Thanks for your advice.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Feb 2012 07:53:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/URL-connect-in-script/m-p/306978#M707568</guid>
      <dc:creator />
      <dc:date>2012-02-23T07:53:00Z</dc:date>
    </item>
    <item>
      <title>URL connect in script</title>
      <link>https://community.qlik.com/t5/QlikView/URL-connect-in-script/m-p/306979#M707569</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Great! Glad I could help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Possible you could please put steps here what you did to resolve? I see this question pops-up here many times. Community will surely appreciate your efforts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Feb 2012 12:40:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/URL-connect-in-script/m-p/306979#M707569</guid>
      <dc:creator>disqr_rm</dc:creator>
      <dc:date>2012-02-23T12:40:22Z</dc:date>
    </item>
    <item>
      <title>URL connect in script</title>
      <link>https://community.qlik.com/t5/QlikView/URL-connect-in-script/m-p/306980#M707570</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Below is the code I use now. A field from the page is loaded and dropped again at the end of the script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set ErrorMode=0; &lt;/P&gt;&lt;P&gt;LOAD F1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;FROM&lt;BR /&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://servername/qlikview/index.htm"&gt;http://servername/qlikview/index.htm&lt;/A&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;&lt;BR /&gt;(html, codepage is 1252, embedded labels, table is @1);&lt;/P&gt;&lt;P&gt;if ScriptError &amp;gt; 1 then &lt;/P&gt;&lt;P&gt; DROP Field F1;&lt;/P&gt;&lt;P&gt; SET ErrorMode = 1;&lt;BR /&gt; SET vURL = False;&lt;BR /&gt; exit script;&lt;BR /&gt;end if&lt;/P&gt;&lt;P&gt;DROP Field F1;&lt;BR /&gt;SET ErrorMode = 1;&lt;BR /&gt;SET vURL = True;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Feb 2012 14:25:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/URL-connect-in-script/m-p/306980#M707570</guid>
      <dc:creator />
      <dc:date>2012-02-23T14:25:55Z</dc:date>
    </item>
    <item>
      <title>URL connect in script</title>
      <link>https://community.qlik.com/t5/QlikView/URL-connect-in-script/m-p/306981#M707571</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Feb 2012 14:26:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/URL-connect-in-script/m-p/306981#M707571</guid>
      <dc:creator>disqr_rm</dc:creator>
      <dc:date>2012-02-23T14:26:53Z</dc:date>
    </item>
  </channel>
</rss>

