on 02-10-2006 7:18 AM
I want to display some components in some specified actions. how can i handle visibility of a component dynamically.
regards
Hi Naga,
1) Under your context, create attributes of type "visbility". (create an attribute and change it's type to Local Dictionary -> com.sap.ide.webdynpro.uielementdefinitions->Visibilty)
2) Bind the Visbility property of the required UI element to this attribute.
3) When required chnage the visbilty as below:
WDContext.currentContextElement().set<attribute name>(WDVISIBILTY.VISBILE);
/* Makes the UI element visible */
WDContext.currentContextElement().set<attribute name>(WDVISIBILTY.BLANK)
/* Makes the UI element invisbile , but it takes up the space on the screen */
WDContext.currentContextElement().set<attribute name>(WDVISIBILTY.NONE)
/* Makes it invisible and doesn't take up space too */
Hope this helps,
Best Regards,
Nibu.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
You can make use of LifeCycle property of a component.
While adding the components in the used components you can specify the lifecycle. Set the property to "CreateOnDemand" so that you can control the creation of the component.
Regards, Anilkumar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I really didn't understand what you meant by <i>VISIBILITY</i> of a component. However, if you want to control the lifecycle of a component then, you may do that by using the <i>"Life Cycle"</i> property of a Used Component. You may set it to <i>"Create on demand"</i>(default/automatic control over the lifecycle -- taken care by WDruntime) or <i>"Manual"</i>(To create and destroy manually).
Bala
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
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.