on 08-07-2014 6:01 PM
Hi Sreedhara,
The DropDownByKey element has an event, onSelect, that you can use to enable or disable the other UI elements. Simply bind the enabled property of the UI elements to a context attribute of type wdy_boolean, then in the event handler method for event onSelect, set the bound context attribute value to true or false.
Cheers,
Amy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi am unable to fix my problem kindly provide the coding part how to control the ui elements enable and disable on basis of drop down by key . right now i am able to display all ui elements at once means enable and disable at once how to control them . by using the case end case we can do it .....? if it can u please provide pseudo code for that at least .
Thanks in advance kindly reply back any once today i need to close this issue .
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sreedhara,
There are many tutorials on SCN for learning Web Dynpro ABAP. If the following steps don't make sense to you, please do a search for some tutorials and read through the tutorial materials. Hopefully the tutorials will help you to become familiar with some of the basics of Web Dynpro ABAP.
Here is how to enable or disable a UI element upon selection from a DropDownByKey.
Now when a value is selected from the DropDownByKey, the SET_ENABLED action will be triggered and the IS_ENABLED context attribute will be set to either true or false. Since your UI element's enabled property is bound to this true or false value via the context binding, the UI element will change to enabled or disabled.
Good luck!
Cheers,
Amy
Hi Ram can u please provide one example with coding part that will be more help full for me
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks amy and ram can u please provide some example with coding that will be more helpful for me .
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Check this wiki for reference: Simple application to change properties of UI Elements during runtime in Web Dynpro ABAP - Web Dynpr...
Regards,
Kiran
Hi Sreedhara,
As Amy told you can control the UI element behaviour using OnSelect event of DropDownByKey.
But keep in remember, handle the else condition perfectly.
BR,
RAM.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
11 | |
10 | |
9 | |
9 | |
7 | |
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.