Hi all,
I have a transaction (n_tr) object that uses its sqlpreview event to log all embedded SQL, to w_sqlspy (PFC classes).
It works great, but I'd like to get information of where this embedded sql came from. It is really difficult to simply look at the sql and know where it came from.
I can imagine doing something with Windows, setting a variable in gnv_app to whichever window has been opened / activated, but if for example the code creates a non visiual object that has a lot embedded SQL, I don't know how to obtain that object in the transaction object.
I think it might be very difficult, but maybe someone has done something similar and has some genius idea?
TIA, regards.
regards