hi,
I want to do a test in the bussiness logic.
but seems it does not work.
I have a user table, and the Password column set as IsNotNull.
and I creat a DataDll as org.functionname.dataobject ,
and i add the connection and table to Scheam Designer just let designer set as default.
and then add a simple function as EncryptPassword(ByVal password As String) As Byte()
finally trigger the event in dataset_UserDetails_BeforeFieldChange,
set vale as
If e.Field.Name = "EncryptedPWD" Then
e.NewValue = EncryptPassword(e.NewValue)
and compile it. ---it is ok.
than i creat a window add few textboxs, lables , a c1navigator and add reference
to org.functionname.dll and bind all the textbox and c1navigator. ---compile ok.
but when i press the add button of navigator, a warning show up:
"Object can not tranfer DBNULL to anyother type"----ok go on
the nav show row 1 of 1 ( Table is blank )
and i add the vale into textbox and update or apply. a navigator warning show:
field "Password"can not be null or empty.
just can not add the value to it.
any idea what is wrong??
![]()
![]()
![]()


Reply With Quote