Skip to content

Instantly share code, notes, and snippets.

@mountaindude
Created September 30, 2020 14:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save mountaindude/f39e3ea901d84ec3ed12484a57a345a0 to your computer and use it in GitHub Desktop.
Save mountaindude/f39e3ea901d84ec3ed12484a57a345a0 to your computer and use it in GitHub Desktop.
Qlik Sense NiceTrace function
// This Sub enables prettified output of text to the reload progress window of Qlik Sense.
// Use it to get timestamped trace messages, that also have a prefix that makes them easier
// to spot in the reload progress windows and reload logs.
//
// Usage example:
// call NiceTrace ('This is a debug message, including a variable $(vMetaDataQVDPath)\abc.qvd')
sub NiceTrace (vL.Msg)
let vL.vNow = Now(1);
trace >>> $(vL.vNow): $(vL.Msg);
// Remove local variables before exiting
set vL.vNow=;
set vL.Msg=;
end sub;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment