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

個人的には、システム ボタンを完全に削除することは避けています。より良いアプローチは、それらを非表示にすることだと思います。ビジュアル リボン エディターを使用しても、それらを完全に削除することはできません。ある時点で、RibbonDiffXml を手動で変更してそれらを削除したと仮定しますが、今は Visual Ribbon Editor (または Ribbon Workbench) を使用してそれらを取り戻そうとしています。

この場合、Microsoft Dynamics CRM 2013 SDK をダウンロードします。SDK には、CRM 2013 に付属するすべてのシステム エンティティの RibbonDiffXml 定義を含む Resources\ExportedRibbonXml フォルダーがあります。おそらく、そこから好きなように定義をコピーするだけでかまいません。

于 2014-08-15T10:15:53.563 に答える