General information
Category:
The Mere Mortals .NET Framework
Title:
Handling errors/warnings from the data access layer save
Environment versions
Network:
Windows 2000 Server
Hi - We're overriding the SaveDataSet method of the SQL data adapter so that we can call a web service to save the data.
I've worked out getting error messages back and dumping them into the business rules object, but I can't seem to find a way to tell business object's SaveDataSet method that something went wrong (like when the pre-processing rules fail). The return value is just a row count.
The only way I can see to stop the rest of the save from processing is to throw an exception. I'm thinking there must be a better way that I'm not aware of.
Also, even though I populate the rules object, I don't get the popup from the business form alerting the user that there were errors (the red x's do show in the grid though).
This sounds like the same type of behavior that using stored procedures containing business logic would produce, so I'm hoping someone has solved this already.
Any help would be appreciated.
Thanks!
Jeff
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