Quote Originally Posted by Sam Cannone View Post
I have imported the CodeJock DateTimePicker as a dbaware control. Placed it on a view and set the binding properties i.e. server and column from the relevant main table.

The column is a Date Time column stored in an MSSQL table. As per the VDF help I add the ControlValue functions into the class and link it to the ComValue bindable property in the control

The problem is that if I select or manually change the value in the dbform and hit save then nothing gets written back to the table.
There's only one little piece missing. There are basically three things you need to glue the control value binding:
Code:
    Object oComDbDateTimePicker1 is a cComDbDateTimePicker

        ...

        Function ControlValue Returns String
            Function_Return (ComValue(Self))
        End_Function

        Procedure Set ControlValue String sVal
            Set ComValue to sVal
        End_Procedure

        Procedure OnComChange
            Send OnControlValueChanged
        End_Procedure
...
The OnControlValueChanged glue is what makes the DDO pick up the changed value, without that it doesn't see the changes.

I'm not really sure why the OnControlValueChanged glue is not documented, but it's really needed. I have to look into that and see if it's been changed for some reason or just never really documented correctly.