After a put(), the entity that was written is updated with its new
key, which you can access with entity.key(). The put() call itself
also returns the key (or list of keys) that were written.

-Nick Johnson

On Apr 15, 2:57 pm, bamkraxler <[email protected]> wrote:
> I have a form that a user fills out and submits to the datastore.
> Data is inserted using the put() method.  After the insert I would
> like to immediately query the datastore and display to the user that
> which was committed.  This is fairly standard stuff and is supported
> in various ways (some better than others) in a lot of different
> databases -- been doing it for years.  Apparently there is no way to
> do this with the GAE, however, as the key(), though automatically
> generated by the database, is not returned as a property of the
> instance that called the put() method.  Is there a way to get the key
> belonging to a put()?

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to