Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello,
I would like to know if it is possible to make the alert of a launch action dissapear when it gives error.
thank you
have you tried error mode=0
where should i write it?
ErrorMode
Arguments:
Argument | Description |
---|---|
ErrorMode=1 | The default setting. The script execution will halt and the user will be prompted for action (non-batch mode). |
ErrorMode =0 | QlikView will simply ignore the failure and continue script execution at the next script statement. |
ErrorMode =2 | QlikView will trigger an "Execution of script failed..." error message immediately on failure, without prompting the user for action beforehand. |
Example:
set ErrorMode=0;
2) Exp
set ErrorMode=0;
load * from A;
if ScriptError = 1 then
load * from B;
elseif ScriptError = 2 then
load * from C;
else
exit script;
end if
the problem is not on the script, it´s on the button, on actions, launch a .cdm.
i would like that if it gives an error not to show the alert
Please share some sample data with sample app.
here you have an example
You may check, whether the file exists and on basis this show a text-box or the like.
¿how could it be done?
depending your purpose....
IF FILESIZE('here comes your file') THEN
EXECUTE ....
ELSE
LET iError = 1;
EXIT SCRIPT;
END IF
and in the file you may then have a textbox being visible, if iERROR is set.