- The DrawLAF Java
Bean can start independant database functions/procedures in an
asynchronous way.
It allows the developer to start database stored procedures and
functions without "freezing" the Forms application. Even though you
start a long time procedure, the end user can continue to work with
the screen.
It requires the JDBC driver to be configured in your Forms
installation, but it is as simple as copying the classes12.jar file
in your /forms/java folder, then add it to your formsweb.cfg's
archive tag. Because the laf_xxxx.jar has to be signed, you also
need to sign the classes12.jar with the same certificate.
Once the database connection information is given to the Bean,
you can start procedures and functions in an independant and
asynchronous way.
Each database stored function is
executed in its own independant transaction, and is
committed if no error raised or rollbacked.
Only procedures
and functions with IN parameters are allowed. Those with OUT
parameters cannot be handled.
Once the procedure/function is finished, an event is raised in
the When-Custom-Item-Event trigger to provide the following
information:
procedure name
return value for functions
error message
start time
end time
The LAF_BEAN's When-Custom-Item-Event trigger has been
updated in the laf.olb Object Library, so think to get it from the
zip file.
Test the
new /fmb/test_laf_jdbc.fmb sample dialog.