Beta 3.0 SQL Server ReadOnly problem
Posted: Thu 10 Sep 2009 12:10
Hi,
We are using TClientDataSet and sometimes, for display purposes, we must modify some of the field values on client site without changing them in database (the field is returned in the query with a 0). I can´t edit this field in the TClientDataSet in SQL Server with the error: "Field "FieldName" cannot be modified".
With Oracle (UniDac) or the DevArt dbexpress (Oracle and SQL Server) it works fine.
In this case TUniQuery does not use any UpdateSQLs.
I have tried SetFieldsReadOnly := False but the field has ReadOnly = True;
I set ReadOnly := False to the field but when I do a ClientDataSet.Post I have the error "Trying to modify read-only field".
I set ProviderFlags := [] to the field but it does not make any difference.
How i can ignore the update of a ReadOnly field to edit a TClientDataSet in SQL Server without a SQLUpdate?
Thanks a lot.
We are using TClientDataSet and sometimes, for display purposes, we must modify some of the field values on client site without changing them in database (the field is returned in the query with a 0). I can´t edit this field in the TClientDataSet in SQL Server with the error: "Field "FieldName" cannot be modified".
With Oracle (UniDac) or the DevArt dbexpress (Oracle and SQL Server) it works fine.
In this case TUniQuery does not use any UpdateSQLs.
I have tried SetFieldsReadOnly := False but the field has ReadOnly = True;
I set ReadOnly := False to the field but when I do a ClientDataSet.Post I have the error "Trying to modify read-only field".
I set ProviderFlags := [] to the field but it does not make any difference.
How i can ignore the update of a ReadOnly field to edit a TClientDataSet in SQL Server without a SQLUpdate?
Thanks a lot.