Databases Reference
In-Depth Information
In our example, we used the
Simple Mode
option to create the expressions for
the scatter chart. As the name implies, this allows for only simple expressions to
be formulated. We can switch to the Advanced Mode by checking the
Advanced
Mode
checkbox on the
Expressions
tab. This will change the view to the regular
Expressions
tab that we saw on earlier charts.
It is important to keep in mind that when dealing with
scatter charts the expression that is defined first will be
used for the X-axis, the second expression will be used
for the Y-axis, and the third expression will always be
used to set the bubble size.
Button
Now that we have set up the basic structure and the charts for our analysis sheet, it is
time to add a few buttons for the user to interact with. QlikView allows us to execute
an action, or a sequence of actions, when a button is clicked.
Let's start with a practical example. During analysis, a user will often want to clear
their entire set of selections, or undo and redo single steps in their selection. Follow
these steps to add a button that will clear the user's selections:
1.
Go to
Layout
|
New Sheet Object
|
Button
in the menu bar.
2.
On the
General
tab of the
New Button Object
window, enter
Clear
Selections
in the
Text
input field.
3.
Change the
Color
option to
HighCloud brown
, which was defined in the
previous chapter and should be part of the custom colors available on the
Color
window.
4.
Switch to the
Actions
tab.
5.
Click the
Add
button, select the
Clear All
option from the
Action
list on the
right, and click on
OK
.
6.
Click on
OK
to close the
Button properties
dialog.
We have now created a single button that, when clicked, will clear all
current selections.