Dynamics CRM 2011 Ribbon Customization Index
May 5, 2011 Leave a comment
Here I am listing the index for my posts For Ribbon Customization
Sharing My Experinces with CRM 2011
May 5, 2011 Leave a comment
Here I am listing the index for my posts For Ribbon Customization
Filed under CRM 2011 Ribbon Customization Tagged with Add a Custom Button to Custom Tab, Add a custom tab to MS CRM 2011, Add Custom Button to Custom Group for an Existing Tab, Adding a button to Existing Group, Adding a Button to the CRM 2011 Form Ribbon, Adding a buttons to Grid Ribbon CRM 2011, Adding a Tab to the Existing Ribbon, crm 2011 ribbon, Hiding a Ribbon Button in CRM 2011, Ribbon Customization
May 2, 2011 2 Comments
Today we will see how to add a button to the Entity Forms existing group for a custom entity
for the sake of doing this I created a custom entity with name “testcustomentity” and want to add a custom button under the “Save Group”
Follow the below steps to do the same
1: <RibbonDiffXml>
2: <CustomActions>
3:
4:
5: <CustomAction Id="Sample.testcustomentity.form.Save.CustomAction"
6: Location="Mscrm.Form.new_testcustomentity.MainTab.Save.Controls._children"
7: Sequence="80">
8: <CommandUIDefinition>
9: <Button Id="Sample.testcustomentity.form.Save.Button"
10: Command="Sample.testcustomentity.form.Save.Command"
11: LabelText="$LocLabels:Sample.testcustomentity.form.Save.LabelText"
12: ToolTipTitle="$LocLabels:Sample.testcustomentity.form.Save.LabelText"
13: ToolTipDescription="$LocLabels:Sample.testcustomentity.form.Save.ToolTip"
14: TemplateAlias="o1"
15: Image16by16="/_imgs/ribbon/AddEmail_16.png"
16: Image32by32="/_imgs/ribbon/Email_32.png" />
17: </CommandUIDefinition>
18: </CustomAction>
19: </CustomActions>
20: <Templates>
21: <RibbonTemplates Id="Mscrm.Templates"></RibbonTemplates>
22: </Templates>
23: <CommandDefinitions>
24: <CommandDefinition Id="Sample.testcustomentity.form.Save.Command">
25: <EnableRules/>
26: <DisplayRules/>
27:
28: <Actions>
29: <JavaScriptFunction Library="$webresource:new_/ShowMessage.js" FunctionName="show">
30: <StringParameter Value="2" />
31: </JavaScriptFunction>
32: </Actions>
33: </CommandDefinition>
34: </CommandDefinitions>
35:
36: <RuleDefinitions>
37: <TabDisplayRules />
38: <DisplayRules />
39: <EnableRules />
40: </RuleDefinitions>
41: <LocLabels>
42: <LocLabel Id="Sample.testcustomentity.form.Save.LabelText">
43: <Titles>
44: <Title languagecode="1033"
45: description="Custom Button1" />
46: </Titles>
47: </LocLabel>
48: <LocLabel Id="Sample.testcustomentity.form.Save.ToolTip">
49: <Titles>
50: <Title languagecode="1033"
51: description="Custom Button1" />
52: </Titles>
53: </LocLabel>
54: </LocLabels>
55: </RibbonDiffXml>