Re: BO Default values

Re: BO Default values

Old forum URL: forums.lhotka.net/forums/t/3454.aspx


ozitraveller posted on Thursday, August 30, 2007

Hi

I need to load a BO with default values from the database, and I'm wondering the best method of doing this? How do I tel whether a newly instantiated object has been created as part of a fetch operation, or just a new row on a grid?

Cheers

Ozi

ajj3085 replied on Thursday, August 30, 2007

This is what DataPortal_Create is intended for.  Put your code to load the defaults in the DP_C.  If your loading an existing object from the db, you'd have that code in DP_F.  IsNew would be false in this case, and true if the object was created from DP_C.  Check out the chapter on the dataportal for more info.

ozitraveller replied on Thursday, August 30, 2007

Thanks.

Copyright (c) Marimer LLC