on 08-14-2007 12:21 PM
How to enable a disabled text edit UI element, that is default the text edit UI element should be disabled, and if the user selects some value from the dropdown, the text edit UI should be enabled.
If the user doesn't do any operation with dropdown the text edit element should be in the disabled state itself.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Thanks Prabhakar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Prabhakar,
Could you help me with giving a sample code.
Regards,
Suresh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Here is the code...
In doInit() place this code...
public void wdDoInit()
{
//@@begin wdDoInit()
wdContext.currentContextElement().setTxtenable(false);
//@@end
}
In onAction method of DropDown UI Element, place this code..
public void onActioncompanyselect(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
{
//@@begin onActioncompanyselect(ServerEvent)
wdContext.currentContextElement().setTxtenable(true);
//@@end
}
Where,
->'Txtenable' is a boolean attribute which is bound to the 'enabled' property of TextEdit UI Element.
regards,
Prabhakar.
hi soniya,
How to enable the disabled Text edit UI dynamically, if the user selects the value from the dropdown?
regards,
Suresh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Have an attribute of Boolean type in the context, and bind it to the 'enabled' property of the TextEdit UI Element.
In the onSelect action of dropdown, write code to change the boolean attribute's value to 'true' or 'false' as required.
regards,
Prabhakar.
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 | |
25 | |
12 | |
9 | |
7 | |
6 | |
5 | |
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.