Skip to Content
author's profile photo Former Member
Former Member

For deactivating button

Hi,

I have created two input field & button. My requirement is after entering values to two input field and when i press button that button should be in inactive mode. So in button action what code i have to do.

please help me with coding.

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Jan 29, 2008 at 08:14 AM

    hi shyja.......

    as i have already said......

    thisi s the coding:

    <reference>->set_attribute(

    name = <atribute name>

    value = 'FALSE' ).

    it will automatically get changed.... this thing works.

    the enable property must be bound to attribute type wdy_boolean.

    ---regards,

    alex b justin

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi.

      Alex is right.

      In your context create an attribute of type wdy_boolean and bind the enabled property of the button to that

      attribute. In action handler method the buton just change the sttributes value to abap_false.

      Cheers,

      Sascha

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.