How do I return the error text from an @Dblookup
? I have similar lookups that I suspect that are returning an error so I want to have a panel that displays when a lookup error occurs.
I have:
var dbpath = @DbLookup("","Setup","Setup","EIDBServerFilename");
var tmp = @DbLookup(dbpath,"FullName",@Name("[ABBREVIATE]" ,getComponent("inputTextEmpName").getValue()),"HRLogonID");
@If(@IsError(tmp),"Error= " + @Text(tmp),"");
But I am just seeing "Error= " with no error text.
If I remove the @Text
I get "Error = undefined".
How do I get the error message if it is an error?
I looked up both @IsError
and @Dblookup
in help but as usual the help is horrendous and does not even mention @Dblookup
could return an error nor what to do about it.