Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to override Me.Save() function for encrypted table
Message
De
18/12/2008 23:21:22
 
 
À
17/12/2008 09:28:24
Timothy Bryan
Sharpline Consultants
Conroe, Texas, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Versions des environnements
Environment:
VB.NET 1.1
OS:
Windows XP SP2
Divers
Thread ID:
01367744
Message ID:
01368736
Vues:
18
Hi Tim,

I didn't regenerate the BO as we try to minize the changes. I have overrided the HookPostGetData() and HookPostAddNewRow() events and set the Columns.ReadOnly to false in the ABusinessObject class. This has resolved the Me.Save() error, however it only save the unencrypted fields but not the encrypted fields.

FYI, we have the Instead of triggers to handle the Insert/Update of encryted fields. Any update on the view will reflect the changes on the original tables and tested working in the SQL.

Codes to default the Columns.ReadOnly in ABusinessObject

Protected Overrides Sub HookPostGetData()
MyBase.HookPostGetData()

'*' Default ReadOnly to false
For Each tbl As DataTable In Me.DataSet.Tables
For Each column As DataColumn In tbl.Columns
column.ReadOnly = False
Next
Next
End Sub

Kindly advise, thanks.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform