ErrorProvider problems

ErrorProvider problems

Old forum URL: forums.lhotka.net/forums/t/3764.aspx


ajj3085 posted on Tuesday, October 23, 2007

I have a business object, Document, which contains a collection of LineItems.

I now have a rule that needs to be evaluated, revolving aroudn a "special" line item, identified by its part number SHIPPING.

The rule is this; if there is a SHIPPING line item, the Shipping property of the Document MUST be set to zero.  We don't want to let users accidently double charge for shipping, since those costs are now going to be included as a normal line item.

To this end, I created a single rule method, which belongs to document.  I've attached the rule to the Items property (my line item collection), and also setup a Dependancy on the Shipping property. 

Everything works as promised, except that the error provider never appears next to the shipping text box, which is an Infragistics UltraNumericEditor.  The save button does disable... just no notification.

Am I doing something wrong?

Thanks
Andy

ajj3085 replied on Tuesday, October 23, 2007

Ok, weird.  The rule has to be attached to the Shipping property for it to work, not the Items property.

Copyright (c) Marimer LLC