Skip to Content
avatar image
Former Member

How to make Dropdown control visible/invisible runtime?

How to make Dropdown control visible/invisible at runtime? Please provide me complete code

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • avatar image
    Former Member
    Dec 29, 2006 at 11:52 AM

    You can control the visibility of any UI element by

    - binding the "visible" property to a context attribute of type "Visibility" (DDIC type)

    - setting the context attribute value at runtime to any of the values of type WDVisibility

    Armin

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Dec 29, 2006 at 11:56 AM

    Hi satyanarayan,

    See this thread:

    programmatically hide UI element

    make UI invisible dynamically

    Visibillity

    Regards, Suresh KB

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Dec 29, 2006 at 12:38 PM

    You can control the visibility by binding the Visibility property with the COntext value attribute of type boolean.

    at run time set the value of context to 0/1. ,it will work.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Dec 29, 2006 at 07:37 PM

    Hi,

    You can set the Dropdown control visiblity at runtime by

    1) declare a context attribute say(dropDownVisibility) of type <b>Visibility</b>.

    2) bind the <b>Visibility proprty </b>of Dropdown to the context attribute(dropDownVisibility).

    3) Then depending on conditon set the context attribute value.

    ex: boolean a = true;

    <b>if(a)

    wdContext.currentContextElemnt.setdropDownVisibility(WDVISIBILITY.VISIBLE);

    else

    wdContext.currentContextElemnt.setdropDownVisibility(WDVISIBILITY.NONE);</b>

    Regards,

    Jhansi

    Add comment
    10|10000 characters needed characters exceeded