Skip to Content
0
Former Member
Jul 23, 2009 at 11:20 AM

wdDoModifyView hide/unhide UI element?

27 Views

Hi,

I'm customisation ESS addresses screen. I have added new UI dropdown element, this UI element should be visible only for particular infotype subtype (P0006, 1). I mean the subtypes are permenant address, emergency address. I have to hide this UI dropdown element when permenant address screen is shown, but for emergency address it should be visible. I have put below code in wdDoModifyView method

if(subtype==permanentaddress) { // pls ignore this line

IWDDropDownByKey test = (IWDDropDownByKey) view.getElement("DropDownbykey");

test.setVisible(WDVisibility.NONE);

} else {

test.setVisible(WDVisibility.VISIBLE);

}

When I first login and view permanent address screen I don't see dropdown UI element but when I try to view emergency address the UI is still not visible. Do I have to change the above code? Isn't wdDoModifyView called everytime.

Thanks

Praveen