我正在讨论从之前的CMR 2011版本更新的CRM 2013解决方案。 “运行工作流程”和“对话框”按钮已删除。我尝试使用功能区编辑器将它们添加回来,但它们没有从UI中显示。我尝试IIS重置并删除IE历史记录。这是customizations.xml中的XML
<RibbonDiffXml>
<CustomActions>
<CustomAction Id="new.rdl_project.Button1.Button.CustomAction" Location="Mscrm.HomepageGrid.rdl_project.MainTab.Workflow.Controls._children" Sequence="10">
<CommandUIDefinition>
<Button Alt="$LocLabels:new.rdl_project.Button1.Button.Alt" Command="Mscrm.RunWorkflowSelected" Id="new.rdl_project.Button1.Button" Image32by32="/_imgs/ribbon/runworkflow32.png" Image16by16="/_imgs/ribbon/StartWorkflow_16.png" LabelText="$LocLabels:new.rdl_project.Button1.Button.LabelText" Sequence="10" TemplateAlias="o1" ToolTipTitle="$LocLabels:new.rdl_project.Button1.Button.ToolTipTitle" ToolTipDescription="$LocLabels:new.rdl_project.Button1.Button.ToolTipDescription" />
</CommandUIDefinition>
</CustomAction>
<CustomAction Id="new.rdl_project.Button2.Button.CustomAction" Location="Mscrm.Form.rdl_project.Related.Activities.Controls._children" Sequence="40">
<CommandUIDefinition>
<Button Alt="$LocLabels:new.rdl_project.Button2.Button.Alt" Command="Mscrm.RunWorkflowSelected" Id="new.rdl_project.Button2.Button" Image32by32="/_imgs/ribbon/runworkflow32.png" Image16by16="/_imgs/ribbon/StartWorkflow_16.png" LabelText="$LocLabels:new.rdl_project.Button2.Button.LabelText" Sequence="40" TemplateAlias="o1" ToolTipTitle="$LocLabels:new.rdl_project.Button2.Button.ToolTipTitle" ToolTipDescription="$LocLabels:new.rdl_project.Button2.Button.ToolTipDescription" />
</CommandUIDefinition>
</CustomAction>
</CustomActions>
<Templates>
<RibbonTemplates Id="Mscrm.Templates"></RibbonTemplates>
</Templates>
<CommandDefinitions />
<RuleDefinitions>
<TabDisplayRules />
<DisplayRules />
<EnableRules />
</RuleDefinitions>
<LocLabels>
<LocLabel Id="new.rdl_project.Button1.Button.Alt">
<Titles>
<Title description="Run Workflow" languagecode="1033" />
</Titles>
</LocLabel>
<LocLabel Id="new.rdl_project.Button1.Button.LabelText">
<Titles>
<Title description="Run Workflow" languagecode="1033" />
</Titles>
</LocLabel>
<LocLabel Id="new.rdl_project.Button1.Button.ToolTipDescription">
<Titles>
<Title description="Run a workflow for this {0}. <br><br>View the status of workflows in the Workflow tab of this record." languagecode="1033" />
</Titles>
</LocLabel>
<LocLabel Id="new.rdl_project.Button1.Button.ToolTipTitle">
<Titles>
<Title description="Run Workflow" languagecode="1033" />
</Titles>
</LocLabel>
<LocLabel Id="new.rdl_project.Button2.Button.Alt">
<Titles>
<Title description="Run Workflow" languagecode="1033" />
</Titles>
</LocLabel>
<LocLabel Id="new.rdl_project.Button2.Button.LabelText">
<Titles>
<Title description="Run Workflow" languagecode="1033" />
</Titles>
</LocLabel>
<LocLabel Id="new.rdl_project.Button2.Button.ToolTipDescription">
<Titles>
<Title description="Run a workflow for this {0}. <br><br>View the status of workflows in the Workflow tab of this record." languagecode="1033" />
</Titles>
</LocLabel>
<LocLabel Id="new.rdl_project.Button2.Button.ToolTipTitle">
<Titles>
<Title description="Run Workflow" languagecode="1033" />
</Titles>
</LocLabel>
</LocLabels>
</RibbonDiffXml>
答案 0 :(得分:0)
我个人完全避免完全删除任何系统按钮。我认为更好的方法就是隐藏它们。使用Visual Ribbon Editor甚至不可能完全删除它们。我假设您已经通过手动修改RibbonDiffXml删除了它们,但现在您正在尝试使用Visual Ribbon Editor(或Ribbon Workbench)将它们恢复。
在这种情况下,我会做的是下载Microsoft Dynamics CRM 2013 SDK。在SDK中有Resources \ ExportedRibbonXml文件夹,其中包含CRM 2013附带的所有系统实体的RibbonDiffXml定义。可能您只需按照自己喜欢的方式复制定义。