StrataFrame Forum

Save error after adding new row

http://forum.strataframe.net/Topic9265.aspx

By Joseph-Carl Theodat - 6/2/2007

Hi,

The table is emply.

1-I called BO.NewRow()

2- I filled the BO.Fields with some values without any problem and ...

The following error occured when I try BO.Save(). The BO is a simple table with Guid for some field. The BO Mapper builds fine.

I have no clue...

The event BeforeSave on the BO is not event called... A quickanswer will be greatly appreciated. Thanks in advance.

{"The given item name could not be evaluated.  The item 'Owner' does not exist on the business object."}

P.S

I tried with a MaintenanceForm but i had the same error.

I am using SQL Server Express 2005

By Peter Jones - 6/2/2007

Hi Joseph,

Maybe you don't have a column called Owner is your BO. I would go back to the BO Mapper and just double check things.

You could also put a breakpoint in after you add a new row then go to the BOs Data Table and see what we have in memory before the save is attempted.

Cheers, Peter

By Joseph-Carl Theodat - 6/3/2007

Thanks...

A simple Search in the solution resolve the problem... for some reason i add this item Owner in the B0.Designer.cs file as a required file (was added maybe during my testing BigGrin)

thanks again