<?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: For each table in a certain app - looping through all available tables in the app in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/For-each-table-in-a-certain-app-looping-through-all-available/m-p/1671921#M50818</link>
    <description>&lt;P&gt;There are a number of table functions that can be used in the script to help.&lt;/P&gt;
&lt;P&gt;FOR tableIdx = NoOfTables()-1 to 0 step -1&lt;BR /&gt;LET vTable = TableName($(tableIdx));&lt;BR /&gt;TableList:&lt;BR /&gt;LOAD &lt;BR /&gt;RecNo() as Number,&lt;BR /&gt;'[$(vTable)]' as TableName&lt;BR /&gt;AutoGenerate 1; &lt;BR /&gt;NEXT tableIdx;&lt;/P&gt;
&lt;P&gt;STORE TableList INTO &lt;BR /&gt;lib://QVDFiles/TableList.csv (txt);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 03 Feb 2020 23:58:29 GMT</pubDate>
    <dc:creator>Lisa_P</dc:creator>
    <dc:date>2020-02-03T23:58:29Z</dc:date>
    <item>
      <title>For each table in a certain app - looping through all available tables in the app</title>
      <link>https://community.qlik.com/t5/App-Development/For-each-table-in-a-certain-app-looping-through-all-available/m-p/1671810#M50810</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Could you please help me how could I get metadata about my tables?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;metadata: &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;load * inline[ &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;recnometa,&amp;nbsp;tablename&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;For each ?table? in ?certain_app?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Concatenate (metadata)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Load Recno() as recnometa&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ?name of the table? as tablename&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Resident ?actual_table_in_loop?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Next ?table? &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks and best regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Levente&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 19:11:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/For-each-table-in-a-certain-app-looping-through-all-available/m-p/1671810#M50810</guid>
      <dc:creator>Levente</dc:creator>
      <dc:date>2024-11-16T19:11:22Z</dc:date>
    </item>
    <item>
      <title>Re: For each table in a certain app - looping through all available tables in the app</title>
      <link>https://community.qlik.com/t5/App-Development/For-each-table-in-a-certain-app-looping-through-all-available/m-p/1671921#M50818</link>
      <description>&lt;P&gt;There are a number of table functions that can be used in the script to help.&lt;/P&gt;
&lt;P&gt;FOR tableIdx = NoOfTables()-1 to 0 step -1&lt;BR /&gt;LET vTable = TableName($(tableIdx));&lt;BR /&gt;TableList:&lt;BR /&gt;LOAD &lt;BR /&gt;RecNo() as Number,&lt;BR /&gt;'[$(vTable)]' as TableName&lt;BR /&gt;AutoGenerate 1; &lt;BR /&gt;NEXT tableIdx;&lt;/P&gt;
&lt;P&gt;STORE TableList INTO &lt;BR /&gt;lib://QVDFiles/TableList.csv (txt);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Feb 2020 23:58:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/For-each-table-in-a-certain-app-looping-through-all-available/m-p/1671921#M50818</guid>
      <dc:creator>Lisa_P</dc:creator>
      <dc:date>2020-02-03T23:58:29Z</dc:date>
    </item>
    <item>
      <title>Re: For each table in a certain app - looping through all available tables in the app</title>
      <link>https://community.qlik.com/t5/App-Development/For-each-table-in-a-certain-app-looping-through-all-available/m-p/1672049#M50835</link>
      <description>&lt;P&gt;Hi Lisa,&lt;/P&gt;&lt;P&gt;Thanks for the script you sent, but for me the most important part was to be able &lt;U&gt;&lt;STRONG&gt;to refer to tables using variable&lt;/STRONG&gt;&lt;/U&gt;. I needed to know how to call a table after "resident" command.&lt;/P&gt;&lt;P&gt;I would like to build a metadata query&amp;nbsp; to retrieve count of records in certain table(s). Furthermore, I would like to get Nb of distinct values, Nb of values in all related fields (one by one).&lt;/P&gt;&lt;P&gt;I have now a script which seems to work fine. I kept searching for scripts shared in Qlik Data Analytics Forums and found one that helped me to build what I need.&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Levente&lt;/P&gt;</description>
      <pubDate>Tue, 04 Feb 2020 10:11:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/For-each-table-in-a-certain-app-looping-through-all-available/m-p/1672049#M50835</guid>
      <dc:creator>Levente</dc:creator>
      <dc:date>2020-02-04T10:11:37Z</dc:date>
    </item>
  </channel>
</rss>

