General information
Category:
The Mere Mortals .NET Framework
Title:
Placement of delete rule - business objects
Environment versions
Network:
Windows 2003 Server
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only