cancel
Showing results for 
Search instead for 
Did you mean: 

Tabstrip - Hiding tabs by binding 'Visible' property is not working

Former Member
0 Kudos

Hello,

I have a tabstrip in a view of which I want to hide a few tabs depending on the data that's coming in. I have bound the visible property of those tabs to an attribute in the context (this is filled in another component).

When I read the context in the WDDOINIT of the view, I see the attribute to be set to not visible ('01'). So the attribute is filled in right. But the tabs with visibility bound to this attribute are still visible.

Can anyone help me out with this?

Regards,

Neha

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member

The visibility property in this case was WDY_BOOLEAN unlike all other components where visibility is WDUI_VISIBILITY.

Former Member
0 Kudos

Hi,

what you could do is :

define an attribute : set_visible type wdy_boolean.

bind this attrbute (set_visible) to the field visible of your tab.

in the method WDDOINIT set your attribute set_visible to abap_false.

that's all.

Regards

Former Member
0 Kudos

Hi Neha,

You have to bound to the attrubute type Char1. Because the binding property VISIBLE for Tabstrip is the checkbox. So it can store space or X in to that. Then only it will effect to visibulity. Not 01 or 02 what you will do for input fields and others.

So change the type of the attrubute to char1 and put the value space or X. Then you will get the Effect.

Warm Regards,

Vijay.