- Miguel Leeuwe
- PowerBuilder
- Wednesday, 19 July 2023 09:31 PM UTC
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.
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.