Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Displaying Broken Business Rules
Message
De
06/04/2004 11:24:49
 
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
00892281
Message ID:
00892622
Vues:
19
>Steve,
>
>>Is there a preferred way inside the framework to display broken business rules in a web app?
>
>There is...if you check out the Dev Guide section "Integrating Business Objects with a Web Form", it shows that you can call the web form's Save() method like this:
>
>
private void btnSave_Click(object sender, System.EventArgs e)
>{
>	//  Retrieve the original DataSet from the Session variable
>	DataSet dsOrder = (DataSet)Session["dsOrder"];
>
>	// Call the Web Form's Save method, passing the business object and the original data.
>	// The business object raises a Saving event and all bound Web controls
>	// bind their data back into the DataSet
>	if (this.Save(this.oOrder, dsOrder, this.oOrder.TableName) ==
>		mmSaveDataResult.RulesPassed)
>	{
>		Response.Redirect("CustomerOrders.aspx");
>	}
>}
>
>If there are any broken rules, these are automatically displayed for you. You can also call the mmBusinessWebPage's DisplayBrokenRules() method directly.
>
>Regards,

Is there any way to get control over the display of the broken rules? I believe what you are referring to displays the broken rule next to the control on the web form. I would like to be able to display all of the broken rules in some type of summary format either on the same page or on a separate page.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform