<?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 Validate a url in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Validate-a-url/m-p/284936#M708688</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Robert, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am also new to Qlikview and have similar situation.&amp;nbsp; Where can I find PingSite script that will work in Qlikview script? Or maybe I need references on how to include the PingSite VBScript from Qlikview document. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Stanley &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 Apr 2012 16:44:34 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-04-04T16:44:34Z</dc:date>
    <item>
      <title>Validate a url</title>
      <link>https://community.qlik.com/t5/QlikView/Validate-a-url/m-p/284930#M708682</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0cm 0cm 10pt;"&gt;&lt;SPAN style="color: #000000; font-size: 12pt; mso-ansi-language: EN-US; font-family: Calibri;"&gt;Hi&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 12pt; mso-ansi-language: EN-US; font-family: Calibri;"&gt;I have a Qlikview application that contains a list of http:\\ ... "URLS". Each URL is expected to link to an image or a PDF document, but sometimes the links are "invalid", the picture or document can have been removed, the web server can be offline, or the link is not spelled correctly etc.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0cm 0cm 10pt;"&gt;&lt;SPAN style="color: #000000; font-size: 12pt; mso-ansi-language: EN-US; font-family: Calibri;"&gt;I need to add a quality control in my Qlikview document and let the Qlikview users know if the links are ok and give statistics on how many links are unavailable etc.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 12pt; mso-ansi-language: EN-US; font-family: Calibri;"&gt;Is it possible to let Qlikview do this check somehow for me, perhaps with the help of a macro -&lt;SPAN style="mso-spacerun: yes;"&gt; &lt;/SPAN&gt;triggered by a macro button or do you think this has&lt;SPAN style="mso-spacerun: yes;"&gt; &lt;/SPAN&gt;to be done before the load script with a external application (if so, can anyone recommend a software for this....?)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0cm 0cm 10pt;"&gt;&lt;SPAN style="color: #000000; font-size: 12pt; mso-ansi-language: EN-US; font-family: Calibri;"&gt;The links are supplied to me by a ordinary text file.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 12pt; mso-ansi-language: EN-US; font-family: Calibri;"&gt;Any hints and tips that guide me in the right direction is appreciated!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0cm 0cm 10pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;Best Regards, Robert Svebeck&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0cm 0cm 10pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;Robert Svebeck&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Oct 2011 13:00:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Validate-a-url/m-p/284930#M708682</guid>
      <dc:creator>RSvebeck</dc:creator>
      <dc:date>2011-10-31T13:00:50Z</dc:date>
    </item>
    <item>
      <title>Validate a url</title>
      <link>https://community.qlik.com/t5/QlikView/Validate-a-url/m-p/284931#M708683</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Robert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you could use VBScript macro code like this:&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://www.robvanderwoude.com/vbstech_internet_website.php"&gt;http://www.robvanderwoude.com/vbstech_internet_website.php&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not sure what's best, checking within your application or beforehand, IMHO it's depending on what your want to do with this information.&lt;/P&gt;&lt;P&gt;For example ,you could use above code snippet in a macro called from your script and then stop execution and alert the administrator, maybe.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway, hope this helps,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Oct 2011 13:30:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Validate-a-url/m-p/284931#M708683</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-10-31T13:30:17Z</dc:date>
    </item>
    <item>
      <title>Validate a url</title>
      <link>https://community.qlik.com/t5/QlikView/Validate-a-url/m-p/284932#M708684</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi Robert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just using the Function part of the script in Stefan's link, this can be called in the load script as follows ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WebSite:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; website&lt;BR /&gt; &lt;A href="http://www.cncncbvnvb.com"&gt;www.cncncbvnvb.com&lt;/A&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;A href="http://www.bbc.co.uk"&gt;www.bbc.co.uk&lt;/A&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;A href="http://www.sky.com"&gt;www.sky.com&lt;/A&gt;&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Tmp=NoOfRows('WebSite');&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;For i = 1 to $(Tmp)&lt;/P&gt;&lt;P&gt;url=FieldValue('website',$(i))&lt;/P&gt;&lt;P&gt;vb_in=PingSite(url)&lt;/P&gt;&lt;P&gt;If vb_in &amp;lt;&amp;gt; 0 then&lt;BR /&gt; JOIN (WebSite)&lt;BR /&gt; LOAD website, 'Valid' as validURL resident WebSite where website='$(url)' ;&lt;BR /&gt;ELSE&lt;BR /&gt; JOIN (WebSite)&lt;BR /&gt; LOAD website, 'Broken' as validURL resident WebSite where website='$(url)' ;&lt;BR /&gt;ENDIF;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Next i;&lt;/P&gt;&lt;P&gt;// Loop creates some nulls which need clearing out&lt;BR /&gt;tmp: NOCONCATENATE LOAD DISTINCT * resident WebSite where Match(validURL,'Valid','Broken') &amp;gt; 0;&lt;/P&gt;&lt;P&gt;DROP TABLE WebSite;&lt;BR /&gt;RENAME TABLE tmp to WebSite;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;flipside&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Oct 2011 14:58:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Validate-a-url/m-p/284932#M708684</guid>
      <dc:creator>flipside</dc:creator>
      <dc:date>2011-10-31T14:58:46Z</dc:date>
    </item>
    <item>
      <title>Validate a url</title>
      <link>https://community.qlik.com/t5/QlikView/Validate-a-url/m-p/284933#M708685</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi&lt;/P&gt;&lt;P&gt;Thanks for your support gyus.&lt;/P&gt;&lt;P&gt;The solution you both provided works for verifying that the domain is valid or not, but it doesn't work for my image urls.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;The links are as I wrote links to either documents or images, often the link is a url like this:&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://www.example.com/cgi-bin/lank.dll/lev?customer=7771&amp;amp;item=534358"&gt;http://www.example.com/cgi-bin/lank.dll/lev?customer=7771&amp;amp;item=534358&lt;/A&gt;&lt;/P&gt;&lt;P&gt;That is - it's a database request-url "post", and the result is a "redirect" to a new url with a "real" imagelink.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Best Regards&lt;/P&gt;&lt;P&gt;Robert Svebeck&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Nov 2011 10:27:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Validate-a-url/m-p/284933#M708685</guid>
      <dc:creator>RSvebeck</dc:creator>
      <dc:date>2011-11-02T10:27:35Z</dc:date>
    </item>
    <item>
      <title>Validate a url</title>
      <link>https://community.qlik.com/t5/QlikView/Validate-a-url/m-p/284934#M708686</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Robert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so you get a lot of 'broken' results though the link is valid?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The referenced code snippet only checks for html return code = 200 (OK), if a redirect is returned, you get html return codes in the 3xx range. Maybe it's just enough then to change the check in the macro code from equal 200 to &amp;lt; 400. Give it a try. &lt;/P&gt;&lt;P&gt;And/ or you may try to debug into the code and have a look what's returned in your real environment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Nov 2011 12:58:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Validate-a-url/m-p/284934#M708686</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-11-02T12:58:05Z</dc:date>
    </item>
    <item>
      <title>Validate a url</title>
      <link>https://community.qlik.com/t5/QlikView/Validate-a-url/m-p/284935#M708687</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi again,&lt;/P&gt;&lt;P&gt;I tested my document from home and here it works great, so the problem is that I have to handle the proxy servers at work....&lt;/P&gt;&lt;P&gt;So now I have to figure out how to setup WinHTTP with proxy support.&lt;/P&gt;&lt;P&gt;I have seen the function SetProxy for the WinHTTP object, &lt;/P&gt;&lt;P&gt;But I don't get it to work, I think our proxy also requires a login, but I am not sure yet.&lt;/P&gt;&lt;P&gt;Anyway, the solution works when I'm not inside the office... Thanks again for all help!&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Btw:&lt;/P&gt;&lt;P&gt;I rewrote the load script like this:&lt;/P&gt;&lt;P&gt; LOAD @1 as Link, PingSite(@1) as status&lt;BR /&gt; FROM welinks_source.txt (txt, codepage is 1252, no labels, delimiter is '\t', msq);&lt;/P&gt;&lt;P&gt;Skipping the For Next Join part completely, and instead having the function "PingSite" handle more of what to give back to the load script, makes the script more simple to read.&lt;/P&gt;&lt;P&gt;I was not aware that it was possible to write functions to be used in the load script. This functionality is superb, gives me a lot of ideas how to solve other challenges!&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Robert Svebeck&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Nov 2011 08:28:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Validate-a-url/m-p/284935#M708687</guid>
      <dc:creator>RSvebeck</dc:creator>
      <dc:date>2011-11-03T08:28:42Z</dc:date>
    </item>
    <item>
      <title>Validate a url</title>
      <link>https://community.qlik.com/t5/QlikView/Validate-a-url/m-p/284936#M708688</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Robert, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am also new to Qlikview and have similar situation.&amp;nbsp; Where can I find PingSite script that will work in Qlikview script? Or maybe I need references on how to include the PingSite VBScript from Qlikview document. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Stanley &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2012 16:44:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Validate-a-url/m-p/284936#M708688</guid>
      <dc:creator />
      <dc:date>2012-04-04T16:44:34Z</dc:date>
    </item>
    <item>
      <title>Re: Validate a url</title>
      <link>https://community.qlik.com/t5/QlikView/Validate-a-url/m-p/284937#M708689</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi Stanley, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will happily share my final solution to you.See attached document.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2012 09:58:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Validate-a-url/m-p/284937#M708689</guid>
      <dc:creator>RSvebeck</dc:creator>
      <dc:date>2012-04-05T09:58:00Z</dc:date>
    </item>
  </channel>
</rss>

