cancel
Showing results for 
Search instead for 
Did you mean: 

Turn invisible

Former Member
0 Kudos

Please I should turn an UI invisible in runtime, how can I do that ?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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 );

}

Answers (2)

Answers (2)

Former Member
0 Kudos

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

Former Member
0 Kudos

You can but you shouldn't.

Armin

Former Member
0 Kudos

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