Skip to Content
avatar image
Former Member

Changing the inputfield

hi all,

In webdynpro i have designed a screen which contains three inputfields and two push buttons. when i press button new the inputfield change to write mode and when i press view button it should changed to read mode.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    avatar image
    Former Member
    Jun 03, 2009 at 04:37 AM

    Hi Sekar,

    U can control the enabled and disabled of field using the input box property "READY ONLY".

    STEPS:

    1> CREATE A ATTRIBUTE <READ_ONLY> IN THAT VIEW.

    2> IF U CLICK THE PUSHBUTTON "NEW" , THEN SET THE <READY_ONLY> ATTRIBUTE VALUE TO

    ABAP_FALSE.

    <READ_ONLY>->set_attribute(

    EXPORTING

    name = `READ_ONLY`

    value = abap_false ).

    3> if u click some other button , the condition is reversed i,e abap_true.

    Regards,

    Rani.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jun 03, 2009 at 03:54 AM
    Add comment
    10|10000 characters needed characters exceeded

  • Jun 03, 2009 at 04:41 AM

    Hi,

    Create a context attribute of type wdy_boolean and bind it with enabled property of input field.

    and set this attribute abap_true or abap_false in the onactions of buttons according to ur req.

    regards,

    Rohit

    Add comment
    10|10000 characters needed characters exceeded