<?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 How to Rename &amp;amp; Hide All Fields in Qlik Sense App in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/How-to-Rename-amp-Hide-All-Fields-in-Qlik-Sense-App/m-p/1553276#M62890</link>
    <description>&lt;P&gt;Here is a simple and effective way to rename all fields in the data model, then hide them to front end users using HidePrefix setting.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;// Test table 1
Table1: 
load * inline [
CompanyID, MarketName
Company1, California
Company2, North Carolina
Company3, Florida
];


// Test Table 2 
Table2: 
load * inline [
PersonID, PersonName
1, John
2, MadDog
3, Dave
];


// Get list of table names 
for t = 0 to NoOfTables()-1
    Tables:
    load tablename($(t)) as table AutoGenerate(1); 
    let tablename = peek('table',$(t),'Tables'); 

        // Now get list of each field name within each table
        for i = 1 to NoOfFields('$(tablename)')
        FieldNames: 
        mapping load FieldName($(i),'$(tablename)') as OldFieldName,
        'Hide.'&amp;amp;FieldName($(i),'$(tablename)') as NewFieldName
         AutoGenerate (1); 
        next i; // next field 
next t; // next table

// Rename these field names now
Rename Fields using FieldNames;

// Clean up unwanted table 
drop tables Tables;

// Decide whether to hide all fields
let hide = 1; 
if $(hide) =1 then 
    // hide all these fields now 
    Set HidePrefix = 'Hide'; 
end if ;&amp;nbsp;&lt;/PRE&gt;</description>
    <pubDate>Sat, 16 Nov 2024 06:24:21 GMT</pubDate>
    <dc:creator>dvickers</dc:creator>
    <dc:date>2024-11-16T06:24:21Z</dc:date>
    <item>
      <title>How to Rename &amp; Hide All Fields in Qlik Sense App</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-Rename-amp-Hide-All-Fields-in-Qlik-Sense-App/m-p/1553276#M62890</link>
      <description>&lt;P&gt;Here is a simple and effective way to rename all fields in the data model, then hide them to front end users using HidePrefix setting.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;// Test table 1
Table1: 
load * inline [
CompanyID, MarketName
Company1, California
Company2, North Carolina
Company3, Florida
];


// Test Table 2 
Table2: 
load * inline [
PersonID, PersonName
1, John
2, MadDog
3, Dave
];


// Get list of table names 
for t = 0 to NoOfTables()-1
    Tables:
    load tablename($(t)) as table AutoGenerate(1); 
    let tablename = peek('table',$(t),'Tables'); 

        // Now get list of each field name within each table
        for i = 1 to NoOfFields('$(tablename)')
        FieldNames: 
        mapping load FieldName($(i),'$(tablename)') as OldFieldName,
        'Hide.'&amp;amp;FieldName($(i),'$(tablename)') as NewFieldName
         AutoGenerate (1); 
        next i; // next field 
next t; // next table

// Rename these field names now
Rename Fields using FieldNames;

// Clean up unwanted table 
drop tables Tables;

// Decide whether to hide all fields
let hide = 1; 
if $(hide) =1 then 
    // hide all these fields now 
    Set HidePrefix = 'Hide'; 
end if ;&amp;nbsp;&lt;/PRE&gt;</description>
      <pubDate>Sat, 16 Nov 2024 06:24:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-Rename-amp-Hide-All-Fields-in-Qlik-Sense-App/m-p/1553276#M62890</guid>
      <dc:creator>dvickers</dc:creator>
      <dc:date>2024-11-16T06:24:21Z</dc:date>
    </item>
  </channel>
</rss>

