Re: HMG 3.0.23
Posted: Tue Mar 02, 2010 2:44 pm
This is partially trueraumi75 wrote: I understand. After all there was no problem saving the data to pgrdd.
As I've already posted, according my tests (I must do a lot more yet) it is possible to save changes to the backend table, but you must respect some rules that are different that ones for standard RDDs.
With PostGre, if you want to add a record and put some value in an field of it, you could do the following:
Code: Select all
Append Blank
Replace SomeField With Somedata
This is reasonable since this is a rule imposed by the server, but it is different than the dbf RDDs behavior.
So, in a non-buffered environment if a Grid user adds a record and then add a value to a non-primary key field it can't be processed.
Working fully buffered will be the processing easier, but, that limitation will still exist.
So, I guess that the user should be informed at 'Save' time if a primary key field was not filled to avoid the fatal PostGre RDD error.
To handle that we should know which is the primary key field.
If Postgre RDD can inform that to us, there is no problem, if not, we should add a property to grid for that.
As I've already said, I must do more tests yet. I could missed something and I could have a wrong perspective about that.