question about SQLLock, SQLUpdate, SQLRefresh
Posted: Thu 14 Mar 2019 16:07
Hello,
I am using a TSmartQuery tied to a TDBGrid. I do not know the SQL of the SmartQuery at design time. It is entered by the user at runtime.
In most circumstances, ODAC does a fine job of insert/update/delete statements in response to the user editing the grid. But in certain circumstances, I want to handle it and generate my own SQL for SQLLock, SQLUpdate, SQLInsert, and SQLRefresh. But I am having a hard time getting started with this because I need to do it on the fly as user makes edits in the grid.
My questions are:
1) which event should I use to do that
and
2) how can I tell which fields have been modified?
Thank you.
-John Dorlon
I am using a TSmartQuery tied to a TDBGrid. I do not know the SQL of the SmartQuery at design time. It is entered by the user at runtime.
In most circumstances, ODAC does a fine job of insert/update/delete statements in response to the user editing the grid. But in certain circumstances, I want to handle it and generate my own SQL for SQLLock, SQLUpdate, SQLInsert, and SQLRefresh. But I am having a hard time getting started with this because I need to do it on the fly as user makes edits in the grid.
My questions are:
1) which event should I use to do that
and
2) how can I tell which fields have been modified?
Thank you.
-John Dorlon