on 07-05-2011 3:34 PM
HI Guru,
How to add buttons in Overview Page and View Set? I also heard there is one way of adding code in Layout(View Set) and
something other way also. Can someone please explain all of that?
Thank You,
Durgesh Pagar.
Overview Page actually doesn't have an html page.
So, you will have to do it in the IF_BSP_WD_TOOLBAR_CALLBACK~GET_BUTTONS method.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi
I have similar requirement where in which i need to add button in the over view page
so in IF_BSP_WD_TOOLBAR_CALLBACK~GET_BUTTONS i have pasted this code
DATA: ls_button TYPE crmt_thtmlb_button.
CLEAR gt_button.
ls_button-type = cl_thtmlb_util=>gc_icon_textcomponent.
ls_button-text = 'IR NOTES'.
ls_button-on_click = 'IRNOTE'.
ls_button-enabled = abap_true.
APPEND ls_button TO gt_button.
CLEAR ls_button.
but still i could not c any button....
please help me what next i need to do?
To add to Robert's answer,
1. View Set - Buttons are kept in the signature RT_BUTTONS (internal table) of method IF_BSP_WD_TOOLBAR_CALLBACK~GET_BUTTONS in the view controller.
2. Vew - You need to find out the button internal table first.
- Go to the HTML page of the view, find the thtmb toolbar tag like below:
<thtmlb:toolbar id = "tb1"
buttons = "<%= controller->gt_button %>"
maxButtonNumber = "6" />
- Here the button table is the public attribute gt_button of the view controller
- Then in the DO_PREPARE_OUTPUT, method, you can add the button into the table.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If you want to have button in toolbar area the define new button in method IF_BSP_WD_TOOLBAR_CALLBACK~GET_BUTTONS. If you want to have it placed in top of the view, then define it in method DO_PREPARE_OUTPUT.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, it is possible.
To add button to ovrview, do:
1. under attributes of class add attribute GT_BUTTON
2. Redefine method u2018DO_PREPARE_OUTPUTu2019 and add code..
DATA ls_button TYPE crmt_thtmlb_button.
CLEAR gt_button.
ls_button-type = cl_thtmlb_util=>GC_ICON_OBJECT_USER.
ls_button-text = 'some text'
ls_button-on_click = 'event name'.
ls_button-enabled = ABAP_TRUE.
INSERT ls_button INTO TABLE gt_button.
3. redefine the layout of *.htm file and add code...
<thtmlb:areaFrameSetter toolbarButtons = "<%= controller->gt_button %>"
maxButtonNumber = "3" />
User | Count |
---|---|
7 | |
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.