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