cancel
Showing results for 
Search instead for 
Did you mean: 

making a table invisible

Former Member
0 Kudos

hi all hw can i make a table invisible when the view is displayed initially..only on clicking an event the table must get displayd...

Thanks

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

hi urbashi.........

the table has a property called visibility.

bind an atrribute of type wdui_visibility to this property.

it should be inside a node.

in the wddoinit, pass value CL_WD_MESSAGE_AREA=>E_VISIBLE-NONE

to this attribute.

when the button is pressed, pass the value

CL_WD_MESSAGE_AREA=>E_VISIBLE-visible.

---regards,

alex b justin

Former Member
0 Kudos

Hi Alex,

M really sorry for bothering you but i really didn't understand these steps...

in the wddoinit, pass value CL_WD_MESSAGE_AREA=>E_VISIBLE-NONE

to this attribute.

when the button is pressed, pass the value

CL_WD_MESSAGE_AREA=>E_VISIBLE-visible.

.........i created an attribute of type wdui_visibility and then when i went to that table that i want to hide,i binded to the property....

after that i couldn't follow.....

...regards,

Urbashi

Former Member
0 Kudos

hi urbashi........

so now you have bound that attribute to teh visibility property of the table.

now in your wddoinit method,

read the attribute.

say attribute name is att1.

now set the attribute value by

nodename->set_attribute( name = <attribute name>

value = CL_WD_MESSAGE_AREA=>E_VISIBLE-NONE).

the same coding with different value must be written on the on action method of the show table event.

---regards,

alex b justin

Former Member
0 Kudos

HI ALEX....

tHANK-YOU SO MUCH....IT SOLVED MY PROBLEM....THANKS A ZILLION....

regards,

Urbashi

Answers (1)

Answers (1)

former_member182190
Active Participant
0 Kudos

Hi Urbashi,

The table element has a property visible.

Create an attribute of type wdy_boolean in the context node and bind this to the invisble property element in the layout.

Change the attribute to abap_true to make the table visible on your particular action.

Regards,

Ismail.