Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Duplicated Broken Rules Message at bottom page?
Message
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Versions des environnements
Environment:
VB 8.0
OS:
Windows XP SP2
Database:
MS SQL Server
Divers
Thread ID:
01175129
Message ID:
01175979
Vues:
9
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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform