<?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 Dynamic Load all Tables from Web File in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Dynamic-Load-all-Tables-from-Web-File/m-p/29139#M4855</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've got a web file that I need to load certain tables from. So the first thing I need to do is load Row 1 of Field @1 from ALL tables. I've written a little Loop script. In the attached example is 24 tables but in some files I'll have more or less tables so I want to set this as a variable for the last table number. Any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal, monaco;"&gt;For vTableNo = 1 to &lt;STRONG&gt;24&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal, monaco;"&gt;TABLES:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal, monaco;"&gt;LOAD @1 as TableType,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal, monaco;"&gt;$(vTableNo) as TableNo&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal, monaco;"&gt;FROM&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal, monaco;"&gt;TandE_Reviewer_029229G_25_05_2018.html&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal, monaco;"&gt;(html, codepage is 1252, no labels, table is @$(vTableNo))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal, monaco;"&gt;Where RecNo()=1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal, monaco;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal, monaco;"&gt;Next vTableNo&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 May 2018 07:37:52 GMT</pubDate>
    <dc:creator>shane_spencer</dc:creator>
    <dc:date>2018-05-30T07:37:52Z</dc:date>
    <item>
      <title>Dynamic Load all Tables from Web File</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-Load-all-Tables-from-Web-File/m-p/29139#M4855</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've got a web file that I need to load certain tables from. So the first thing I need to do is load Row 1 of Field @1 from ALL tables. I've written a little Loop script. In the attached example is 24 tables but in some files I'll have more or less tables so I want to set this as a variable for the last table number. Any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal, monaco;"&gt;For vTableNo = 1 to &lt;STRONG&gt;24&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal, monaco;"&gt;TABLES:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal, monaco;"&gt;LOAD @1 as TableType,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal, monaco;"&gt;$(vTableNo) as TableNo&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal, monaco;"&gt;FROM&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal, monaco;"&gt;TandE_Reviewer_029229G_25_05_2018.html&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal, monaco;"&gt;(html, codepage is 1252, no labels, table is @$(vTableNo))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal, monaco;"&gt;Where RecNo()=1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal, monaco;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal, monaco;"&gt;Next vTableNo&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 May 2018 07:37:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-Load-all-Tables-from-Web-File/m-p/29139#M4855</guid>
      <dc:creator>shane_spencer</dc:creator>
      <dc:date>2018-05-30T07:37:52Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Load all Tables from Web File</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-Load-all-Tables-from-Web-File/m-p/29140#M4856</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shane,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a look at the attached file. I believe this should work ( XML loading have all the table details and I am using one of the field to get the table count) for all the files. Just to make sure kindly test all your files and let me know if you face any issues.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 May 2018 08:53:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-Load-all-Tables-from-Web-File/m-p/29140#M4856</guid>
      <dc:creator>tamilarasu</dc:creator>
      <dc:date>2018-05-30T08:53:27Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Load all Tables from Web File</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-Load-all-Tables-from-Web-File/m-p/29141#M4857</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks. I've only got one web file myself to test with so will have to check when I get more. My other alternative is to use error trapping i.e.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;//load row 1, field 1 of all possible tables&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;ErrorMode=0 &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;For vTableNo = 1 to 100000&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;TABLES:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD @1 as TableType,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;$(vTableNo) as TableNo&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;FROM&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;TandE_Reviewer_029229G_25_05_2018.html&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;(html, codepage is 1252, no labels, table is @$(vTableNo))&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Where RecNo()=1&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;//If table not found exit loop&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;If ScriptError=10 then&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Exit For&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;End If&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Next vTableNo&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;ErrorMode=1&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 May 2018 09:02:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-Load-all-Tables-from-Web-File/m-p/29141#M4857</guid>
      <dc:creator>shane_spencer</dc:creator>
      <dc:date>2018-05-30T09:02:57Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Load all Tables from Web File</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-Load-all-Tables-from-Web-File/m-p/29142#M4858</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That is also good option &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;. But I don;t think you will have 1 lakh tables in single html file &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 May 2018 10:33:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-Load-all-Tables-from-Web-File/m-p/29142#M4858</guid>
      <dc:creator>tamilarasu</dc:creator>
      <dc:date>2018-05-30T10:33:30Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Load all Tables from Web File</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-Load-all-Tables-from-Web-File/m-p/29143#M4859</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Haan yaar, I decided to go high rather than too low. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 May 2018 12:17:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-Load-all-Tables-from-Web-File/m-p/29143#M4859</guid>
      <dc:creator>shane_spencer</dc:creator>
      <dc:date>2018-05-30T12:17:50Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Load all Tables from Web File</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-Load-all-Tables-from-Web-File/m-p/29144#M4860</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Shane -Agree, I was simply saying &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;. Do you speak Hindi? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 May 2018 03:07:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-Load-all-Tables-from-Web-File/m-p/29144#M4860</guid>
      <dc:creator>tamilarasu</dc:creator>
      <dc:date>2018-05-31T03:07:42Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Load all Tables from Web File</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-Load-all-Tables-from-Web-File/m-p/29145#M4861</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Only a few phrases I picked up from colleagues. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/grin.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 May 2018 09:11:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-Load-all-Tables-from-Web-File/m-p/29145#M4861</guid>
      <dc:creator>shane_spencer</dc:creator>
      <dc:date>2018-05-31T09:11:06Z</dc:date>
    </item>
  </channel>
</rss>

