PB2019R3, b2703
PostgreSQL database from Enterprise DB, v12.5
Windows 64 bit platform
32 bit, PFC-based application
I'd like to grab the name of the object when a database error occurs:
1) Embedded SQL = the name of the current window, tab, or tabpage
2) DS = the name of the datastore whose database operation failed
3) DW = the name of the datawindow whose database operation failed
Example:
A DBERROR event has been triggered and a MessageBox is created in the corp_n_tr.dberror event.
How can I find the object currently with focus in that dberror event?
Q1: Does PB have a string that stores the object currently with focus?
The only path I've come up with is to place code into the PFC to capture the object with focus, maybe in a global variable, more likely in gnv_app.is_object_with_focus (or something like that).
Q2: Is there another way to approach this?
Many Thanks,
Olan