cancel
Showing results for 
Search instead for 
Did you mean: 

Changing the inputfield

Former Member
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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.

Answers (2)

Answers (2)

former_member40425
Contributor
0 Kudos

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

Former Member
0 Kudos

Hi,

[]