Databases Reference
In-Depth Information
You will notice that the script editor consists of the following areas:
• A menu bar
• A toolbar
• A script pane
• A tool pane
Menu and toolbar
The menu offers a wide range of options, for some of which the toolbar offers
shorthand icons. For now, the most important options to take note of are:
Function
Description
File | Reload
Runs the entire script to reload the data
File | Save Entire Document
Saves the entire document, not just the script
Tab | Add Tab
As we have seen, QlikView scripts can be
organized using tabs; this function adds a new tab
Tab | Rename
Renames the currently selected tab
Tab | Promote
Moves the currently selected tab to the left
Tab | Demote
Moves the currently selected tab to the right
Script pane
The area that draws the most attention is the big, white area—the script pane .
This is the main working area of the script editor. When a new QlikView file is
created, the new script is populated with a Main tab and a few lines where number
interpretation variables are added. These lines tell QlikView how to interpret various
numbers and are generated automatically based on your operating system settings.
When looking further at the script pane we can see that the lines are numbered and
that the editor has syntax highlighting. Based on their meaning, words in the script
have a different color or font decoration. For example, we see that the word SET is
shown in bold, blue text while the text immediately behind it is shown in italic, grey
text. It is important to note that QlikView statements always end with a ; (semicolon).
The exception to this rule are control statements, such as
the IF .. THEN .. ELSE,DO LOOP , FOR .. NEXT ,
which are used to control the flow of the script. We'll
learn about control statements later in this chapter.
Search WWH ::




Custom Search