0

我正在使用从以前的 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}. &lt;br&gt;&lt;br&gt;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}. &lt;br&gt;&lt;br&gt;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>
4

1 回答 1

0

我个人避免完全删除任何系统按钮。我认为更好的方法就是隐藏它们。使用 Visual Ribbon Editor 甚至不可能完全删除它们。我假设您已经通过手动修改 RibbonDiffXml 删除了它们,但现在您正尝试使用 Visual Ribbon Editor(或 Ribbon Workbench)将它们取回。

在这种情况下,我会去下载 Microsoft Dynamics CRM 2013 SDK。在 SDK 中有 Resources\ExportedRibbonXml 文件夹,其中包含 CRM 2013 附带的所有系统实体的 RibbonDiffXml 定义。也许您可以按照您喜欢的方式从那里复制定义。

于 2014-08-15T10:15:53.563 回答