16 messages in com.googlegroups.google-base-data-apiRe: Problem with Read-only property o...| From | Sent On | Attachments |
|---|---|---|
| iqzone | 10 Mar 2007 01:11 | |
| Frank Mantek | 12 Mar 2007 04:45 | |
| iqzone | 12 Mar 2007 13:47 | |
| iqzone | 12 Mar 2007 23:45 | |
| Frank Mantek | 13 Mar 2007 01:00 | |
| mont...@gmail.com | 13 Mar 2007 22:27 | |
| mont...@gmail.com | 13 Mar 2007 22:34 | |
| iqzone | 14 Mar 2007 00:30 | |
| Frank Mantek | 14 Mar 2007 02:13 | |
| Frank Mantek | 14 Mar 2007 02:19 | |
| iqzone | 14 Mar 2007 08:31 | |
| Frank Mantek | 14 Mar 2007 08:56 | |
| mont...@gmail.com | 14 Mar 2007 20:02 | |
| holy...@gmail.com | 09 Apr 2007 06:41 | |
| Frank Mantek | 10 Apr 2007 02:12 | |
| holy...@gmail.com | 10 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...
Frank Mantek Google
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,
Matthew A. Feadler Datafeeds Director iqzone.com




