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

Click here to load this message in the networking platform