on 06-16-2010 1:23 PM
Hey guys,
i have a form regarding a context node and two buttons (bn_edit, bn_save). The init is:
- fields are read-only
- bn_edit is enabled
- bn_save disabled
now if the user klicks the button bn_init i want to switch to:
- fields are writeable
- bn_edit is disabled
- bn_save enabled
and vice versa when the user clicks bn_save.
I searched a lot but couldn't find the solution jet.
Can you guys please help me?
Best regards
Philipp
P.S.: I tried to create a context node and link the particular properties of the elements to this context node, but it had no effect.
Take a context attribute of type wdy_boolean. And bind this with the Input field Read only property and set the value of this attribute as ABAP_TRUE, ABAP_FALSE on the user action.
Do the same on the button property enable.
Hope it helps.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ahhh ... i tried it this way, but not by using ABAP_TRUE and FALSE.
Thank you guys! That was really good and quick!
Best regards
Philipp
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.
Hi,
Create the attribute with a type Boolean and bind it to the enable and readonly properties of the UI. Set the value to ABAP_TRUE and ABAP_FALSE according to the condition.
- Saravanan K
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.