Continuing on my quest to answer unanswered questions, empirical evidence
and to learn something more about building applications for GAE.

I found a mini reference to "A complete working example" by chance at the
foot of the GAE Datastore wiki page :
http://wiki.openbluedragon.org/wiki/index.php/GoogleAppEngine:Datastore#A_complete_working_example

These things always turn up when you aren't looking for them....

So... I dug around in svn and found under the openbd_google some very old
examples. (HEAD is at revision 1568 - these are at revision 790).  Being a
glutton for punishment I exported the demo folder into my webapp folder.
(svn://svn.openbluedragon.org/openbd/branches/openbd_google/war/demo)

Loading up /demo/gae/datastore/ I immediately get an error on line 45 -
cfquery missing attribute. Reading the datastore wiki page I notice a note
"The CFQUERY tag has the following syntax (the "dbtype" attribute is
optional):".  Putting in the attribute dbtype="google" makes this query
validate.

The next error comes at line 24 : emp02.googleWrite(kind)
It would appear that GAE/Desktop doesn't like this syntax :
googleWrite(emp02,kind) is fine though.

My last error for tonight before the wife shouts at me for waking her up or
before I crash out on the sofa;
There are two references to : googleKey=#currentResults[j].googleKey()
These throw a method not known error. Changing these references to
: googleKey=[#GoogleKey(currentResults[j])#] moves me on to an error at line
121 : unable to get an entity using keyName= MyKind, and kind=MyKeyName

 And that is as far as I've got. Attached is the updated index.cfm from the
/demo/gae/datastore folder.

Regards

Stephen
-- 
Stephen Moretti
Blog : http://nil.checksite.co.uk/
Twitter : http://twitter.com/mr_nil
More Twitter : http://twitter.com/CFOverflow

-- 
official tag/function reference: http://openbd.org/manual/
 mailing list - http://groups.google.com/group/openbd?hl=en

Attachment: index.cfm
Description: Binary data

Reply via email to