<?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 concatenate all fields from a table into an Variable in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/concatenate-all-fields-from-a-table-into-an-Variable/m-p/394928#M484435</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 want a variable to contain a comma separeted list of all fields from a specific table, or from all possible tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would prefere a solution in the load script or an expression, but not a macro solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(A bonus task would be to be able to exclude some fields in the variable.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess the best solution would be a For Each - solution, but Im not finding the way to loop fieldnames in a table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Robert&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 May 2013 09:48:52 GMT</pubDate>
    <dc:creator>RSvebeck</dc:creator>
    <dc:date>2013-05-22T09:48:52Z</dc:date>
    <item>
      <title>concatenate all fields from a table into an Variable</title>
      <link>https://community.qlik.com/t5/QlikView/concatenate-all-fields-from-a-table-into-an-Variable/m-p/394928#M484435</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 want a variable to contain a comma separeted list of all fields from a specific table, or from all possible tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would prefere a solution in the load script or an expression, but not a macro solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(A bonus task would be to be able to exclude some fields in the variable.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess the best solution would be a For Each - solution, but Im not finding the way to loop fieldnames in a table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Robert&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 May 2013 09:48:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/concatenate-all-fields-from-a-table-into-an-Variable/m-p/394928#M484435</guid>
      <dc:creator>RSvebeck</dc:creator>
      <dc:date>2013-05-22T09:48:52Z</dc:date>
    </item>
    <item>
      <title>Re: concatenate all fields from a table into an Variable</title>
      <link>https://community.qlik.com/t5/QlikView/concatenate-all-fields-from-a-table-into-an-Variable/m-p/394929#M484436</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;this example list all fields from last load.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let vLoadTable = TableName(NoOfTables() - 1); // Name der zuletzt geladenen Tabelle wird ausgelesen&lt;/P&gt;&lt;P&gt;let vLoadFieldCount = NoOfFields('$(vLoadTable)'); // Anzahl der Tabellenfelder wird ausgelesen&lt;/P&gt;&lt;P&gt;let vLoadFields = ''; // Variablen-Inhalt löschen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for i = 1 to $(vLoadFieldCount)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; let vLoadFields = '$(vLoadFields)' &amp;amp; FieldName($(i), '$(vLoadTable)') &amp;amp; ', '; // Felder der Tabelle werden String verkettet&lt;/P&gt;&lt;P&gt;next&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 May 2013 11:11:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/concatenate-all-fields-from-a-table-into-an-Variable/m-p/394929#M484436</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2013-05-22T11:11:29Z</dc:date>
    </item>
  </channel>
</rss>

