How to add a custom button on CRM subgrid?

生来就可爱ヽ(ⅴ<●) 提交于 2021-02-08 06:46:33

问题


I have two entities in my Dynamics CRM solution. Both are related to each other. Product -> configurations

Each product can have multiple configurations. I have added a subgrid on product screen.

I need to call a custom html webresource to be able to create configuration records.

How to add a custom button to the subgrid? OR how to customize existing (+) button to open an html webresource?


回答1:


  1. Add the entity to a solution & take a backup
  2. Open the solution in Ribbon workbench
  3. Start customizing the subgrid ribbon (ignore other two - Main grid & Form), right click the OOB button & hide it (this is also a backup)
  4. Add a new button & custom javascript action command (follow this)
  5. Open your custom HTML webresource using openWebResource method in javascript function


来源:https://stackoverflow.com/questions/53813294/how-to-add-a-custom-button-on-crm-subgrid

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!