Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
srihitha
Contributor III
Contributor III

system fields

Below system fields are not returning values for me. Can someone pls check

Channel:
LOAD * inline [ Name,Age
Sri,21
hish,35];


tagmap:
load *,'$(Table)';
LOAD * inline [

a,b

Alpha,MyTag

Num,MyTag

];


Trace $(Table);

Table Contains all tables that are loaded.
$Field Contains all fields in the tables that are loaded.
$Fields Contains the number of fields in each table.
$FieldNo Contains the position of the fields in the tables.
$Rows Contains the number of rows in the tables
Labels (3)
1 Solution

Accepted Solutions
micheledenardi
Specialist II
Specialist II

According with documentation, System Fields can be used only in visualizations, not in load script.

System fields 

Michele De Nardi
If a post helps to resolve your issue, please accept it as a Solution.

View solution in original post

3 Replies
micheledenardi
Specialist II
Specialist II

According with documentation, System Fields can be used only in visualizations, not in load script.

System fields 

Michele De Nardi
If a post helps to resolve your issue, please accept it as a Solution.
vchuprina
Specialist
Specialist

Hi,

They are system fields, not variables.

You are using an undefined variable Table,  for this reason, you have empty space instead of a value

Channel:
LOAD * inline [ Name,Age
Sri,21
hish,35];


tagmap:
load *,
     'tagmap' as Table;
LOAD * inline [
a,b
Alpha,MyTag
Num,MyTag
];

LET Table = Peek('Table', 0, 'tagmap');

Trace $(Table);

Regards,

Vitalii

Press LIKE if the given solution helps to solve the problem.
If it's possible please mark correct answers as "solutions" (you can mark up to 3 "solutions").
vinieme12
Champion III
Champion III

Can you explain what exactly is your use case?

If you want to loop over. Existing tables you can refer the snippet from help section below

 

https://help.qlik.com/en-US/qlikview/May2021/Subsystems/Client/Content/QV_QlikView/Scripting/TableFu...

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.