<?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: Tablename()? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Tablename/m-p/659299#M668664</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi tresesco,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it does help. I supposed so much, but having it from someone who knows is better.&lt;/P&gt;&lt;P&gt;Unfortunately, in the context I want to use this currently, I don't know the sequence, so that doesn't really help me - but it is good to know. I might be able to use this lateron.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DataNibbler&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 20 Oct 2014 06:52:58 GMT</pubDate>
    <dc:creator>datanibbler</dc:creator>
    <dc:date>2014-10-20T06:52:58Z</dc:date>
    <item>
      <title>Tablename()?</title>
      <link>https://community.qlik.com/t5/QlikView/Tablename/m-p/659297#M668659</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;can anybody please explain to me the use of this function which is not detailed in the help_file?&lt;/P&gt;&lt;P&gt;I have been proposed this as part of a code to clean up all existing tables (but for specific ones), but I guess it can also be used in combination with the TRACE command to see which tables exist at a given point, e.g. within a subroutine, each time it is called.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From the help_file I know that it takes the table_number as a parameter - but what is the table_number?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot!&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;DataNibbler&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Oct 2014 06:23:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Tablename/m-p/659297#M668659</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2014-10-20T06:23:36Z</dc:date>
    </item>
    <item>
      <title>Re: Tablename()?</title>
      <link>https://community.qlik.com/t5/QlikView/Tablename/m-p/659298#M668661</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Table_number is the sequence number of loaded tables. The first loaded table has number 0, second one 1, .. 2, .... That means if you have loaded tables like :&lt;/P&gt;&lt;P&gt;Tab1:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; * From &amp;lt;&amp;gt;;&lt;/P&gt;&lt;P&gt;Tab2:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; * From &amp;lt;&amp;gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TableName(0) -&amp;gt; returns 'Tab1'&lt;/P&gt;&lt;P&gt;TableName(1) -&amp;gt; returns 'Tab2'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hoep this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Oct 2014 06:47:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Tablename/m-p/659298#M668661</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2014-10-20T06:47:38Z</dc:date>
    </item>
    <item>
      <title>Re: Tablename()?</title>
      <link>https://community.qlik.com/t5/QlikView/Tablename/m-p/659299#M668664</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi tresesco,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it does help. I supposed so much, but having it from someone who knows is better.&lt;/P&gt;&lt;P&gt;Unfortunately, in the context I want to use this currently, I don't know the sequence, so that doesn't really help me - but it is good to know. I might be able to use this lateron.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DataNibbler&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Oct 2014 06:52:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Tablename/m-p/659299#M668664</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2014-10-20T06:52:58Z</dc:date>
    </item>
    <item>
      <title>Re: Tablename()?</title>
      <link>https://community.qlik.com/t5/QlikView/Tablename/m-p/659300#M668665</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM&gt;for tab=1 to 3&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; trace **********;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; Table$(tab):&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; load&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; rand() * 100&amp;nbsp; as [Field Table$(tab)]&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; AutoGenerate 10;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; // trace with tablename and tablenumber&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; for i=0 to NoOfTables()-1&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; let t=TableName(i);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; let n=TableNumber(TableName(i));&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; trace TableName is $(t);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; trace TableNumber is $(n);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; next;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;next;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Oct 2014 06:58:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Tablename/m-p/659300#M668665</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2014-10-20T06:58:32Z</dc:date>
    </item>
    <item>
      <title>Re: Tablename()?</title>
      <link>https://community.qlik.com/t5/QlikView/Tablename/m-p/659301#M668666</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;DataNibbler wrote:&lt;/P&gt;
&lt;P&gt;I have been proposed this as part of a code to clean up all existing tables (but for &lt;STRONG&gt;specific ones&lt;/STRONG&gt;),...&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;So you know the names of the tables before hand, if so, would not simply using &lt;STRONG&gt;Drop Tables &lt;/STRONG&gt;help? Am I missing something?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Oct 2014 07:03:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Tablename/m-p/659301#M668666</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2014-10-20T07:03:52Z</dc:date>
    </item>
    <item>
      <title>Re: Tablename()?</title>
      <link>https://community.qlik.com/t5/QlikView/Tablename/m-p/659302#M668667</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi tresesco,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the context was a subroutine and for some reason some fragmented tables were being created in the individual iterations, but I didn't know for sure where and why - and I cannot write a DROP statement for a fragment anyway beecause of the "-" ...&lt;/P&gt;&lt;P&gt;Of course, whenever you know the names of interim tables, dropping them right away with this statement is the more elegant solution.&lt;/P&gt;&lt;P&gt;Also, I am having trouble with the TRACE: I can set a variable to TableName(0) and then write a TRACE statement with the value of that - but somehow writing TRACE TableName(0) or something like that won't work.&lt;/P&gt;&lt;P&gt;Can you help me there?&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Oct 2014 07:50:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Tablename/m-p/659302#M668667</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2014-10-20T07:50:49Z</dc:date>
    </item>
    <item>
      <title>Re: Tablename()?</title>
      <link>https://community.qlik.com/t5/QlikView/Tablename/m-p/659303#M668668</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Alternative could be, like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;vTab&lt;/EM&gt;=TableName(0);&lt;/P&gt;&lt;P&gt;Trace &lt;EM&gt;$(vTab);&lt;/EM&gt; sleep 1000;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Oct 2014 07:55:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Tablename/m-p/659303#M668668</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2014-10-20T07:55:32Z</dc:date>
    </item>
    <item>
      <title>Re: Tablename()?</title>
      <link>https://community.qlik.com/t5/QlikView/Tablename/m-p/659304#M668669</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;yep, exactly as I thought. It works fine. Only the TableName() can't be directly inserted into the TRACE for whatever reason. You have to go via a variable.&lt;/P&gt;&lt;P&gt;In the log_file, you then always have two lines - one with the complete TRACE_statement and one with its output &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Oct 2014 08:33:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Tablename/m-p/659304#M668669</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2014-10-20T08:33:33Z</dc:date>
    </item>
  </channel>
</rss>

