21.01.2013 Views

QlikView Reference Manual.pdf - QlikCommunity - QlikView

QlikView Reference Manual.pdf - QlikCommunity - QlikView

QlikView Reference Manual.pdf - QlikCommunity - QlikView

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

1. Applying the selection relevant to the alert.<br />

2. Calculating the condition expression value.<br />

3. Restoring original selections.<br />

The time needed to perform action 1 and 3 is of course each equal to the normal “click times“ if the selections<br />

had been applied interactively. The time needed for step 2 is the same as if the expression had resided<br />

e.g. in a sheet object. Added together, the time needed to check an alert can be quite substantial in large documents.<br />

This may be of less importance for single alerts triggered on opening or reload, but caution should<br />

be exercised when using large amounts of macro-triggered alerts, so that the document does not become sluggish.<br />

Opens the Alerts (page 150) dialog where all <strong>QlikView</strong> alerts are created and maintained.<br />

17.3 Alerts<br />

The easiest way to define an alert is by using the Alert Wizard (page 154) that can be invoked from the<br />

Tools menu.<br />

The Alerts dialog is opened from the Tools menu. This dialog is used for managing alerts, which are stored<br />

as part of the <strong>QlikView</strong> document. Alerts can be triggered from any Windows version of <strong>QlikView</strong> (that is,<br />

not from AJAX clients).<br />

An alert is a composite entity typically consisting of three basic parts:<br />

1. A condition, i.e. a <strong>QlikView</strong> expression forming a logical condition, that can be either true or false.<br />

2. A logical state (bookmark, clear all or current selection state) that should be applied before checking<br />

the state of the condition expression.<br />

3. One or more actions to be performed when the condition is checked and evaluates to true. Typical<br />

actions include showing a message in a pop-up window or sending a message as an e-mail to one or<br />

more recipients. Further actions can be programmed via macros.<br />

When an alert is checked and the condition is met and the action(s) performed, it can be said that to have<br />

fired. <strong>QlikView</strong> alert checks can be triggered in three different ways:<br />

a. Automatically in the <strong>QlikView</strong> layout when there is a probability that the document’s data has<br />

changed, i.e. when the document is opened, when the script has been executed or when a Reduce<br />

Data operation has been performed.<br />

b. <strong>Manual</strong>ly from a Internal Macro Interpreter (page 873) via special Automation APIs. Refer to the<br />

<strong>QlikView</strong> file APIguide.qvw (a very useful <strong>QlikView</strong> file describing the use of the macro functionality<br />

in <strong>QlikView</strong>, which is normally installed with the program) for details.<br />

c. Externally from programs running <strong>QlikView</strong> in batch mode which have a special Automation API to<br />

retrieve a list of fired alerts from a given context.<br />

Use caution when creating alerts, large amounts of macro-triggered alerts can make the document sluggish!<br />

150

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!