<?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: Use second row as header and delete first row in Connectivity &amp; Data Prep</title>
    <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Use-second-row-as-header-and-delete-first-row/m-p/996131#M1455</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.qlik.com/qlik-users/182774"&gt;henkewillemsen&lt;/A&gt;‌! I came across the same situation and extended your initial solution a bit, combining it with a suggestion from &lt;A href="https://community.qlik.com/qlik-blogpost/4301"&gt;Creating a Table of all Field Names&lt;/A&gt;. This way you don't have to create the aliases manually.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My approach looks like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #808080; font-size: 8pt; font-family: 'courier new', courier;"&gt;//load the table from the web page, except the unwanted first row&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #666699; font-size: 8pt; font-family: 'courier new', courier;"&gt;tmpTable:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #666699; font-size: 8pt; font-family: 'courier new', courier;"&gt;LOAD&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #666699; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp; *&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #666699; font-size: 8pt;"&gt;FROM [lib://web_page_connector]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #666699; font-size: 8pt;"&gt;(html, utf8, no labels , table is @1)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #666699; font-size: 8pt; font-family: 'courier new', courier;"&gt;where RecNo()&amp;gt;1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #808080; font-size: 8pt;"&gt;//iterate over values in the first loaded row (=the source table second row that contains &lt;BR /&gt;//the field names I want) to build a mapping table&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #666699; font-size: 8pt; font-family: 'courier new', courier;"&gt;for f = 1 to NoOfFields('tmpTable')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #666699; font-size: 8pt;"&gt;&amp;nbsp; let vDisplay = FieldValue('@'&amp;amp;$(f),1);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #666699; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #666699; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; mapNames:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #666699; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; mapping load * inline [&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #666699; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; TmpField,Display&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #666699; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "@$(f)",$(vDisplay)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #666699; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #666699; font-size: 8pt; font-family: 'courier new', courier;"&gt;next f&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #808080; font-size: 8pt;"&gt;//rename the nameless fields using the mapping table&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757; font-size: 8pt; font-family: 'courier new', courier;"&gt;Rename Fields using mapNames;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #808080; font-size: 8pt;"&gt;//prune the no longer needed first row from the table &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #808080; font-size: 8pt;"&gt;&lt;SPAN style="color: #808080;"&gt;NoConcatenate&lt;/SPAN&gt; // needed to avoid this load to collapse into the already loaded table&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757; font-size: 8pt; font-family: 'courier new', courier;"&gt;BaseTable:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #808080; font-size: 8pt;"&gt;&lt;SPAN style="color: #575757;"&gt;load * resident tmpTable where RecNo()&amp;gt;1;&lt;/SPAN&gt; //prune first row, now used as field names&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #808080; font-size: 8pt; font-family: 'courier new', courier;"&gt;Drop Table tmpTable;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 27 Sep 2016 21:01:41 GMT</pubDate>
    <dc:creator>ffd</dc:creator>
    <dc:date>2016-09-27T21:01:41Z</dc:date>
    <item>
      <title>Use second row as header and delete first row</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Use-second-row-as-header-and-delete-first-row/m-p/996126#M1450</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&amp;nbsp; have been searching a lot on the forum and tried (to combine) several answers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am linking an url to a web application and retrieve information (see screenshot below). Everything is fine, but after retrieving data the column headers (Aangemaakt, Recruiter) etc. are also imported as data.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="data load.png" class="jive-image image-1" src="/legacyfs/online/98278_data load.png" style="width: 620px; height: 342px;" /&gt;&lt;/P&gt;&lt;P&gt;I want to not import the "Paginagrootte Tonen" etc. and tried things like header =1, etc. but didn't get it working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I now use:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; @1,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; @2,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; @3,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; @4,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; @5,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; @6,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; @7,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; @8,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; @9&lt;/P&gt;&lt;P&gt;FROM [lib://Applicants]&lt;/P&gt;&lt;P&gt;(html, codepage is 1252, no labels, header is 2, table is @6)&lt;/P&gt;&lt;P&gt;WHERE RecNo () &amp;lt;&amp;gt;1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gives:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Result 1.png" class="jive-image image-2" src="/legacyfs/online/98285_Result 1.png" style="width: 620px; height: 390px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone know the answer?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Sep 2015 11:35:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Use-second-row-as-header-and-delete-first-row/m-p/996126#M1450</guid>
      <dc:creator />
      <dc:date>2015-09-08T11:35:03Z</dc:date>
    </item>
    <item>
      <title>Re: Use second row as header and delete first row</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Use-second-row-as-header-and-delete-first-row/m-p/996127#M1451</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using your HTML I tried with a table in one of our HTML Pages and found you could alias your header names in the load script e.g&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@!1 AS "Aangemaakt",&lt;/P&gt;&lt;P&gt;@!2 AS "Recruiter"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and use your exclude rowno 1 to get a clean table.&amp;nbsp; How to get at paginated data in a table now that would be interesting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andy &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Sep 2015 12:19:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Use-second-row-as-header-and-delete-first-row/m-p/996127#M1451</guid>
      <dc:creator>ogster1974</dc:creator>
      <dc:date>2015-09-08T12:19:09Z</dc:date>
    </item>
    <item>
      <title>Re: Use second row as header and delete first row</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Use-second-row-as-header-and-delete-first-row/m-p/996128#M1452</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Andy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This helps indeed, the only thing is that I manually have to create the AS "Aangemaakt", etc, while it is already in the loaded data &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this could be automated by some code, then this would save me a lot of (future) work, off course for only 7 columns this is fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reg. Henke&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Sep 2015 12:23:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Use-second-row-as-header-and-delete-first-row/m-p/996128#M1452</guid>
      <dc:creator />
      <dc:date>2015-09-08T12:23:19Z</dc:date>
    </item>
    <item>
      <title>Re: Use second row as header and delete first row</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Use-second-row-as-header-and-delete-first-row/m-p/996129#M1453</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Like you say its a one time issue on setup of your script. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think the issue they will have is HTML Table headers can contain a lot stuff not needed for the import.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mine for example cam through as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[',25,document.getElementById('joblistgriduserhiddenfields').value,''); " class="tableheader"&amp;gt; CRM No] AS "CRM#",&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So tricky to automate for each site will be coded different.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please mark any replies that have been helpful/correct for other users of the community to follow.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Sep 2015 12:31:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Use-second-row-as-header-and-delete-first-row/m-p/996129#M1453</guid>
      <dc:creator>ogster1974</dc:creator>
      <dc:date>2015-09-08T12:31:48Z</dc:date>
    </item>
    <item>
      <title>Re: Use second row as header and delete first row</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Use-second-row-as-header-and-delete-first-row/m-p/996130#M1454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I will be using the URL's a lot and they will all be containing the same data as in the example. If someone would know the answer I would be very much ablied.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Sep 2015 07:42:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Use-second-row-as-header-and-delete-first-row/m-p/996130#M1454</guid>
      <dc:creator />
      <dc:date>2015-09-09T07:42:33Z</dc:date>
    </item>
    <item>
      <title>Re: Use second row as header and delete first row</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Use-second-row-as-header-and-delete-first-row/m-p/996131#M1455</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.qlik.com/qlik-users/182774"&gt;henkewillemsen&lt;/A&gt;‌! I came across the same situation and extended your initial solution a bit, combining it with a suggestion from &lt;A href="https://community.qlik.com/qlik-blogpost/4301"&gt;Creating a Table of all Field Names&lt;/A&gt;. This way you don't have to create the aliases manually.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My approach looks like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #808080; font-size: 8pt; font-family: 'courier new', courier;"&gt;//load the table from the web page, except the unwanted first row&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #666699; font-size: 8pt; font-family: 'courier new', courier;"&gt;tmpTable:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #666699; font-size: 8pt; font-family: 'courier new', courier;"&gt;LOAD&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #666699; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp; *&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #666699; font-size: 8pt;"&gt;FROM [lib://web_page_connector]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #666699; font-size: 8pt;"&gt;(html, utf8, no labels , table is @1)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #666699; font-size: 8pt; font-family: 'courier new', courier;"&gt;where RecNo()&amp;gt;1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #808080; font-size: 8pt;"&gt;//iterate over values in the first loaded row (=the source table second row that contains &lt;BR /&gt;//the field names I want) to build a mapping table&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #666699; font-size: 8pt; font-family: 'courier new', courier;"&gt;for f = 1 to NoOfFields('tmpTable')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #666699; font-size: 8pt;"&gt;&amp;nbsp; let vDisplay = FieldValue('@'&amp;amp;$(f),1);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #666699; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #666699; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; mapNames:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #666699; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; mapping load * inline [&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #666699; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; TmpField,Display&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #666699; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "@$(f)",$(vDisplay)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #666699; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #666699; font-size: 8pt; font-family: 'courier new', courier;"&gt;next f&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #808080; font-size: 8pt;"&gt;//rename the nameless fields using the mapping table&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757; font-size: 8pt; font-family: 'courier new', courier;"&gt;Rename Fields using mapNames;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #808080; font-size: 8pt;"&gt;//prune the no longer needed first row from the table &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #808080; font-size: 8pt;"&gt;&lt;SPAN style="color: #808080;"&gt;NoConcatenate&lt;/SPAN&gt; // needed to avoid this load to collapse into the already loaded table&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757; font-size: 8pt; font-family: 'courier new', courier;"&gt;BaseTable:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #808080; font-size: 8pt;"&gt;&lt;SPAN style="color: #575757;"&gt;load * resident tmpTable where RecNo()&amp;gt;1;&lt;/SPAN&gt; //prune first row, now used as field names&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #808080; font-size: 8pt; font-family: 'courier new', courier;"&gt;Drop Table tmpTable;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Sep 2016 21:01:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Use-second-row-as-header-and-delete-first-row/m-p/996131#M1455</guid>
      <dc:creator>ffd</dc:creator>
      <dc:date>2016-09-27T21:01:41Z</dc:date>
    </item>
  </channel>
</rss>

