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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

38 Input Box<br />

The input box is a sheet object that is used for entering data into <strong>QlikView</strong> variables and displaying their<br />

values.<br />

Right-click on the input box to display the Input Box: Object Menu (page 519). It can also be accessed<br />

from the Object menu, when the input box is the active object.<br />

38.1 Using the Input Box<br />

An input box consists of three columns in a multi box like layout. The first column shows a list of variables.<br />

The second column equal signs '=' and the third column the values of the variables. It can contain one or<br />

many variables, each one on a separate row.<br />

Variables in <strong>QlikView</strong> are named entities containing a single data value, unlike fields which can (and normally<br />

do) contain multiple values. Also, whereas fields get their values from load and select statements in<br />

the script, variables get their values from let and set statements in the script, via Automation calls, or by the<br />

help of input boxes in the layout. For more information on variables and fields, see chapter Fields (page<br />

169).<br />

Variables can contain numeric or alphanumeric data. If the first character of a variable value is an equal sign<br />

'=' <strong>QlikView</strong> will try to evaluate the value as a formula (<strong>QlikView</strong> expression) and then display or return the<br />

result rather than the actual formula text.<br />

In an input box the current value of the variable is shown. By clicking on a value in the input box, the cell<br />

will turn into edit mode, so that a new value can be entered or the old one modified. If the variable contains<br />

a formula, that will now be shown rather than its result. The cell in edit mode will normally contain a ... button<br />

which opens up a full editor window to facilitate creation of advanced formulas. The function of a variable<br />

value cell in an input box could very well be compared to that of a cell in a spreadsheet.<br />

Sometimes the input box variable value cell will contain a drop-down icon, giving fast access to recently<br />

used values or predefined values. A variable may have input constraints attached to it, barring input of all<br />

values which do not meet certain criteria. In certain cases a variable in an input box may be read-only, in<br />

which case it is impossible to enter edit mode.<br />

38.2 Input Box: Object Menu<br />

By clicking once with the right mouse button while pointing on an input box, a float menu appears. This<br />

menu can also be found under Object in the Main menu when an input box is active. The menu contains<br />

the following commands:<br />

Properties... Opens the Input Box Properties page where its parameters can be set.<br />

519

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

Saved successfully!

Ooh no, something went wrong!