Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Use technical fields in script

Hello,

I'd like to know if it's possible to use $Table and  $Field in load script

Thks

Vincent

1 Solution

Accepted Solutions
hic
Former Employee
Former Employee

No, you cannot access the system fields during the script execution. They are created at the end of the script run when the data model is well defined.

But there are a number of system functions, e.g. FieldName() and TableName() that you can access. Check the documentation or try to insert a function in the script.

HIC

Script functions.png

View solution in original post

3 Replies
Not applicable
Author

Vincent,

i don't know but here is an example found http://qlikviewnotes.blogspot.fr/2011/02/qvd-questions-and-answers.html

to store all the table into QVDs (a QVD storing only one table, a loop on tables is necessary if you want to export everything).

FOR i = 1 to NoOfTables()

  LET vTableName = TableName($(i)-1);

  LET vOutfile = '$(vTableName).qvd';

  STORE [$(vTableName)] INTO [$(vOutfile)] (qvd);

NEXT i

Fabrice

hic
Former Employee
Former Employee

No, you cannot access the system fields during the script execution. They are created at the end of the script run when the data model is well defined.

But there are a number of system functions, e.g. FieldName() and TableName() that you can access. Check the documentation or try to insert a function in the script.

HIC

Script functions.png

Anonymous
Not applicable
Author

thks for replies.

I'm finaly using Loops with TableName() and FieldName()

Regards