cancel
Showing results for 
Search instead for 
Did you mean: 

How to hide custom Button when using FPM_GAF_COMPONENT

Former Member
0 Kudos

Hi,

I am working on a web dynpro component and I am using FPM_GAF_COMPONENT for FPM. I have added few custom buttons to the toolbar using the component configuration. Now my requirement is to hide some of the buttons based on certain conditions. Can you please help on how to get this?


Thanks.

Rajat

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

I used the below in wdinit of my main view and it worked:

SPAN { font-family: "Courier New"; font-size: 10pt; color: #000000; background: #FFFFFF; } .L0S31 { font-style: italic; color: #808080; } .L0S52 { color: #0000FF; } .L0S55 { color: #800080; } .L0S70 { color: #808080; }

DATA: lo_cnr_gaf TYPE REF TO if_fpm_cnr_gaf,
lo_fpm TYPE REF TO if_fpm.
lo_fpm = cl_fpm_factory=>get_instance( ).
lo_cnr_gaf ?= lo_fpm->get_service( cl_fpm_service_manager=>gc_key_cnr_gaf ).
DATA lt_buttons TYPE if_fpm_cnr_gaf=>t_button.
DATA ls_button TYPE LINE OF if_fpm_cnr_gaf=>t_button.

CALL METHOD lo_cnr_gaf->get_buttons
IMPORTING
et_buttons = lt_buttons.