Sunday, August 28, 2011

Re: Sending a value from a celltable to a view

now I understood what you said  that you " isn't possible cast a String type to a Key type."
you get String from url anyway, maybe you should try to change the type of banco.key as String type  or create a String field for 
banco.key and setters getters....


From: Sandney Farias <sandneyfarias@gmail.com>
To: google-web-toolkit@googlegroups.com
Cc: Abduxkur Ablimit <sugar_xj@yahoo.com>
Sent: Saturday, August 27, 2011 12:30 AM
Subject: Re: Sending a value from a celltable to a view

For example  you get the String   "RootPlace:banco/123" I got the string and extract "123", but when I'll use it in the line Datastore.query(banco).filter( banco.key.equal(key)). asSingle(); 
the key have to be a object of KEY type and isn't possible cast a String type to a Key type.

Thank`s again.
--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/zeD9Ef2FdtkJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.


0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate