3 weeks ago - last edited 3 weeks ago
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.
I had to use the button placement coding in the SingleObjectViewSet.frg portion which is nested inside the
.htm(SingleObjectViewSet.htm) page.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
4 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.