Problem With IsNew IsDirty Property

Problem With IsNew IsDirty Property

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


vbbeta posted on Friday, June 11, 2010

The rpoblem with my root objects is that when i save it to the data base the if i`m hiting the save button again and i check in the command window ?mCustomer.IsNew / mCustomer.IsDirty comes up =True

so what happenes is that this its inserting a new row in the dataBase instetd of updating it

RockfordLhotka replied on Friday, June 11, 2010

Are you updating your client-side reference with the result of the Save() method?

_customer = _customer.Save();

My guess is that you are ignoring the return value of Save(), and this is your problem. Read the first couple chapters of Expert 2008 Business Objects to gain understanding about how and why this works..

Copyright (c) Marimer LLC