on 04-17-2007 10:36 AM
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
The visibility property in this case was WDY_BOOLEAN unlike all other components where visibility is WDUI_VISIBILITY.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.