Skip to Content
0
Former Member
Nov 29, 2006 at 01:19 PM

Bind user data source - date

428 Views

I have a form that I created with an edit field "f_delDate". I am trying to bind it to a user data source of type dt_Date. Everything seems to work until it gets to the SetBound command, I keep getting the error "Form - Bad Data Source" Any ideas as to why the binding is not working?

Below is the code I am using

try {

oForm.DataSources.UserDataSources.Add("f_delDate", BoDataType.dt_DATE, 1);

SAPbouiCOM.EditText oEdtTxt = (SAPbouiCOM.EditText)oEdtForm.Items.Item("f_delDate").Specific;

oEdtTxt.DataBind.SetBound(true, "", "f_delDate");

}

catch (Exception ex) { }

Thanks

Karen