on 06-03-2009 4:30 AM
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.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.