Skip to Content
author's profile photo Former Member
Former Member

Hiding View Container UI element

Hi,

I have a window in wed dynpro application. I have one view. In the same view, i have my selection screen and output. Output is being displayed by ALV. To show the output, i have used VIEW CONTAINER UI ELEMENT. Now i would like to hide this view container UI element when the selection screen is being filled. Kindly tell me how to do it.

Thanks & Regards,

Ravi Varma

Add a comment
10|10000 characters needed characters exceeded

Related questions

4 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Mar 30, 2009 at 01:41 PM

    Hi,

    Create a context attribute for visibility WDUI_VISIBILITY.

    Bind the visible property of the VCU to this attribute. Based on the condition set this attribute value to

    01 or 02 for visibility.

    Please check the thread to acheive the same

    visibility-textlabeldropdowncontainer

    For Ex:

    if the selection screen has a variable for start_date.

    In the modify view,

    if lv_begda is initial.

    set the visibility of the VCU to false(01).

    else.

    set the visibility of the VCU to true(02)

    endif.

    Regards,

    Lekha.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Mar 31, 2009 at 03:42 AM

    Hi Ravi,

    Create an attribute of WDUI_VISIBILITY type and bind it with the visible property of the view container.

    I assume that you must be having a search button which will search the data and display in the alv table.

    In that ONACTION method of that method, set the value of that attribute to cl_wd_uielement=>e_visible-visible with the help of code wizard (ctrl+F7). This will make the view container visible.

    Refer the following code:

    DATA lo_el_context TYPE REF TO if_wd_context_element.
    DATA ls_context TYPE wd_this->element_context.
     
    * get element via lead selection
    lo_el_context = wd_context->get_element( ).
     
    lo_el_context->set_attribute(
    EXPORTING
    name = `VISIBILITY_1` " pass the attribute name here.
    value = cl_wd_uielement=>e_visible-visible). 
     

    I hope it helps.

    Regards

    Arjun

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Mar 31, 2009 at 04:58 AM

    hi ravi,

    Create a attribute with type wdui_visibility with name visibility_att.

    bind the attribute to ther view container .

    In the Action where u want to set visibility .

    writre following code.

    01,00 none

    02 Visible

    node->set_attribute( EXPORTING name = `visibility_att` value = '01' ).

    Regards

    vivekananthan.s

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Mar 31, 2009 at 05:06 AM

    This message was moderated.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.