Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SaveEntity does not display Error Message
Message
De
18/06/2008 14:34:07
Timothy Bryan
Sharpline Consultants
Conroe, Texas, États-Unis
 
 
À
18/06/2008 12:25:08
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Versions des environnements
Environment:
ASP.NET
OS:
Windows XP SP2
Database:
MS SQL Server
Divers
Thread ID:
01325030
Message ID:
01325207
Vues:
17
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform