• Toll-free  888-665-8637
  • International  +1 717-220-0012
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

jorgem
#1 Posted : Monday, November 20, 2006 11:46:46 AM(UTC)
jorgem

Rank: Member

Joined: 10/17/2006(UTC)
Posts: 66

It seems that if you click checkout on the CART.ASPX page, and there are multiple workflow errors, not all the errors are reported to the user. I'd like the user to see all the errors that are marked customerVisible. Not just the last one.

It looks to me as if this code (below) overwrites the message repeatedly, so only the last error is shown.

The problem occurs when there is more than one customer message in c.Errors.

Code:

For Each msg As BusinessRules.WorkflowMessage In c.Errors
EventLog.LogEvent(msg.Name, msg.Description, Metrics.EventLogSeverity.Error)
If msg.CustomerVisible Then
customerMessageFound = True
MessageBox1.ShowError(msg.Description)
End If
Next



I think it would be cool, too, to avoid all the code duplication and have a method that handles all this logic: MessageBox1.ShowMessages( c.Errors)

(Sorry if this is a duplicate post. I thought I posted this before, but I don't see it).
jetheredge
#2 Posted : Monday, November 20, 2006 12:07:26 PM(UTC)
jetheredge

Rank: Member

Joined: 3/1/2006(UTC)
Posts: 1,142

We will log this.
Justin Etheredge
Senior Software Engineer
BVSoftware
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

©2024 Develisys. All rights reserved.
  • Toll-free  888-665-8637
  • International  +1 717-220-0012