cancel
Showing results for 
Search instead for 
Did you mean: 

Make Invisible the table in webdynpro ABAP

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (5)

Answers (5)

sap-harshada
Participant
0 Kudos

I tried solution given by Rohit and it works!!

Thanks

arjun_thakur
Active Contributor
0 Kudos

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

former_member40425
Contributor
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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.