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

Make Invisible the table in webdynpro ABAP

hello all,

i have a requirement where i have two tables in a tray on one condition i have to invisible the second table.

can one suggest is it possible, if yes how?

what i have done is in a tray i put 2 tables and the buttons.Is it the right way ??

Please Help me.

Thanks,

BSREDDY

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

5 Answers

  • author's profile photo Former Member
    Former Member
    Posted on May 25, 2009 at 02:08 PM

    Hi,

    Tray is used to have expand/collapse the data to be shown to utilise the space.

    Create a context attribute for visisbiity as WDUI_VISIBILITY and bind it to the visible property of the

    2nd table.

    based on the condition use the SET_ATTRIBUTE method of the if_wd_context_node and

    set it to 01(None) or Visible (02).

    lo_nd_previous->set_attribute(
        EXPORTING
          name =  'VISIBLE'
          value = 01 ).

    You can use the tabstrip inside the Tray, where each table is shown inside the tab.

    Do you want to show the 2tables at a time or only table to be shown.

    Where are the buttons placed.

    If you want to show the tables all the time to the user then use Tranparent containers otherwise you can

    use the Tray.

    Regards,

    Lekha.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 25, 2009 at 02:08 PM

    Hello BSReddy,

    just define a context node with one attribute of type ABAP_BOOL. In one of your methods set the context element to true or false according to your needs. Bind the attribute "visible" of your table UI element to the context attribute.

    Kind regards

    Andreas

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on May 25, 2009 at 02:11 PM

    hi,

    Create context attribute of type WDUI_VISIBILITY. Use this attribute for controlling the visibility of table.

    Bind this attribute to the visibility property of table.

    To make you table visible set it as 02

    To make your table invisible set it as 01

    I hope it helps.

    Regards,

    Rohit

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on May 26, 2009 at 03:44 AM

    Hi,

    We should not hard code the values, it is better to use the constants supplied by the framework. i.e use the following values : -

    - if_wdl_core=>visibility_visible (to make it visible)

    - if_wdl_core=>visibility_none (to make it invisible).

    
    wd_context->set_attribute( name = '<attribute name>' value = if_wdl_core=>visibility_visible )." to make it visible.
     
    wd_context->set_attribute( name = '<attribute name>' value = if_wdl_core=>visibility_none ). "to make it invisible.
    
    

    Regards

    Arjun

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 13, 2009 at 08:12 PM

    I tried solution given by Rohit and it works!!

    Thanks 😊

    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.