on 10-21-2008 8:49 PM
Please I should turn an UI invisible in runtime, how can I do that ?
To change the variant to invisible you can follow this example:
if( wdThis.wdGetContext().nodeHoleritValoresTotalVentimentos().size()==0 ){
layoutElem.setTblTotalVencimentosVisible( WDVisibility.NONE );
}else{
layoutElem.setTblTotalVencimentosVisible( WDVisibility.VISIBLE );
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Samuel,
Or instead of creating a context attribute ...you can straight away set the Visible property of the UI Element in the wdDoModifyView() as :
IWD<UIElement> ui = (IWD<UIElement>)view.getElement("UIElementId");
ui.setVisible(WDVisibility.NONE);
Hope it help..
Shikhil
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You need to create an variant at the context with the type invisible and you can bind this variant to your UI, after IT you change the value
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.