Hi,
I created a checkbox on a user defined form and associated it with a user defined datsource to set its value based on a setting in the database during form load. Once the form loads, I am not able to change the state of the checkbox i.e. If its checked during form load, then I am not able to uncheck it by clicking oin the form and vice versa. I am using VB.NET and SDK 6.5. Any help is appeciated.
Thank You,
Gopal Viswanathan
Hi,
I've tested it with VB.NET & SDK 6.5.
In case the CheckBox is not clickable - that means that your datasource is not connected properly.
Use this syntax to bound your CheckBox to a userDataSource:
<i>'Adding the User DataSource</i>
oDS = oForm.DataSources.UserDataSources.Add("USDS", SAPbouiCOM.BoDataType.dt_SHORT_TEXT, 1)
<i>'Binding the CheckBox</i>
oChkB.DataBind.SetBound(True, "", "USDS")
Regards,
Yaniv G.
SDK Consultant,
SAP Manage Israel.
Add a comment