I have 2 maintenance forms (FormA and FormB), bound to different BO's. For the sake of simplicity, these exist as a 1-1 relationship. FormB can be opened from FormA as a modal dialog as long as the relationship exists. Both these BO's have an ApprovedByID which gets set when the user clicks an approve button that is on each of the forms. I have a custom field property in each of these BO's that resolves the ID and places the name of the person that approved the form and gets displayed on the form as well. What I want to happen is that if FormB is opened on top of FormA and the user clicks the approve button on FormB, have their name persist back to FormA. Here's what I use to set the ApprovedByID from within a separate BO.
Public
Sub SetApprovedByID(ByVal empID As Int32)' Mark this problem review approvedMe.ApprovedByEmployeeID = empID
' Check to see if a credit memo is linked to this problem review, if so mark it approved
Using loBO As New CreditMemosBO()loBO.FillByProblemReviewID(
CType(Me.ProblemReviewID, Int32))If loBO.Count > 0 ThenloBO.ApprovedByEmployeeID = empID
loBO.Save()
End IfEnd Using The data is being persisted back to the database, but is not reflecting the change on the FormA after FormB is closed. Any help would be appreciated.
Thanks