I have an EditDataForm spec. I am trying to rebind a FormField named EDUCATIONALHISTORYID that uses a simple data list when the CONSTITUENTID field is updated. The simple data list takes CONSTITUENTID as a parameter. I have code to do this when the when the UIFieldChanged event fires. This causes a loop, the event fires correctly when the CONSTITUENTID is changed, and then it updates EDUCAITONALHISTORYID which causes it to fire again and begin looping.
I need a way to know that it was the CONSTITUENTID field that was changed, or some other solution.
Public Class BulkEditFundRecipientDataFormUIModel
Private Sub BulkEditFundRecipientDataFormUIModel_UIFieldChanged(sender As Object, e As UIFieldChangedEventArgs) Handles Me.UIFieldChanged
For Each m In DESIGNATIONRECIPIENT.Value
If m.Selected = True Then
m.EDUCATIONALHISTORYID.ResetDataSource()
End If
Next
End Sub
End Class
Normally I would just debug, and peer into “e” and see what I’ve got. Unfortunately in my current situation I have no debugging ability.