问题
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:
- Add the entity to a solution & take a backup
- Open the solution in Ribbon workbench
- Start customizing the subgrid ribbon (ignore other two - Main grid & Form), right click the OOB button & hide it (this is also a backup)
- Add a new button & custom javascript action command (follow this)
- 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