Answered by:
CRM Grid buttons

Question
-
Hi,
I want to add a custom action menu item to an Entity which only displayed on Associated views of Entity (Entity Grid displayed inside Related Entity Form) insted of main CRM Entity listing.
When i add a Button or Custom/Action menu item on any entity Grid, its also displayed on main CRM form Entity listing Grid.
Is it there any option?Monday, March 15, 2010 5:05 AM
Answers
-
HiThe easiest but unsupported solution for this requirement is1. Create ISV.Config menu item.2. Hide the menu item button on the main entity listing in unsupported way as suggested by Muhammad.referIf you want to go on with the supported solution, we can achieve with workaround (placing button in the menu item instead of entity grid)1. Create Static/Dynamic menu button in the form (instead of entity), say the near the Action button.referhttp://blog.sonomapartners.com/2009/12/adding-dynamic-menu-items.html http://geekswithblogs.net/guentersblog/archive/2006/06/06/80932.aspx2. Attach a action to the button obtain the selected records in the associated grid using iFrame.document.getElementById('crmGrid').InnerGrid.SelectedRecordsreferhttp://allaboutdynamics.com/2010/03/15/decorating-and-attaching-events-to-ms-crm-grid-controls/ http://social.microsoft.com/Forums/en-US/crm/thread/25cab2d1-2687-48ff-b5a1-78056c1e26fb http://social.microsoft.com/Forums/en-US/crmdevelopment/thread/7f157fbe-5d39-495a-8d81-f2969e63eb9bRegardsVinoth
- Proposed as answer by VinothBalasubramanian Wednesday, March 17, 2010 4:24 PM
- Marked as answer by Jim Glass Jr Wednesday, March 17, 2010 4:30 PM
Wednesday, March 17, 2010 4:11 PM
All replies
-
Hi
it is not supported out of the box.but
check this link for hiding the button on the main Grid. (UN-Supported customization)
http://shieldwulf.blogspot.com/2009/03/crm-40-hide-grid-level-menubar-button_19.html
Muhammad Ali Khan
My MS CRM blog- Proposed as answer by Muhammad Ali Khan Monday, March 15, 2010 8:18 AM
Monday, March 15, 2010 5:12 AM -
Hi, try adding your button or action menu item to grid from CRM Form instead of ISV.So its only available from inside Form.
http://www.allaboutdynamics.comMonday, March 15, 2010 3:39 PM -
Can you please elaborate?
Wednesday, March 17, 2010 5:18 AM -
HiThe easiest but unsupported solution for this requirement is1. Create ISV.Config menu item.2. Hide the menu item button on the main entity listing in unsupported way as suggested by Muhammad.referIf you want to go on with the supported solution, we can achieve with workaround (placing button in the menu item instead of entity grid)1. Create Static/Dynamic menu button in the form (instead of entity), say the near the Action button.referhttp://blog.sonomapartners.com/2009/12/adding-dynamic-menu-items.html http://geekswithblogs.net/guentersblog/archive/2006/06/06/80932.aspx2. Attach a action to the button obtain the selected records in the associated grid using iFrame.document.getElementById('crmGrid').InnerGrid.SelectedRecordsreferhttp://allaboutdynamics.com/2010/03/15/decorating-and-attaching-events-to-ms-crm-grid-controls/ http://social.microsoft.com/Forums/en-US/crm/thread/25cab2d1-2687-48ff-b5a1-78056c1e26fb http://social.microsoft.com/Forums/en-US/crmdevelopment/thread/7f157fbe-5d39-495a-8d81-f2969e63eb9bRegardsVinoth
- Proposed as answer by VinothBalasubramanian Wednesday, March 17, 2010 4:24 PM
- Marked as answer by Jim Glass Jr Wednesday, March 17, 2010 4:30 PM
Wednesday, March 17, 2010 4:11 PM