TzDatasource
Posted: 03.11.2012, 16:18
Can i develop a TzDatasource to trigger error events to TzDatasource.
When we have a Tdatamodule used for all software we cant set error messages for specific purposes we dont know in which form we where and the "DbControls used to exec error".
So can i develop a TzDatasource and you set then
On procedure internaladd and internalupdate
begin
For each Tabledatasource = TzDatasource do
TzDatasource.OnPostError
TzDatasource.OnEditError
end
So we can catch the errors on the correct datasource to set actions to the datasource dependent Dbcontrols.
When we have a Tdatamodule used for all software we cant set error messages for specific purposes we dont know in which form we where and the "DbControls used to exec error".
So can i develop a TzDatasource and you set then
On procedure internaladd and internalupdate
begin
For each Tabledatasource = TzDatasource do
TzDatasource.OnPostError
TzDatasource.OnEditError
end
So we can catch the errors on the correct datasource to set actions to the datasource dependent Dbcontrols.