Hello,
In the .htm page of the view,
Try below code:
<%
DATA: ls_buttons type CRMT_THTMLB_BUTTON,
lt_buttons type CRMT_THTMLB_BUTTON_T.
CLEAR ls_buttons.
ls_buttons-type = cl_thtmlb_util=>gc_icon_edit.
ls_buttons-text = 'Edit button'.
ls_buttons-on_click = 'TOOLBAR'.
ls_buttons-enabled = 'X'.
append ls_buttons to lt_buttons.
%>
<thtmlb:toolbar id = "Myfirsttoolbar"
buttons = "<%= lt_buttons %>"
foreignUse = "true"
maxButtonNumber = "5" />
This should work.
Regards,
Ashik