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.

This function can be used in the script only and opens an input box that prompts the user for a value during<br />

the script execution. The parameters cue and caption are used as message and caption texts, respectively. The<br />

function returns the entered value.<br />

The input box function returns NULL if the dialog is cancelled, closed or cannot be shown.<br />

Example:<br />

Load<br />

Input('Enter value', 'Input box') as v,<br />

Recno () as r<br />

autogenerate 3;<br />

DocumentName( )<br />

Returns a string containing the name of the current <strong>QlikView</strong> document, without path but with extension.<br />

DocumentPath( )<br />

Returns a string containing the full path to the current <strong>QlikView</strong> document.<br />

DocumentTitle( )<br />

Returns a string containing the title of the current <strong>QlikView</strong> document.<br />

GetObjectField ([index])<br />

returns the name of the dimension. Index is an optional integer denoting which of the used dimensions that<br />

should be returned.<br />

Example:<br />

getobjectfield(2)<br />

StateName ()<br />

returns the state name of the object in which it is used. The <strong>QlikView</strong> Developer can use this function to<br />

have dynamic text and colors when an object’s state is changed. It is important to note that this function<br />

works on objects only. It cannot be used in a chart expression to determine the state that the expression<br />

refers to. Below are some examples of how this function can be used.<br />

Example:<br />

Example:<br />

Dynamic Text<br />

='Region - ' & if(StateName() = '$', 'Default', StateName())<br />

Dynamic Colors<br />

if(StateName() = 'Group 1', rgb(152, 171, 206),<br />

)<br />

if(StateName() = 'Group 2', rgb(187, 200, 179),<br />

)<br />

rgb(210, 210, 210)<br />

GetExtendedProperty (name[, objectid])<br />

returns the value of a named extended property in the sheet object with the given object id. If objectid isn't<br />

given, the sheet object containing the expression will be used.<br />

Extended property is defined for extension object in its definition file.<br />

Example:<br />

333

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

Saved successfully!

Ooh no, something went wrong!