Enhancement on SAP CRM Web UI page toolbar
2011-07-19 18:05
651 查看
With CRM Web UI Framework, we could enhance the UI as of CRM 7.0. A general guide is provided here. With the guide, we could easily enhance the blocks in one CRM Web UI page based on the technical information about the block (via F2). However, when the request was on the toolbar, we can see that if we put the cursor on the toolbar, only the general view ‘CRM_UI_FRAME’ is shown.
It might be confusing for further enhancement from here. However, if we double click on any of the grey button like ‘Save’ and ‘Cancel’ then press F2, it will work and show the right component information for enhancement.
It might be a little bit different with the enhancement on the assignment blocks (maybe not in essential parts).
Let’s use a simple enhancement here to hide the button ‘Start’ in this blog. :)
1) Confirm the enhancement point
Goto BSP_WD_CMPWB, and find out the component CPG_MAIN. Select out the view related and we found the code related to the buttons located in the Toolbar related methods of the view.
2) Create the enhancement set.
Via BSP_WD_CMPWB, create an enhancement set to include the enhancement.
3) Create enhancement afterwards on the view ‘CPG_MAIN/OPOverview’.
A new BSP application will be automatically created (with the name you will need to input here) to hold the enhancement. Just add the enhancement to the Repository.xml file.
If everything runs fine, you will get the enhanced view in black color afterwards.
4) You need to redefine the method ‘IF_BSP_WD_TOOLBAR_CALLBACK~GET_BUTTONS’. As we just need to hide the ‘Start’ button, so we just copy most of current code from the standard method. And comment the code which was meant to show the ‘Start’ button.
5) Save and activate the enhanced implementation class & method.
6) Now we need to enable this enhancement set so that the UI could use the enhancement we made.
This is done in SM30, we need to maintain the mapping between the enhancement set and the client in the view BSPWDV_EHSET_ASG.
After that, when we locate to the same page, the toolbar will not show the ‘Start’ button anymore.
Hints:
1) You can check the view cluster BSPWDVC_CMP_EXT via SM34 to understand the relationship between the detail enhancements and the enhancement set.
2) Please take care of the private methods and variants when redefine the methods. You might need to copy more than the code fragment of the standard method.
(The end)
It might be confusing for further enhancement from here. However, if we double click on any of the grey button like ‘Save’ and ‘Cancel’ then press F2, it will work and show the right component information for enhancement.
It might be a little bit different with the enhancement on the assignment blocks (maybe not in essential parts).
Let’s use a simple enhancement here to hide the button ‘Start’ in this blog. :)
1) Confirm the enhancement point
Goto BSP_WD_CMPWB, and find out the component CPG_MAIN. Select out the view related and we found the code related to the buttons located in the Toolbar related methods of the view.
2) Create the enhancement set.
Via BSP_WD_CMPWB, create an enhancement set to include the enhancement.
3) Create enhancement afterwards on the view ‘CPG_MAIN/OPOverview’.
A new BSP application will be automatically created (with the name you will need to input here) to hold the enhancement. Just add the enhancement to the Repository.xml file.
If everything runs fine, you will get the enhanced view in black color afterwards.
4) You need to redefine the method ‘IF_BSP_WD_TOOLBAR_CALLBACK~GET_BUTTONS’. As we just need to hide the ‘Start’ button, so we just copy most of current code from the standard method. And comment the code which was meant to show the ‘Start’ button.
5) Save and activate the enhanced implementation class & method.
6) Now we need to enable this enhancement set so that the UI could use the enhancement we made.
This is done in SM30, we need to maintain the mapping between the enhancement set and the client in the view BSPWDV_EHSET_ASG.
After that, when we locate to the same page, the toolbar will not show the ‘Start’ button anymore.
Hints:
1) You can check the view cluster BSPWDVC_CMP_EXT via SM34 to understand the relationship between the detail enhancements and the enhancement set.
2) Please take care of the private methods and variants when redefine the methods. You might need to copy more than the code fragment of the standard method.
(The end)
相关文章推荐
- 创建网页Video上的悬浮工具条(Create toolbar overflow video on webpage)
- 创建网页Video上的悬浮工具条(Create toolbar overflow video on webpage)
- SAP CRM WebClient UI Tables
- (C#) A demo on how to auto fill out the "account" value in log in web page in "WebBrowser" control.
- CS0120: 非静态的字段、方法或属性“System.Web.UI.Page.Request.get”要求对象引用的解决办法
- Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The s
- ONJava.com -- Web 服务实现中的概念分离 --> page 3
- 非静态的字段、方法或属性“System.Web.UI.Page.ClientScript.get”要求对象引用
- System.Web.UI.Page.RegisterStartupScript(string, string)”已过时
- 分析器错误消息: “index.admin.index”不扩展类“System.Web.UI.Page”,因此此处不允许。
- Home | eMine: Web Page Transcoding Based on Eye Tracking Project Page
- 继承System.Web.UI.Page的页面基类
- After upgrading the ebPart Assembly "Web Part Error: A Web Part or Web Form Control on this Page cannot be displayed .."
- Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The s
- CRM WEB UI 01 BOL向导创建的搜索
- ON SAP enhancement .digest
- HTML5开发移动web应用——SAP UI5篇(8)
- Unable to start debugging on the web server. The web server is not configured correctly. See help for common configuration errors. Running the web page outside of the debugger may provide further information.
- Microsoft Dynamics CRM 2011 PageOnsave 保存的时候判断字段为必填项