|
Group: Forum Members
Posts: 336,
Visits: 497
|
I have a user control which is basically like the maintenance tool strip. It has save, new, delete, edit, and undo buttons which function on a business object and linked to controls on the form. I have some business rules setup which prevent duplicate names from being entered into the database. This works perfectly when doing a New operation and saving. However, if I edit a record and then try to save it will give me a broken rule for things that haven't changed. For example, I have a FirstName and a LastName field. I want to only edit the FirstName, but leave the LastName alone. If I do this, and then save it will give me a broken rule on LastName if I'm not allowing duplicates. Is there some way around this? Maybe a setting that tells the BO not to check rules on fields that haven't changed from their original state?
|