on 10-17-2008 11:49 AM
Hi Gurus,
I'm facing a strange thing.
I'm trying to delete the "Search Archive" button from the top of the User Interface in the search screen for Trade Promotion. When I click on the button F2 for technical info it retrieves me the following information:
Component: TPMOE, View: AdvancedSearchViewSet, Context Node: THTMLB, Attribute: BUTTON_1, but when I access to the view I cannot find any context node called THTMLB.
Someone of you can suggest me a way to achieve it?
I found that there something related in the Toolbar Related Methods. Do you think that if I comment the code the button will disappear?
Full of point if it helps,
thanks in advance,
best regards,
A.
Hi,
Do in this way..
1.Enhance component TPMOE
2.Enhance View AdvancedSearchViewSet
3.GoTo Impl class and chooes IF_BSP_WD_TOOLBAR_CALLBACK~GET_BUTTONS method.
4.Redefine this method.
5.Write this code
call method super-> IF_BSP_WD_TOOLBAR_CALLBACK~GET_BUTTONS
DELETE gt_button where on_click = 'SEARCHARCHIVE'. (Click event of that button.)
Regards
Gaurav
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello A,
Try doing the same way what Gaurav has suggested. But in this case the view would be "AdvancedSearchResult" ..
In the implementation class of the viewset "CL_TPMOE_ADVANCEDSEARCHRE_IMPL" there would be a method called DO_PREPARE_OUTPUT. In this method there is a method call to SETUP_BUTTONS(). Here is the place where the buttons displayed on the search result are coded. Try redefining the same method and this should suffice your requirement.
Regards,
Vinay
Hi Andrea,
a button comes from the implementation class by default.
But the F2 help shows alway context node "THTMLB".
The buttons are probably created in one of the methods of interface IF_BSP_WD_TOOLBAR_CALLBACK or in the method "DO_PREPARE_OUTPUT" of the controller implementation class.
If you enhance the component and redefine the relevant method (place your own code if you want) there should only comes up the buttons you define.
In your case the buttons are created in method IF_BSP_WD_TOOLBAR_CALLBACK~GET_BUTTONS of the controller class.
Regards,
Claudia
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
5 | |
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.