on 10-08-2012 1:01 PM
Hi Experts,
In Portfolio management tab in PPM , when I click on Porfolio items, I get a list of items, which is an ALV output.
That ALV shows number of buttons in its toolbar. I am suppose to delete on of those buttons.
The alv is used under /RPM/UI_DASHBOARD component (view VI_RPM_DASHBOARD).
At present, what I see is the button "MOVE TO" gets enabled on lead select, otherwise it is in display mode.
Please find the attachment for the screen-shot. Urgent help..
Thanks & Regards,
D.Dutta.
Hi Debrath,
If you are enhancing i hope you cant delete custom toolbar button but you can set it to invisible.
Check the code where they have added the button on alv toolbar it looks like this.
before endmethod add this code.
button1->SET_VISIBLE( CL_WD_UIELEMENT=>E_VISIBLE-NONE ).
Then button will be invisible.
If it is not enhancing Remove the code from * create button which is in comment till button1->set_editor.
Regards
Madhukiran.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Madhukiran,
Thanks a lot for your reply.
I was not able locate the code you have mentioned above.
But what I found is in
Method "HANDLEIN_REUSE_WD_ALV".
They have called
wd_comp_controller->create_toolbar( ).
and in CREATE_TOOLBAR method they again called
CALL METHOD wd_this->mr_ui_class->create_alv_toolbar
furthur thay have used :
CALL METHOD ir_inm_navigation->create_dshb_nav_toolbar
Here they are filling one internal table "
LOOP AT lt_lpd_cnt_dash INTO ls_content."
which contains the list of buttons.
So my doubt is : If I can alter the internal table or delete the line which contains the "MOVE TO" button.
Thanks & Regards,
D.Dutta.
Hi Debrath,
If your sure in future you dont need MOVE TO button then before LOOP you can delete that recor from internal table or you just want to invisible button.
Read the button from internal table and set that button to invisible
check the object ref of MOVE TO button with that reference call set_visible method in this example button1 is ref.
button1->SET_VISIBLE( CL_WD_UIELEMENT=>E_VISIBLE-NONE ).
Regards
Madhukiran.
User | Count |
---|---|
81 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.