General information
Category:
The Mere Mortals .NET Framework
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only