On Sun, Mar 6, 2011 at 3:38 PM, Adam Knott <[email protected]> wrote: > Does the googlekey() function only return the key on objects that have > been read from the datastore? >
Yes. But bear in mind also that the GoogleWrite() function returns the key assigned in the Datastore. The trick is that there's no "setter" for the key in CFCs. I'm not sure if it's not there for a reason or if it just wasn't implemented yet, but that would be in the base CFC so that behavior would be easy to modify I'd think. Note that you can also assign your own key to the ID/Name property and you can retrieve objects by kind and ID/Name. I'm almost done writing up a lengthy tutorial on this--what I hope this can do is not only help people learn how all this works, but also spurn lots of discussions so we can see what features or functionality people would like to see that isn't already in there, or maybe there are things in there that people would like to see work differently. -- Matthew Woodward [email protected] http://blog.mattwoodward.com identi.ca / Twitter: @mpwoodward Please do not send me proprietary file formats such as Word, PowerPoint, etc. as attachments. http://www.gnu.org/philosophy/no-word-attachments.html -- official tag/function reference: http://openbd.org/manual/ mailing list - http://groups.google.com/group/openbd?hl=en
