<?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 Remove table names from fieldnames in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Remove-table-names-from-fieldnames/m-p/1691667#M52850</link>
    <description>&lt;P&gt;Dear community,&lt;/P&gt;&lt;P&gt;Fieldnames have tablenames included before loading in the Qlik Sense script. I use Unqualify, instead of qualify, but still table_names appear in front of every field. This is the only table I loaded, so the field names are not generated to differentiate them. How to solve this without doing this manually?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Fieldnames pre-loading" style="width: 834px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/31406i2B5AF52988CF915E/image-size/large?v=v2&amp;amp;px=999" role="button" title="Table_fieldname.PNG" alt="Fieldnames pre-loading" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Fieldnames pre-loading&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 18:49:10 GMT</pubDate>
    <dc:creator>Bart_Breekveldt</dc:creator>
    <dc:date>2024-11-16T18:49:10Z</dc:date>
    <item>
      <title>Remove table names from fieldnames</title>
      <link>https://community.qlik.com/t5/App-Development/Remove-table-names-from-fieldnames/m-p/1691667#M52850</link>
      <description>&lt;P&gt;Dear community,&lt;/P&gt;&lt;P&gt;Fieldnames have tablenames included before loading in the Qlik Sense script. I use Unqualify, instead of qualify, but still table_names appear in front of every field. This is the only table I loaded, so the field names are not generated to differentiate them. How to solve this without doing this manually?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Fieldnames pre-loading" style="width: 834px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/31406i2B5AF52988CF915E/image-size/large?v=v2&amp;amp;px=999" role="button" title="Table_fieldname.PNG" alt="Fieldnames pre-loading" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Fieldnames pre-loading&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 18:49:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Remove-table-names-from-fieldnames/m-p/1691667#M52850</guid>
      <dc:creator>Bart_Breekveldt</dc:creator>
      <dc:date>2024-11-16T18:49:10Z</dc:date>
    </item>
    <item>
      <title>Re: Remove table names from fieldnames</title>
      <link>https://community.qlik.com/t5/App-Development/Remove-table-names-from-fieldnames/m-p/1691966#M52864</link>
      <description>&lt;P&gt;You need to rename your fields - this could be done directly/manually within the load or before the load by creating appropriate ALIAS or after the load with a mapping. More to it could you find here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/How-to-Rename-Fields/ba-p/1469790" target="_self"&gt;How-to-Rename-Fields&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Apr 2020 11:34:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Remove-table-names-from-fieldnames/m-p/1691966#M52864</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2020-04-08T11:34:06Z</dc:date>
    </item>
    <item>
      <title>Re: Remove table names from fieldnames</title>
      <link>https://community.qlik.com/t5/App-Development/Remove-table-names-from-fieldnames/m-p/1691971#M52865</link>
      <description>&lt;P&gt;Hi, maybe table names can be more dynamic but here is a way of doing it:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;// Load original table
OriginalTable:
LOAD * Inline [
ORD_ORDERS_PK, ORD_ORDERS_ORDNUM
1,1
2,2
];

// Set length of table name
LET CharsToSkip = Len('ORD_ORDERS_')+1;

// Create temporary table with relations between old names and new names
For i=0 to NoOfFields('OriginalTable')
	tmpFields:
	LOAD FieldName as OldName, Mid(FieldName, $(CharsToSkip)) as NewName;
	LOAD FieldName($(i), 'OriginalTable') as FieldName
	AutoGenerate 1;
Next

// Create map to rename fields
mapFieldNames:
Mapping LOAD OldName, NewName Resident tmpFields;
DROP Table tmpFields;

// Rename fields
RENAME Fields using mapFieldNames;&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 08 Apr 2020 11:54:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Remove-table-names-from-fieldnames/m-p/1691971#M52865</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2020-04-08T11:54:20Z</dc:date>
    </item>
  </channel>
</rss>

