Qlik Community

New to QlikView

Discussion board where members can get started with QlikView.

Announcements
Announcing the newest addition to the Qlik Community, Qlik Gallery! Learn More
Arjunarao
Honored Contributor II

Script function

Hi All,

What is the TRACE function.

Please explain. Thanks in advance.

eg:

TRACE; 

TRACE Loading the FARS mapping tables; 

1 Solution

Accepted Solutions
Highlighted

Re: Script function

HI

The Trace function log your comments to Log file. Just providing the comments in the Log file as well.

In ur example:

TRACE Loading the FARS mapping tables;


"Loading the FARS mapping tables " is logged in ur log file.


Please refer the help file

The trace statement writes a string to the Script Execution Progress window and to the script log file, when used.

It is very useful for debugging purposes. Using $-expansions of variables that are calculated prior to the Trace statement, you can customize the message.

The syntax is:

trace string

Examples:

trace Main table loaded;

Let MyMessage = NoOfRows('MainTable') & ' rows in Main Table';

trace $(MyMessage)

4 Replies
Highlighted

Re: Script function

HI

The Trace function log your comments to Log file. Just providing the comments in the Log file as well.

In ur example:

TRACE Loading the FARS mapping tables;


"Loading the FARS mapping tables " is logged in ur log file.


Please refer the help file

The trace statement writes a string to the Script Execution Progress window and to the script log file, when used.

It is very useful for debugging purposes. Using $-expansions of variables that are calculated prior to the Trace statement, you can customize the message.

The syntax is:

trace string

Examples:

trace Main table loaded;

Let MyMessage = NoOfRows('MainTable') & ' rows in Main Table';

trace $(MyMessage)

hariprasadqv
Contributor III

Re: Script function

Hi,

Trace is uesd with $ for populating detailed execution information to the execuion window and to the log file.

PSB.

Re: Trace()

TRACE elapsed timespan in a QVW script

Re: What is Trace Keyword in QlikView

Arjunarao
Honored Contributor II

Re: Script function

Hi MayilVahanan,hariprasadqv,

Thank you.

hariprasadqv
Contributor III

Re: Script function

Hi,

Find the attachment for working example.