Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to override Me.Save() function for encrypted table
Message
From
18/12/2008 23:21:22
 
 
To
17/12/2008 09:28:24
Timothy Bryan
Sharpline Consultants
Conroe, Texas, United States
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Environment versions
Environment:
VB.NET 1.1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01367744
Message ID:
01368736
Views:
21
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.
Previous
Reply
Map
View

Click here to load this message in the networking platform