Hi Kevin,
I have two BizObjs binded in my web forms. Here is my codes for the save function.
Private Function SaveAddress() As Boolean
Dim saveResult As mmSaveDataResult
Me.oAddress.TransactionBegin()
saveResult = Me.Save(Me.oAddress)
Select Case saveResult
Case mmSaveDataResult.RulesPassed
Me.oAddress.TransactionCommit()
Return True
Case mmSaveDataResult.RulesBroken
Me.oAddress.TransactionRollback()
Return False
Case Else
Me.oAddress.TransactionRollback()
Return False
End Select
End Function
The save function for the other BizObj is similar. Whenver there is any broken rules, the error message will be duplicated, thanks.