Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Duplicated Broken Rules Message at bottom page?
Message
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Environment versions
Environment:
VB 8.0
OS:
Windows XP SP2
Database:
MS SQL Server
Miscellaneous
Thread ID:
01175129
Message ID:
01175979
Views:
8
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
                ' Do something
                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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform