locked
Validation error coming from related entity RRS feed

  • Question

  • Hi,

    SL Client.  I have a details screen that allows users to edit records.  If the user edits a foreign key field, by selecting a new value via a modal window picker, if the related entity that is selected has validation errors, those errors will persist back to the details screen.  This causes confusion for the users as they can't tell where the validation errors are coming from.  there are no red boxes on the details screen because the validation errors are coming from the related entity not the entity that the details screen is based on.  Is there any way to stop the validation from functioning this way.  I tried to wrap my validation methods with: If (Not Me.details.EntityState = EntityState.Unchanged) Then...  I thought this would stop the validation from firing when the related entity itself is not changed, but that does not work.  Any ideas???

    Tuesday, July 16, 2013 2:23 PM