<?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 How to Load data from web when data table is at multiple pages in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-Load-data-from-web-when-data-table-is-at-multiple-pages/m-p/1273569#M849018</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All ,&lt;/P&gt;&lt;P&gt;How to load Election Result data from a website when the data table is scattered at multiple pages .&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Website : &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://eciresults.nic.in/StatewiseS24.htm" rel="nofollow" target="_blank"&gt;http://eciresults.nic.in/StatewiseS24.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data pattern&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="UP ELECTION DATA.PNG" class="jive-image image-1" src="/legacyfs/online/156037_UP ELECTION DATA.PNG" style="height: 362px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;My requirement is that my qvw app should load data one by one from the above web data table till it reaches&lt;/P&gt;&lt;P&gt;end . Here its 41th page .&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator>shekhar_analyti</dc:creator>
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>How to Load data from web when data table is at multiple pages</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Load-data-from-web-when-data-table-is-at-multiple-pages/m-p/1273569#M849018</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All ,&lt;/P&gt;&lt;P&gt;How to load Election Result data from a website when the data table is scattered at multiple pages .&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Website : &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://eciresults.nic.in/StatewiseS24.htm" rel="nofollow" target="_blank"&gt;http://eciresults.nic.in/StatewiseS24.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data pattern&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="UP ELECTION DATA.PNG" class="jive-image image-1" src="/legacyfs/online/156037_UP ELECTION DATA.PNG" style="height: 362px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;My requirement is that my qvw app should load data one by one from the above web data table till it reaches&lt;/P&gt;&lt;P&gt;end . Here its 41th page .&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Load-data-from-web-when-data-table-is-at-multiple-pages/m-p/1273569#M849018</guid>
      <dc:creator>shekhar_analyti</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to Load data from web when data table is at multiple pages</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Load-data-from-web-when-data-table-is-at-multiple-pages/m-p/1273570#M849020</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shekhar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In that web you have a URL parameter that identifies which partition of table shows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1 -&amp;gt; &lt;A href="http://eciresults.nic.in/StatewiseS24.htm" title="http://eciresults.nic.in/StatewiseS24.htm"&gt;http://eciresults.nic.in/StatewiseS24.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;2 -&amp;gt; &lt;A href="http://eciresults.nic.in/StatewiseS241.htm" title="http://eciresults.nic.in/StatewiseS241.htm"&gt;http://eciresults.nic.in/StatewiseS241.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;3 -&amp;gt; &lt;A href="http://eciresults.nic.in/StatewiseS242.htm" title="http://eciresults.nic.in/StatewiseS242.htm"&gt;http://eciresults.nic.in/StatewiseS242.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;4 -&amp;gt; &lt;A href="http://eciresults.nic.in/StatewiseS243.htm" title="http://eciresults.nic.in/StatewiseS243.htm"&gt;http://eciresults.nic.in/StatewiseS243.htm&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;5 -&amp;gt; &lt;A href="http://eciresults.nic.in/StatewiseS244.htm" title="http://eciresults.nic.in/StatewiseS244.htm"&gt;http://eciresults.nic.in/StatewiseS244.htm&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;....&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;40 -&amp;gt; &lt;A href="http://eciresults.nic.in/StatewiseS2439.htm" title="http://eciresults.nic.in/StatewiseS2439.htm"&gt;http://eciresults.nic.in/StatewiseS2439.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;41 -&amp;gt; &lt;A href="http://eciresults.nic.in/StatewiseS2440.htm" title="http://eciresults.nic.in/StatewiseS2440.htm"&gt;http://eciresults.nic.in/StatewiseS2440.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, we could consider a rule like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF page = 1 THEN 24 ELSE (240 + page - 1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;, and create a for loop like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FOR vsCounter = 1 TO 41&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; LET vsPage = If($(vsCounter) = 1, 24, 240 + $(vsCounter) - 1);&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; LET vsURL = '&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://eciresults.nic.in/StatewiseS" rel="nofollow" target="_blank"&gt;http://eciresults.nic.in/StatewiseS&lt;/A&gt;&lt;SPAN&gt;' &amp;amp; '$(vsPage)' &amp;amp; '.htm';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; LOAD @1 AS Constituency, &lt;/P&gt;&lt;P&gt;&amp;nbsp; @2 AS [Const. No.], &lt;/P&gt;&lt;P&gt;&amp;nbsp; @3 AS [Leading Candidate], &lt;/P&gt;&lt;P&gt;&amp;nbsp; @4 AS [Leading Party], &lt;/P&gt;&lt;P&gt;&amp;nbsp; @5 AS [Trailing Candidate], &lt;/P&gt;&lt;P&gt;&amp;nbsp; @6 AS [Trailing Party], &lt;/P&gt;&lt;P&gt;&amp;nbsp; @7 AS Margin, &lt;/P&gt;&lt;P&gt;&amp;nbsp; @8 AS Status&lt;/P&gt;&lt;P&gt;&amp;nbsp; FROM $(vsURL) (html, codepage is 1252, no labels, table is @7)&lt;/P&gt;&lt;P&gt;&amp;nbsp; WHERE Recno() &amp;gt; 4;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NEXT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think this should serve to you...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;H&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Mar 2017 15:36:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Load-data-from-web-when-data-table-is-at-multiple-pages/m-p/1273570#M849020</guid>
      <dc:creator>hector_munoz</dc:creator>
      <dc:date>2017-03-12T15:36:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to Load data from web when data table is at multiple pages</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Load-data-from-web-when-data-table-is-at-multiple-pages/m-p/1273571#M849021</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Hector ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for detailed information .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It will be great if you can help me with the approach of one more scenarios related with above :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) If the count of number pages changes daily . For example , current day its&amp;nbsp; &lt;/P&gt;&lt;P&gt;41 -&amp;gt; &lt;A class="jive-link-external-small" href="http://eciresults.nic.in/StatewiseS2440.htm" rel="nofollow" target="_blank"&gt;&lt;SPAN style="color: #3778c7;"&gt;http://eciresults.nic.in/StatewiseS2440.htm&lt;/SPAN&gt;&lt;/A&gt;&amp;nbsp; , but next day it increases by two to become 43 (&lt;A href="http://eciresults.nic.in/StatewiseS2442.htm"&gt;http://eciresults.nic.in/StatewiseS2442.htm&lt;/A&gt;) , and next day increase by 5 to become 48 (&lt;A href="http://eciresults.nic.in/StatewiseS2447.htm"&gt;http://eciresults.nic.in/StatewiseS2447.htm&lt;/A&gt; )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Shekhar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Mar 2017 07:59:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Load-data-from-web-when-data-table-is-at-multiple-pages/m-p/1273571#M849021</guid>
      <dc:creator>shekhar_analyti</dc:creator>
      <dc:date>2017-03-13T07:59:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to Load data from web when data table is at multiple pages</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Load-data-from-web-when-data-table-is-at-multiple-pages/m-p/1273572#M849022</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shekthar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use a trick that consists in read e.g. 100 pages and control reload breaks with ErrorMode variable:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;FOR vsCounter = 1 TO &lt;SPAN style="color: #ff6600;"&gt;100&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; LET vsPage = If($(vsCounter) = 1, 24, 240 + $(vsCounter) - 1);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;SPAN&gt;&amp;nbsp; LET vsURL = '&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://eciresults.nic.in/StatewiseS" rel="nofollow" target="_blank"&gt;http://eciresults.nic.in/StatewiseS&lt;/A&gt;&lt;SPAN&gt;' &amp;amp; '$(vsPage)' &amp;amp; '.htm';&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; &lt;SPAN style="color: #ff6600;"&gt;SET ErrorMode = 0;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; LOAD @1 AS Constituency, &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; @2 AS [Const. No.], &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; @3 AS [Leading Candidate], &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; @4 AS [Leading Party], &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; @5 AS [Trailing Candidate], &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; @6 AS [Trailing Party], &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; @7 AS Margin, &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; @8 AS Status&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; FROM $(vsURL) (html, codepage is 1252, no labels, table is @7)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; WHERE Recno() &amp;gt; 4;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; &lt;SPAN style="color: #ff6600;"&gt;SET ErrorMode = 1;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;NEXT&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the above example we try to read 100 pages. We disable reload break with ErrorMode = 0 begore we try to read the page of the iteration. After reading or trying to read it, web enable reload break again (ErrorMode = 1).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you try it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;H&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Mar 2017 09:20:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Load-data-from-web-when-data-table-is-at-multiple-pages/m-p/1273572#M849022</guid>
      <dc:creator>hector_munoz</dc:creator>
      <dc:date>2017-03-13T09:20:20Z</dc:date>
    </item>
  </channel>
</rss>

