cancel
Showing results for 
Search instead for 
Did you mean: 

Data type to enable/disable

Former Member
0 Kudos

Hi,

I'm looking for a data type (attribute that I will create in the context) to map for enable/disable a tab from my tabstrip.(for example)

Like WDUI_VISIBILITY to hide/show UI Element.

Thanks !

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

HI ,

You can use WDY_BOOLEAN.

Thanks,

Aditya.

Answers (4)

Answers (4)

Former Member
0 Kudos

Always for properties like READ ONLY and for VISIBILITY you can always use attribute with data type : WDY_BOOLEAN.

vishesh_malik
Participant
0 Kudos

Hi Benjamin,

You can use WDY_BOOLEAN for enabling/disabling any UI element if you want to enable then bind an attribute of WDY_BOOLEAN type to ENABLED property of UIElement and set the attribute as 'X' otherwise set it as '' (i.e. Blank) to diable that UIElement .

You may also use BOOLEAN datatype but here you will have to set it 'X' for enabling and "space" or ' ' for disabling.

Hope it clarifies.

Please award points if it helps.

Best Regards,

Vishesh

Former Member
0 Kudos

WDY_BOOLEAN

WDUI_VISIBILITY

gill367
Active Contributor
0 Kudos

WDY_BOOLEAN is the type which you can use.

its value you can set abap_true or abap_false

respectively for enabling or disbaling

thanks

sarbjeet singh