cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to add Custom button in Std Comp IUICOBJD

ricky_shaw
Contributor
0 Kudos

Hi,
I created a z*enh for this std comp IUICOBJD to add a custom button 'Exanalysis'(say) on this view(below) to do some Buss Partner(BP) checks & validations based on BP details.

The button is NOT getting created.
I can see that there are already 2 std buttons like: Change, 'Create Contract' but its NOT allowing me to add 3rd (custom) button.
I happened to define something like a button (looks like label) but it was created elsewhere using .htm script in Page SingleObjectViewSet.htm

Component:IUICOBJD
View: SingleObjectViewSet


I re-defined the IF_BSP_WD_TOOLBAR_CALLBACK  methods but the button is not visible at all.

 

IF_BSP_WD_TOOLBAR_CALLBACK~GET_BUTTONS as below:

ls_button-type     = cl_thtmlb_util=>gc_icon_edit.
    ls_button-on_click = 'CALLEXA'.                        
*    ls_button-text     = cl_wd_utilities=>get_otr_text_by_alias( 'CRM_UIU_BT/EDIT' ). "#EC NOTEXT
    ls_button-text     = 'Exanlysis'.                       
    ls_button-enabled  = abap_true.
    ls_button-id       = 'Exanlysis'.                        
    APPEND ls_button TO rt_buttons.

 

I have similar code for DO_PREPARE_OUTPUT( ) also.

Can someone please suggest.

View Entire Topic
ricky_shaw
Contributor
0 Kudos

I had to use the button placement coding in the SingleObjectViewSet.frg portion which is nested inside the

.htm(SingleObjectViewSet.htm) page.