If MXApplicationException is just thrown at the autoscript, error message will be something like "error in script SOMESCRIPT at line 5 ..." - which is not so user friendly.
DataBeanContext class extends ScriptService class, so I can use ctx.error("errgroup", "errkey", ["errparam"]) to show error message properly.
But if I use ctx.yncuserinput() in APPBEAN script, I get this error in the dialog:
java.lang.NullPointerException: Cannot invoke "psdi.security.UserInfo.getConnectionKey()" because "ui" is null
So how can I handle MXApplicationYesNoCancelException in APPBEAN/DATABEAN scrpt?