TClientDataSet editing with TMSQuery on server
Posted: Tue 25 Jan 2005 18:50
Hi,
We are using TClientDataSet in our MIDAS application and sometimes,
for display purposes, must modify some of the field values on client site
without changing them in database. In this case TQuery does not use any UpdateSQLs and it was working fine.
When I switch to TMSQuery instead of TQuery on server site, I recieve an error messages like "Field "FieldName" cannot be modified".
I cannot get rid this behavior by changing settings for TMSQuery as CachedUpdates = true.
I believe TMSQuery set all the fileds which do not belong to the first table in FROM clause to ReadOnly.
Setting Option->SetFieldsReadOnly = false does not make any difference...
How can I make all the fileds in dataset editable without automatic generation any SQLUpdate and using UpdatingTable?
May be there is another reason for this behavior?
Any help would be appreciated.
We are using TClientDataSet in our MIDAS application and sometimes,
for display purposes, must modify some of the field values on client site
without changing them in database. In this case TQuery does not use any UpdateSQLs and it was working fine.
When I switch to TMSQuery instead of TQuery on server site, I recieve an error messages like "Field "FieldName" cannot be modified".
I cannot get rid this behavior by changing settings for TMSQuery as CachedUpdates = true.
I believe TMSQuery set all the fileds which do not belong to the first table in FROM clause to ReadOnly.
Setting Option->SetFieldsReadOnly = false does not make any difference...
How can I make all the fileds in dataset editable without automatic generation any SQLUpdate and using UpdatingTable?
May be there is another reason for this behavior?
Any help would be appreciated.