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.

DayNames<br />

The format defined replaces the weekday names convention of the operating system (Regional Settings).<br />

Example:<br />

Set DayNames='Mon;Tue;Wed;Thu;Fri;Sat;Sun';<br />

LongDayNames<br />

The format defined replaces the long weekday names convention of the operating system (Regional<br />

Settings).<br />

Example:<br />

Set Long-<br />

DayNames='Monday;Tuesday;Wednesday;Thursday;Friday;Saturday;Sunday';<br />

Back to Other Functions.<br />

Error Variables<br />

The following variables can be used for error handling in the script:<br />

ErrorMode page 278<br />

ScriptError page 278<br />

ScriptErrorDetails page 279<br />

ScriptErrorCount page 279<br />

ScriptErrorList page 279<br />

The values of all five variables will remain after script execution. The value of the last four variables, for<br />

error handling inside the script, is of course dependent on the use of ErrorMode=0.<br />

ErrorMode<br />

This variable determines what action is to be taken by <strong>QlikView</strong> when an error is encountered during script<br />

execution. By default (ErrorMode=1) the script execution will halt and the user will be prompted for action<br />

(non-batch mode). By setting ErrorMode =0 <strong>QlikView</strong> will simply ignore the failure and continue script<br />

execution at the next script statement. By setting ErrorMode =2 <strong>QlikView</strong> will trigger an "Execution of<br />

script failed..." error message immediately on failure, without prompting the user for action beforehand.<br />

Example:<br />

set ErrorMode=0;<br />

ScriptError<br />

Returns the error code of the last executed script statement. This variable will be reset to 0 after each successfully<br />

executed script statement. If an error occurs it will be set to an internal <strong>QlikView</strong> error code. Error<br />

codes are dual values with a numeric and a text component. The following error codes exist:<br />

1 No error<br />

2 General Error<br />

278

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

Saved successfully!

Ooh no, something went wrong!