Save after edit gives broken rules on unchanged text


Author
Message
Andria Jensen
Andria Jensen
Advanced StrataFrame User (600 reputation)Advanced StrataFrame User (600 reputation)Advanced StrataFrame User (600 reputation)Advanced StrataFrame User (600 reputation)Advanced StrataFrame User (600 reputation)Advanced StrataFrame User (600 reputation)Advanced StrataFrame User (600 reputation)Advanced StrataFrame User (600 reputation)Advanced StrataFrame User (600 reputation)
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?
Reply
Trent Taylor
Trent Taylor
StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 7K
Good.  Glad to help Smile
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search