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.

getregistrystring('HKEY_LOCAL_MACHINE\SOF-<br />

TWARE\QlikTech\<strong>QlikView</strong>Server\Settings 7','EnableSessionLog')<br />

qlikviewversion()<br />

returns the full <strong>QlikView</strong> version and build number (e.g. 7.52.3797.0409.3) as a string. This function is only<br />

available in <strong>QlikView</strong> builds after 7.52.3795.<br />

MsgBox(str msg [, str caption [, mb_buttons [, mb_icons[, mb_defbutton]]]]<br />

)<br />

This function can be used in the script only and opens a message box during the script execution. The parameters<br />

msg and caption are used as message and caption texts, respectively. The parameter mb_buttons defines<br />

what buttons will be shown in the message box, according to:<br />

0 or 'OK' for a single OK button,<br />

1 or 'OKCANCEL' for two buttons, OK and Cancel,<br />

2 or 'ABORTRETRYIGNORE' for three buttons, Abort, Retry and Ignore,<br />

3 or 'YESNOCANCEL' for three buttons, Yes, No and Cancel,<br />

4 or 'YESNO' for two buttons, Yes and No,<br />

5 or 'RETRYCANCEL' for two buttons, Retry and Cancel.<br />

The parameter mb_icons defines what icon will be shown in the message box, according to:<br />

0 or empty string for no icon,<br />

16 or 'ICONHAND' for an icon with an X, used for critical errors,<br />

32 or 'ICONQUESTION' for an icon with a question mark,<br />

48 or 'ICONEXCLAMATION' for icon with an exclamation mark, used for minor errors, cautions and<br />

warnings<br />

64 or 'ICONASTERISK' icon with an i, used for informational messages.<br />

The parameter mb_defbutton defines what button will have focus when the message box is shown, according<br />

to:<br />

0 or 'DEFBUTTON1' if the first button should have focus,<br />

256 or 'DEFBUTTON2' if the second button should have focus,<br />

512 or 'DEFBUTTON3' if the third button should have focus,<br />

768 or 'DEFBUTTON4' if the fourth button should have focus.<br />

The function returns an integer that shows what button has been pressed by the user, according to:<br />

1 for OK,<br />

2 for Cancel,<br />

3 for Abort,<br />

4 for Retry,<br />

5 for Ignore,<br />

6 for Yes,<br />

7 for No<br />

The parameter 3, 4 and 5 will internally be added, so if numeric values other than the above mentioned ones<br />

are used, you may get an unexpected combination of icons and buttons.<br />

The message box function returns NULL if the dialog cannot be shown.<br />

Example:<br />

Load<br />

MsgBox('Message 2', 'msgbox', 'OKCANCEL', 'ICONASTERISK') as x, 2 as r<br />

autogenerate 1;<br />

Input(str cue [, str caption])<br />

332

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

Saved successfully!

Ooh no, something went wrong!