|Home • Trainings • Quiz • Tips • Tutorials • Functional • Cert Q's • Interview Q's • Jobs • Testimonials • Advertise • Contact Us|
Enable/Disable & Show/Hide UI Elements in Web Dynpro Java
Properties for the Input Fields of Main view in Property Tab
or Disable Fields group select the Input Fields and Make the following changes
in the Property tab.
Fields in the enabled make it as Booleankey of the context attribute.
Buttons Enable and Disable in Property tab give keyToSelect as
‘E’ & ‘D’ Respectively and Selected key as ‘ Enablekey’ of the
For Enable Radio button, create an Event ‘Enable’ on
Select in Property tab.
For Disable Radio button,
create an Event ‘Disable’ on Select in Property tab.
For Show or Hide Group also
make changes in the Property tab for all Input Fields make the Visible as
VisibilityKey of The context Tab.
For Show or Hide Radio
Buttons Disable in Property tab give keyToSelect as ‘S’ & ‘H’
Respectively and Selected key as ‘ Show’ of the Context Attribute.
For Show Radio button, create an Event ‘Show’ on Select
in Property tab.
For Hide Radio Button Create
an Event ‘Hide’ on Select in Property tab.
6. Code for the onAction Methods
like Enable, Disable, Show, and Hide.
Implementation tab, write the following Code for both the Events Enable and
Disable which are created as methods.
Implementation tab Write a Piece of Code for both the Events Show and Hide which
are created as methods.
changes by clicking on save all metadata
the application tool bar.
7. Creating an application for the web dynpro project
click on application and create a new application.
8. Rebuild the project
click on Enable_Disable_Show_Hide_UI_Elements .
9. Deploy and run the application
explorer-> Enable_Disable_Show_Hide_UI_Elements -->web dynpro->Applications --> EDSH_Application.
click on Application and choose Deploy new archive and run.
see the output in the browser as shown below.
View of the Webpage, and when enable is clicked.
Disabled and Hide is Clicked
Enabled and Shown
Please send us your feedback/suggestions at webmaster@SAPTechnical.COM
©2006-2007 SAPTechnical.COM. All rights reserved.
product names are trademarks of their respective companies. SAPTechnical.COM
is in no way affiliated with SAP AG.
Graphic Design by Round the Bend Wizards