Skip to Content
author's profile photo Former Member
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 a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    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 a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.