on 08-10-2006 6:44 AM
Hi,
Any one give reply in web dynpro UI elements visible or not visible based on some condition at runtime?
Hi Kumar,
Define a context attribute of type boolean.Map this to the "enabled" property of the UI element like the Input field. Now as you change the context value at rutime the property gets enabled/ diabled.
wdContext.nodeTest().enabledAttr(true);
or
wdContext.nodeTest().enabledAttr(false);
Hope this helps.
Regards,
Arun
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Create value attribute as "sample"
select that "sample" value attribute->properties->
Click on type->type selection window will pop up
->Dictionary simple type ->com.sap.ide.webdynpro.uielementdefinitions->visiblity
bind this "sample" value attribute required to visible property of UI elements.
//wdDoInit()
wdContext.currentContextElement().set<ContextAttrName>(WDVisibility.NONE);
OnAction handler
wdContext.currentContextElement().set<ContextAttrName>(WDVisibilty.VISIBLE);
Again you can toggle between visible and non visible
Regards
Suresh
Hi,
bind the attribute type 'WDVisibility' to the visible property of the UIElements.
depends upon your condition you can show or hide the UIElement using WDVisibility.VISIBLE and WDVisibility.NONE
regards
karthik
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.