>Hi everybody,
>
>I've just spoken with my former colleague.
>
>Here is a problem. The business object can autogenerate an ID field. With the local view this autogenerated value then saved into the database.
>
>With the CursorAdapter the autogenerated key seems to be ignored and the different key is put into the database when the record is saved.
>
>I'm thinking that there has to be the native property of the CA that is responsible for generating ID (or taking them from the cursor).
>
>Do you know what the name of the property is if this property exists? We're using GUID for our PKs.
>
>Thanks a lot in advance.
Naomi,
I insert generated key into CA cursor and have key field as updatable. ie:
insert into myCA (myPK) values (newguid())
* do whatever with other fields
tableupdate(,,,)
Cetin