16 messages in com.googlegroups.google-base-data-apiRe: Problem with Read-only property o...
FromSent OnAttachments
iqzone10 Mar 2007 01:11 
Frank Mantek12 Mar 2007 04:45 
iqzone12 Mar 2007 13:47 
iqzone12 Mar 2007 23:45 
Frank Mantek13 Mar 2007 01:00 
mont...@gmail.com13 Mar 2007 22:27 
mont...@gmail.com13 Mar 2007 22:34 
iqzone14 Mar 2007 00:30 
Frank Mantek14 Mar 2007 02:13 
Frank Mantek14 Mar 2007 02:19 
iqzone14 Mar 2007 08:31 
Frank Mantek14 Mar 2007 08:56 
mont...@gmail.com14 Mar 2007 20:02 
holy...@gmail.com09 Apr 2007 06:41 
Frank Mantek10 Apr 2007 02:12 
holy...@gmail.com10 Apr 2007 06:17 
Subject:Re: Problem with Read-only property of GBaseEntry
From:Frank Mantek (fman@gmail.com)
Date:03/12/2007 04:45:38 AM
List:com.googlegroups.google-base-data-api

If i understand this correctly, your code roughly looks like this:

Entry e = new Entry(); e.setSomeProperties() ...... e.update() or service.update(e) ?

If so, that can only work if you are setting the edit URI atom.link property on the entry as well. That would be the e.EditUri property, and it needs to get set to the EditUri of the original entry, otherwise this won't work at all. I guess you probably have to set the self.URI as well...

On 3/10/07, iqzone <4iqz@gmail.com> wrote:

Using C# and the SDK, I'm attempting to create an update routine that sends a freshly generated GBaseEntry via the GBaseService.Update() call. I'm trying to do it this way so I can avoid having to figure out exactly which attributes have changed locally, since that list is arbitrary.

My tests have indicated that this should work, except for one caveat: every time I freshly generate the GBaseEntry, the ReadOnly property is set to true. I'm using the same generation routine I use for Inserting entries, which works just fine. I cannot change the ReadOnly property, because it *itself* is read-only.

So, how do I prevent the ReadOnly property from being set, or, how do I change it once set?

Brief workflow:

Item created locally -> Generate Entry and Insert to GBase -> Item arbitrarily modified locally -> Generate new Entry and Update GBase -> Item removed locally -> Delete from GBase

Thanks,