Appeon Web handling of OLEObject errors

1
0
-1

As I understand it, none of the traditional PB methods of catching and handling OLEObject errors are available in Appeon Web, like try/catch blocks, the ExternalException event, and the SystemError event.

I understand that Appeon Web does its own handling of such errors somehow, but could someone please explain what it actually does? I presume there's a messagebox, but then is it ignored? Or does it crash the program (as an unhandled exception would in PB)? Or what?

Thanks.

Question Tags: 

Answers

Dan Cooperstock answered Appeon Web handling of OLEObject errors

1
0
-1

I don't understand why try/catch/finally can't be supported - it definitely exists in JavaScript. I just tested the following script to access some dBase data with ADO within an HTML web page, running in IE, and it worked perfectly, including nicely handling any errors with the alert in the catch clause:

<script type="text/javascript">
try
{
 var conn = new ActiveXObject("ADODB.Connection");
 conn.ConnectionString = "Driver={Microsoft dBASE Driver (*.dbf)};Dbq=full path to directory holding dBase fields;";
 conn.Open();
 var rs = new ActiveXObject("ADODB.Recordset");
 rs.open("select * from Members", conn);
 alert(rs.Fields(0).Name + ": " + rs.Fields(0).Value);
}
catch (e)
{
 alert (e.message)
}
finally
{
 rs.Close();
 conn.Close();
}

Appeon Support Team answered Appeon Web handling of OLEObject errors

1
0
-1

Hi,

We don't have a feasible workaround for this currently. But we will record it as a requirement in our CR pool, I will get back to you once we have a plan to support this feature.

Regards,
ZhaoKa

Dan Cooperstock's picture

ZhaoKa, could you please at least tell us how it is actually handled in Appeon Web now? When there is an error, what does the application do? Give a message? Exit? Continue? Surely that minimal information should be available, and should be included in the documentation (which it isn't!).