Hi,
I was trying to add a ribbon button in task entity in homegrid, subgrid and form. I add all these three in action group, with same command and display/enable rules. But only subgrid (classic view) and form (command bar) displays this ribbon button. It is not displayed in home grid command bar. Anyone has any idea about it?
Below is my xml:
<RibbonDiffXml>
<CustomActions>
<CustomAction Id="myr.task.Form.GenerateAcicXml.Button.CustomAction" Location="Mscrm.Form.task.MainTab.Actions.Controls._children" Sequence="30">
<CommandUIDefinition>
<Button Alt="$LocLabels:myr.task.Form.GenerateAcicXml.Button.Alt" Command="myr.task.GenerateAcicXml.Command" Id="myr.task.Form.GenerateAcicXml.Button" LabelText="$LocLabels:myr.task.Form.GenerateAcicXml.Button.LabelText" Sequence="30" TemplateAlias="o3" ToolTipTitle="$LocLabels:myr.task.Form.GenerateAcicXml.Button.ToolTipTitle" ToolTipDescription="$LocLabels:myr.task.Form.GenerateAcicXml.Button.ToolTipDescription" />
</CommandUIDefinition>
</CustomAction>
<CustomAction Id="myr.task.HomepageGrid.GenerateAcicXml.Button.CustomAction" Location="Mscrm.HomepageGrid.task.MainTab.Actions.Controls._children" Sequence="5">
<CommandUIDefinition>
<Button Alt="$LocLabels:myr.task.HomepageGrid.GenerateAcicXml.Button.Alt" Command="myr.task.GenerateAcicXml.Command" Id="myr.task.HomepageGrid.GenerateAcicXml.Button" LabelText="$LocLabels:myr.task.HomepageGrid.GenerateAcicXml.Button.LabelText" Sequence="5" TemplateAlias="o1" ToolTipTitle="$LocLabels:myr.task.HomepageGrid.GenerateAcicXml.Button.ToolTipTitle" ToolTipDescription="$LocLabels:myr.task.HomepageGrid.GenerateAcicXml.Button.ToolTipDescription" />
</CommandUIDefinition>
</CustomAction>
<CustomAction Id="myr.task.SubGrid.GenerateAcicXml.Button.CustomAction" Location="Mscrm.SubGrid.task.MainTab.Actions.Controls._children" Sequence="5">
<CommandUIDefinition>
<Button Alt="$LocLabels:myr.task.SubGrid.GenerateAcicXml.Button.Alt" Command="myr.task.GenerateAcicXml.Command" Id="myr.task.SubGrid.GenerateAcicXml.Button" LabelText="$LocLabels:myr.task.SubGrid.GenerateAcicXml.Button.LabelText" Sequence="5" TemplateAlias="o1" ToolTipTitle="$LocLabels:myr.task.SubGrid.GenerateAcicXml.Button.ToolTipTitle" ToolTipDescription="$LocLabels:myr.task.SubGrid.GenerateAcicXml.Button.ToolTipDescription" />
</CommandUIDefinition>
</CustomAction>
</CustomActions>
<Templates>
<RibbonTemplates Id="Mscrm.Templates"></RibbonTemplates>
</Templates>
<CommandDefinitions>
<CommandDefinition Id="myr.task.GenerateAcicXml.Command">
<EnableRules>
<EnableRule Id="myr.task.GenerateAcicXml.EnableRule" />
</EnableRules>
<DisplayRules />
<Actions>
<JavaScriptFunction FunctionName="GenerateAcicXmlClick" Library="$webresource:myr_TaskRibbon.js" />
</Actions>
</CommandDefinition>
</CommandDefinitions>
<RuleDefinitions>
<TabDisplayRules />
<DisplayRules />
<EnableRules>
<EnableRule Id="myr.task.GenerateAcicXml.EnableRule">
<CustomRule FunctionName="IsGenerateAcicXmlEnabled" Library="$webresource:myr_TaskRibbon.js" Default="true" InvertResult="false" />
</EnableRule>
</EnableRules>
</RuleDefinitions>
<LocLabels>
<LocLabel Id="myr.task.Form.GenerateAcicXml.Button.Alt">
<Titles>
<Title description="Generate Acic Xml" languagecode="1033" />
</Titles>
</LocLabel>
<LocLabel Id="myr.task.Form.GenerateAcicXml.Button.LabelText">
<Titles>
<Title description="Generate Acic Xml" languagecode="1033" />
</Titles>
</LocLabel>
<LocLabel Id="myr.task.Form.GenerateAcicXml.Button.ToolTipDescription">
<Titles>
<Title description="Generate Acic Xml" languagecode="1033" />
</Titles>
</LocLabel>
<LocLabel Id="myr.task.Form.GenerateAcicXml.Button.ToolTipTitle">
<Titles>
<Title description="Generate Acic Xml" languagecode="1033" />
</Titles>
</LocLabel>
<LocLabel Id="myr.task.HomepageGrid.GenerateAcicXml.Button.Alt">
<Titles>
<Title description="Generate Acic Xml" languagecode="1033" />
</Titles>
</LocLabel>
<LocLabel Id="myr.task.HomepageGrid.GenerateAcicXml.Button.LabelText">
<Titles>
<Title description="Generate Acic Xml" languagecode="1033" />
</Titles>
</LocLabel>
<LocLabel Id="myr.task.HomepageGrid.GenerateAcicXml.Button.ToolTipDescription">
<Titles>
<Title description="Generate Acic Xml" languagecode="1033" />
</Titles>
</LocLabel>
<LocLabel Id="myr.task.HomepageGrid.GenerateAcicXml.Button.ToolTipTitle">
<Titles>
<Title description="Generate Acic Xml" languagecode="1033" />
</Titles>
</LocLabel>
<LocLabel Id="myr.task.SubGrid.GenerateAcicXml.Button.Alt">
<Titles>
<Title description="Generate Acic Xml" languagecode="1033" />
</Titles>
</LocLabel>
<LocLabel Id="myr.task.SubGrid.GenerateAcicXml.Button.LabelText">
<Titles>
<Title description="Generate Acic Xml" languagecode="1033" />
</Titles>
</LocLabel>
<LocLabel Id="myr.task.SubGrid.GenerateAcicXml.Button.ToolTipDescription">
<Titles>
<Title description="Generate Acic Xml" languagecode="1033" />
</Titles>
</LocLabel>
<LocLabel Id="myr.task.SubGrid.GenerateAcicXml.Button.ToolTipTitle">
<Titles>
<Title description="Generate Acic Xml" languagecode="1033" />
</Titles>
</LocLabel>
</LocLabels>
</RibbonDiffXml>