Databases Reference
In-Depth Information
The hidden script is a password protected part of the script. It is always the left-most
tab (and cannot be moved), so it is executed before the regular script is reloaded.
Anything that is executed within the hidden script is not written to the log.
Logging for the hidden script can be turned on by
checking the
Show Progress for Hidden Script
checkbox
on the
Security
tab of the
Document Properties
. Note that
this will allow others to use the debugger to step through
the hidden code. Since this defeats a main point for using
hidden script, it is not advisable to use this option.
The following screenshot shows us the
Edit Script
window:
Let's add a hidden script to our document by following these steps:
1.
Open our
Airline Operations.qvw
document.
2.
Open the
Script Editor
window.
3.
Go to
File | Create Hidden Script
in the menu.
4.
Enter the password
hidden
twice and click on
OK
to create the hidden script.
5.
On the
Hidden Script
tab, enter the following statements:
TRACE This is a hidden script;
6.
Save and reload the document.
Notice how the
TRACE
statement does not show up in the log file.