on 05-25-2009 2:46 PM
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
I tried solution given by Rohit and it works!!
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
11 | |
10 | |
9 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.