Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Placement of delete rule - business objects
Message
 
To
17/07/2006 22:42:39
Bill Oeftering
Mainstreet Computers, Inc.
Belleville, Michigan, United States
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Environment versions
Environment:
C# 2.0
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01137129
Message ID:
01137439
Views:
17
Bill,

>I want to do some validation when the user deletes a record. I have code in the HookPreDelete that returns True/False and sets a broken rule message. Should put the validation in the business rules and call that method from HookPrDelete ? I was thinking in the form I would check the return from the business object delete() method and then display broken rules text. Is this the proper way ? Suggestions ?
>Seconds question: If I turn off ImmediateDelete, what do I call to send the delete to the backend ? SaveRow() error's because the record is deleted.

Your current architecture should work just fine...I've done something similar in the past.

Regarding your second question, when you turn off ImmediateDelete, what error are you getting under SaveRow()? Can you post the full call stack here?

Best Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform