Skip to Content
author's profile photo
Former Member

Cannot change CheckBox state on form

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

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • author's profile photo
    Former Member
    Posted on Jun 10, 2004 at 07:31 AM

    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 comment
    10|10000 characters needed characters exceeded