<?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: Export List of Fields from Script in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Export-List-of-Fields-from-Script/m-p/11793#M831</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sure this will store all of the fields and their values into a QVD,CSV,TXT file but I am wondering if anyone knows a way to export just the list of fields from a table.&amp;nbsp; I am currently using the below script to store a list of all the field names as a variable but am getting stuck on how to get them into a table to export.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let i = 0;&lt;/P&gt;&lt;P&gt;For i = 0 to NoOfFields('Test')&lt;/P&gt;&lt;P&gt;Let vField$(i)= FieldName(i,'Test');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Next i;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 May 2018 20:33:29 GMT</pubDate>
    <dc:creator>m_perreault</dc:creator>
    <dc:date>2018-05-09T20:33:29Z</dc:date>
    <item>
      <title>Export List of Fields from Script</title>
      <link>https://community.qlik.com/t5/App-Development/Export-List-of-Fields-from-Script/m-p/11791#M829</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;&lt;/P&gt;&lt;P&gt;I was wondering if there is a way to export the list of fields from a Table in the script.&amp;nbsp; I know I could go use a Table Object with dimension $Field and export it, but I was wondering if there is a way to do this directly from the load script?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2018 19:13:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Export-List-of-Fields-from-Script/m-p/11791#M829</guid>
      <dc:creator>m_perreault</dc:creator>
      <dc:date>2018-05-09T19:13:55Z</dc:date>
    </item>
    <item>
      <title>Re: Export List of Fields from Script</title>
      <link>https://community.qlik.com/t5/App-Development/Export-List-of-Fields-from-Script/m-p/11792#M830</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this: &lt;A href="https://help.qlik.com/en-US/sense/April2018/Subsystems/Hub/Content/Scripting/ScriptRegularStatements/Store.htm" title="https://help.qlik.com/en-US/sense/April2018/Subsystems/Hub/Content/Scripting/ScriptRegularStatements/Store.htm"&gt;https://help.qlik.com/en-US/sense/April2018/Subsystems/Hub/Content/Scripting/ScriptRegularStatements/Store.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2018 19:24:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Export-List-of-Fields-from-Script/m-p/11792#M830</guid>
      <dc:creator>Ivan_Bozov</dc:creator>
      <dc:date>2018-05-09T19:24:48Z</dc:date>
    </item>
    <item>
      <title>Re: Export List of Fields from Script</title>
      <link>https://community.qlik.com/t5/App-Development/Export-List-of-Fields-from-Script/m-p/11793#M831</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sure this will store all of the fields and their values into a QVD,CSV,TXT file but I am wondering if anyone knows a way to export just the list of fields from a table.&amp;nbsp; I am currently using the below script to store a list of all the field names as a variable but am getting stuck on how to get them into a table to export.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let i = 0;&lt;/P&gt;&lt;P&gt;For i = 0 to NoOfFields('Test')&lt;/P&gt;&lt;P&gt;Let vField$(i)= FieldName(i,'Test');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Next i;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2018 20:33:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Export-List-of-Fields-from-Script/m-p/11793#M831</guid>
      <dc:creator>m_perreault</dc:creator>
      <dc:date>2018-05-09T20:33:29Z</dc:date>
    </item>
    <item>
      <title>Re: Export List of Fields from Script</title>
      <link>https://community.qlik.com/t5/App-Development/Export-List-of-Fields-from-Script/m-p/11794#M832</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The script found here creates the table I am looking for which I can then store.&amp;nbsp; &lt;A href="https://community.qlik.com/thread/221616"&gt;Fast way to get all table and field names from an app&lt;/A&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier;"&gt;//Iterate through the loaded tables&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier;"&gt;For t = 0 to NoOfTables() - 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier;"&gt;//Iterate through the fields of table&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier;"&gt;&amp;nbsp; For f = 1 to NoOfFields(TableName($(t)))&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp; Tables:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp; Load&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; TableName($(t)) as Table,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; TableNumber(TableName($(t))) as TableNo,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; NoOfRows(TableName($(t))) as TableRows,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FieldName($(f),TableName($(t))) as Field,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FieldNumber(FieldName($(f),TableName($(t))),TableName($(t))) as FieldNo&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Autogenerate 1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier;"&gt;&amp;nbsp; Next f&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier;"&gt;Next t;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2018 21:13:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Export-List-of-Fields-from-Script/m-p/11794#M832</guid>
      <dc:creator>m_perreault</dc:creator>
      <dc:date>2018-05-09T21:13:33Z</dc:date>
    </item>
  </channel>
</rss>

