Dhruti90 / google-gdata1111

Automatically exported from code.google.com/p/google-gdata
0 stars 0 forks source link

Can't delete AtomEntry after update entry's property in Picasa API. #297

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Rename Entry's title xxxEntry.Title.Text to a new value.
2. Update AtomEntry to service, use PicasaService.Update() or xxxEntry.Update()
3. Delete Entry item ERROR

What is the expected output? What do you see instead?
Should Delete AtomEntry from client after rename/update it's status.

What version of the product are you using? On what operating system?
I use the latest src code, running in Windows 7 client.

Please provide any additional information below.

Original issue reported on code.google.com by G.Talk.G on 30 Nov 2009 at 5:33

GoogleCodeExporter commented 9 years ago
Delete AtomEntry without change its properties is OK!

Original comment by G.Talk.G on 30 Nov 2009 at 5:35

GoogleCodeExporter commented 9 years ago
nAre you writing this code:

Entry e = ... some way to get the entry

e.Title.Text = "some text";
e.Update();
e.Delete() -> this fails?

If so, that is normal. e.Update() returns to you a new entry, so you need to:

Entry updatedEntry = e.Update();
updatedEntry.Delete();

Frank

Original comment by fman...@gmail.com on 1 Dec 2009 at 11:15

GoogleCodeExporter commented 9 years ago
Thank you so much fmantek!

As you mentioned above, I've solved the problem. I didn't realize Update() 
return a
new updated entry object, when I use PicasaService.UpdateAsync() method. 

Thanks for your quick response again.

Original comment by G.Talk.G on 1 Dec 2009 at 1:18

GoogleCodeExporter commented 9 years ago
Glad it is working for you.

Frank Mantek

Original comment by fman...@gmail.com on 1 Dec 2009 at 1:28