Results 1 to 2 of 2

Thread: Anyone used ComponentOne DataObject (Q3 or Q4) please help!

  1. #1

    Thread Starter
    New Member
    Join Date
    Nov 2003
    Posts
    2

    Question Anyone used ComponentOne DataObject (Q3 or Q4) please help!

    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??


  2. #2

    Thread Starter
    New Member
    Join Date
    Nov 2003
    Posts
    2
    i think it just a Type transfer problem. i just want the transfer String type to byte from the show page, and transfer byte to string from database.

    Please!! anyone help!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width