Skip to Content
avatar image
Former Member

make label visible in webdynpro code

hi,

how to set a property of a label to visible in web dynpro java code?

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Sep 05, 2008 at 09:09 AM

    Hi,

    label.setVisible(WDVisibility.VISIBLE);

    should do the trick.

    Cheers,

    Lukas.

    Edited by: Lukas Zielinski on Sep 5, 2008 11:11 AM

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 05, 2008 at 09:20 AM

    Hi,

    Create an attribute"Visibility" of type com.sap.ide.webdynpro.uielementdefinitions.Visibility

    And bind this to the visibible property of the label.

    Set any of the following values based on your requirement

    //To make the label visible
    wdContext.currentContextElement().setVisibility(WDVisibility.VISIBLE);
    //Hide
    	  wdContext.currentContextElement().setVisibility(WDVisibility.NONE);
    
    

    Regards

    Ayyapparaj

    Add comment
    10|10000 characters needed characters exceeded