<?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: Reading loaded FieldNames from QV Table. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Reading-loaded-FieldNames-from-QV-Table/m-p/806014#M661773</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot for your input Bill !!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess, system table will return only the QV table name. Is there any option for getting DB source table and columns?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Meanwhile I'm just analyzing the feasibility by using system tables to accomplish&amp;nbsp; this. This is a great idea in need.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 Mar 2015 07:21:55 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-03-23T07:21:55Z</dc:date>
    <item>
      <title>Reading loaded FieldNames from QV Table.</title>
      <link>https://community.qlik.com/t5/QlikView/Reading-loaded-FieldNames-from-QV-Table/m-p/806012#M661771</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear QV's,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just need your opinion/idea for the below scenario which I came across in one of my recent development.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;I've loaded the fields from DB and stored into QVD. The script is very simple as below.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;EMPLOYEE:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Load NAME as EMP_NAME,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; ID,&lt;/P&gt;&lt;P&gt;&amp;nbsp; DEPT as DEPARTMENT;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;SQL select * from EMPLOYEE.INFO;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Store EMPLOYEE into EMPLOYEE.qvd(qvd);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;The requirement is to store the meta data(only field names) into &lt;/SPAN&gt;separate&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; qvd.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Currently we're doing this as below.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;MetaData:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;LOAD * INLINE [&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; SourceField , MetaSourceTable , QVDField ,QVDFieldDescription&lt;/P&gt;&lt;P&gt;&amp;nbsp; NAME , EMPLOYEE , EMP_NAME ,Employee Name&lt;/P&gt;&lt;P&gt;&amp;nbsp; ID , EMPLOYEE , ID ,Employee ID&lt;/P&gt;&lt;P&gt;&amp;nbsp; DEPT , EMPLOYEE , DEPARTMENT ,Department of the Employee&lt;/P&gt;&lt;P&gt;&amp;nbsp; ];&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Call StoreQVDMetaData;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;'StoreQVDMetaData' is the sub Routine(qvs file) in which we have scripts to write the Meta table information into QVD.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;The problem here is each time I need to manually hardcode the loaded fields&amp;amp; Tables into my Inline table which is bit time consuming if I've 20+ &lt;/SPAN&gt;fields&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; in my table.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Could you guys please let me know if there are any functions/procedure I can use to get the loaded fields automatically into my meta data table.I know that I cannot automate Field Description so I thought of removing this from meta data table. The only thing I need is to get fields and table name from already loaded table by having any loop or something.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly post your ideas.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- JAY&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Mar 2015 06:03:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reading-loaded-FieldNames-from-QV-Table/m-p/806012#M661771</guid>
      <dc:creator />
      <dc:date>2015-03-16T06:03:50Z</dc:date>
    </item>
    <item>
      <title>Re: Reading loaded FieldNames from QV Table.</title>
      <link>https://community.qlik.com/t5/QlikView/Reading-loaded-FieldNames-from-QV-Table/m-p/806013#M661772</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would the System Fields be of use ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below pasted in from the Help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H1&gt;&lt;A name="kanchor1318"&gt;&lt;/A&gt;System Fields&lt;/H1&gt;&lt;P&gt;In addition to the fields extracted from the data source, system fields are also produced by QlikView. These all begin with "$" and can be displayed in list boxes much like ordinary fields. System fields are typically created during &lt;A class="MCXref_0"&gt;&lt;EM&gt;Script&lt;/EM&gt;&lt;/A&gt; execution, are primarily used as an aid in document design. &lt;/P&gt;&lt;H2&gt;Displaying System Fields&lt;/H2&gt;&lt;P&gt;Perform the following steps:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Right-click on the sheet and select &lt;SPAN class="Bold"&gt;System Fields&lt;/SPAN&gt;. &lt;/LI&gt;&lt;LI&gt;Check the &lt;SPAN class="Bold"&gt;Show System Fields&lt;/SPAN&gt; box. &lt;/LI&gt;&lt;/OL&gt;&lt;P&gt; The system fields are now available as any other fields. &lt;/P&gt;&lt;H2&gt;Available System Fields&lt;/H2&gt;&lt;P&gt;The following system fields can be displayed:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE cellspacing="0" class="TableStyle-LeftBold" style="margin-right: auto;"&gt;&lt;TBODY&gt;&lt;TR class="Body-Body1"&gt;&lt;TD class="BodyE-Column1-Body1"&gt;&lt;A name="kanchor1319"&gt;&lt;/A&gt;&lt;SPAN class="Italic"&gt;$Table&lt;/SPAN&gt; &lt;/TD&gt;&lt;TD class="BodyD-Column2-Body1"&gt;Displays all internal tables loaded by the script. When a single table is selected, an information symbol will activate in the caption area of the list box. By clicking here, it is possible to view the table, if it comes from a file. &lt;/TD&gt;&lt;/TR&gt;&lt;TR class="Body-Body1"&gt;&lt;TD class="BodyE-Column1-Body1"&gt;&lt;SPAN class="Italic"&gt;$Field&lt;/SPAN&gt; &lt;/TD&gt;&lt;TD class="BodyD-Column2-Body1"&gt;Displays the fields that are read from the tables. By setting this list box to &lt;SPAN class="Bold"&gt;Show Frequency&lt;/SPAN&gt; in the &lt;SPAN class="Bold"&gt;List Box Properties: General&lt;/SPAN&gt; page, it is simple to detect key fields that occur in several internal tables. &lt;/TD&gt;&lt;/TR&gt;&lt;TR class="Body-Body1"&gt;&lt;TD class="BodyE-Column1-Body1"&gt;&lt;A name="kanchor1320"&gt;&lt;/A&gt;&lt;SPAN class="Italic"&gt;$Fields&lt;/SPAN&gt; &lt;/TD&gt;&lt;TD class="BodyD-Column2-Body1"&gt;The numbers in this list box represent the number of fields in different tables. &lt;/TD&gt;&lt;/TR&gt;&lt;TR class="Body-Body1"&gt;&lt;TD class="BodyE-Column1-Body1"&gt;&lt;SPAN class="Italic"&gt;$FieldNo&lt;/SPAN&gt; &lt;/TD&gt;&lt;TD class="BodyD-Column2-Body1"&gt;This list box shows the position of the fields in the tables. &lt;/TD&gt;&lt;/TR&gt;&lt;TR class="Body-Body1"&gt;&lt;TD class="BodyE-Column1-Body1"&gt;&lt;A name="kanchor1321"&gt;&lt;/A&gt;&lt;SPAN class="Italic"&gt;$Rows&lt;/SPAN&gt; &lt;/TD&gt;&lt;TD class="BodyD-Column2-Body1"&gt;This list box shows the number of rows in the tables. &lt;/TD&gt;&lt;/TR&gt;&lt;TR class="Body-Body1"&gt;&lt;TD class="BodyE-Column1-Body1"&gt;&lt;A name="kanchor1322"&gt;&lt;/A&gt;&lt;SPAN class="Italic"&gt;$Info&lt;/SPAN&gt; &lt;/TD&gt;&lt;TD class="BodyD-Column2-Body1"&gt;If info tables have been included in the document, their names will be displayed here. &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;H2&gt;System Table&lt;/H2&gt;&lt;P&gt;QlikView can automatically create a pivot table that makes use of the system fields.The table is called &lt;SPAN class="Bold"&gt;System Table&lt;/SPAN&gt; and contains the two dimensions &lt;SPAN class="Italic"&gt;$Field&lt;/SPAN&gt; and &lt;SPAN class="Italic"&gt;$Table&lt;/SPAN&gt; and the expression &lt;SPAN class="Italic"&gt;only([$Field])&lt;/SPAN&gt;. The system table is sorted according to frequency by default. The system table object is not available for the QlikView Server clients (AJAX and Plugin clients).&lt;/P&gt;&lt;H3&gt;Creating a System Table&lt;/H3&gt;&lt;P&gt;Perform the following steps:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Right-click on the sheet and select &lt;SPAN class="Bold"&gt;New Sheet Object&lt;/SPAN&gt;. &lt;/LI&gt;&lt;LI&gt;Select &lt;SPAN class="Bold"&gt;System Table&lt;/SPAN&gt;. &lt;/LI&gt;&lt;/OL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Mar 2015 20:22:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reading-loaded-FieldNames-from-QV-Table/m-p/806013#M661772</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-03-16T20:22:09Z</dc:date>
    </item>
    <item>
      <title>Re: Reading loaded FieldNames from QV Table.</title>
      <link>https://community.qlik.com/t5/QlikView/Reading-loaded-FieldNames-from-QV-Table/m-p/806014#M661773</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot for your input Bill !!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess, system table will return only the QV table name. Is there any option for getting DB source table and columns?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Meanwhile I'm just analyzing the feasibility by using system tables to accomplish&amp;nbsp; this. This is a great idea in need.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Mar 2015 07:21:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reading-loaded-FieldNames-from-QV-Table/m-p/806014#M661773</guid>
      <dc:creator />
      <dc:date>2015-03-23T07:21:55Z</dc:date>
    </item>
  </channel>
</rss>

