It just sounds like you have a bug in the layer that saves your object to
the database.  How are you saving and retrieving the object?  What does your
DAO look like?  SQL?
Rereading your post I think maybe you have a class called Product and you're
wanting to get back a Product object from sql when you query the database.
 You need to set the itemClass in order to get AIR to instantiate your
specific object.  Otherwise it just comes back as a plain Object in which
case you'd get a NULL when casting to your user defined Product type.

Still seeing your code (simplified) could help.

Charlie

On Wed, Aug 19, 2009 at 11:32 AM, Hepp, Michael W.
<[email protected]>wrote:

>  Greetings All,
>
> I am wondering if it is possible to save generated Objects and then
> retrieve them in the state they were saved in... e.g. I have a product quote
> generator app created in AIR. Based on the product the user selects a number
> of options on seperate pages with radio buttons are created and added to a
> ViewStack via my AddProduct() class and the user goes through and selects
> the various options he wants for that particular product. This configuration
> can then be saved to a pdf and a local SQLite database.
>
> I am writing the AddProduct() object directly to the database, but when I
> retrieve it, is comes back in a slightly different form... an Object with
> two properties and when I try to type it to an AddProduct() I get a null
> value.
>
> I don't know if I am explaining this well enough, but any input/ideas on
> how to get this data back in the same form as the Object was save would be
> greatly appreciated.
>
> Mike
>
> -------------------------------------------------------------
> To unsubscribe from this list, simply email the list with unsubscribe in
> the subject line
>
> For more info, see http://www.affug.com
> Archive @ http://www.mail-archive.com/discussion%40affug.com/
> List hosted by FusionLink <http://www.fusionlink.com>
> -------------------------------------------------------------

Reply via email to