Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SaveEntity does not display Error Message
Message
From
18/06/2008 14:34:07
Timothy Bryan
Sharpline Consultants
Conroe, Texas, United States
 
 
To
18/06/2008 12:25:08
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Environment versions
Environment:
ASP.NET
OS:
Windows XP SP2
Database:
MS SQL Server
Miscellaneous
Thread ID:
01325030
Message ID:
01325207
Views:
16
Hi Al,

Ok, I see what you are talking about now.
You sorta answered this yourself I think. The page save method is within mmBusinessWebPage and has DisplayBrokenRules and other related methods for handling the page stuff including the message. When you call SaveEntity you are calling a method in the business object in this case in mmBusinessObjectGeneric of the framework. It does return the broken rules to you but you skiped the page in your loop. If you want to use the SaveEntity method of the business object bypassing the page it would be pretty easy to just add the page message yourself when you get the results back.

I hope that helps.
Tim

Update: I could also add - if you wanted to call DisplayErrors() method and pass in a rule object that should do it. This is what the save method ends up calling to display the page message.


>This is for web pages.
>
>I am refering to the general message that is supposed to display on the web page when there is a broken business rule. This message typically says "Unable to save the current data. See the error icons for details." It is displayed with the error icons that are control specific.
>
>The message displays properly when I use the page save method, but not when I use the entity save method.
Timothy Bryan
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform