1

見積サブグリッドとしての商談フォーム。既存の「新規」ボタンを非表示にして、カスタム ボタンを作成しようとしています。既存のボタンを非表示にすることは魅力のように機能します。ただし、カスタムボタンが表示されるようには何もしていないようです。

フォームが既存のエンティティ用であることを確認するだけで、有効化と可視性の条件を簡単にしようとしました。何も機能していないようです。

引用の XML は次のとおりです。リボン ワークベンチを使用して生成:

<RibbonDiffXml xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <CustomActions>
    <CustomAction Id="ntcp.quote.Button1.Button.CustomAction" Location="Mscrm.SubGrid.quote.MainTab.Management.Controls._children" Sequence="17">
      <CommandUIDefinition>
        <Button Alt="$LocLabels:ntcp.quote.Button1.Button.Alt" Command="ntcp.quote.Command0.Command" Description="" Id="ntcp.quote.Button1.Button" Image32by32="/_imgs/ribbon/newrecord32.png" Image16by16="/_imgs/ribbon/New_16.png" LabelText="$LocLabels:ntcp.quote.Button1.Button.LabelText" Sequence="17" TemplateAlias="o1" ToolTipTitle="$LocLabels:ntcp.quote.Button1.Button.ToolTipTitle" ToolTipDescription="$LocLabels:ntcp.quote.Button1.Button.ToolTipDescription" ModernImage="New" />
      </CommandUIDefinition>
    </CustomAction>
    <HideCustomAction HideActionId="ntcp.Mscrm.SubGrid.quote.AddNewStandard.Hide" Location="Mscrm.SubGrid.quote.AddNewStandard" />
  </CustomActions>
  <Templates>
    <RibbonTemplates Id="Mscrm.Templates" />
  </Templates>
  <CommandDefinitions>
    <CommandDefinition Id="ntcp.quote.Command0.Command">
      <EnableRules>
        <EnableRule Id="ntcp.quote.EnableRule0.EnableRule" />
      </EnableRules>
      <DisplayRules>
        <DisplayRule Id="ntcp.quote.DisplayRule0.DisplayRule" />
      </DisplayRules>
      <Actions>
        <JavaScriptFunction FunctionName="ntcp_QuoteFromOpportunity" Library="$webresource:ntcp_/quoteFromOpportunity.js" />
      </Actions>
    </CommandDefinition>
  </CommandDefinitions>
  <RuleDefinitions>
    <TabDisplayRules />
    <DisplayRules>
      <DisplayRule Id="ntcp.quote.DisplayRule0.DisplayRule">
        <FormStateRule State="Existing" Default="true" />
      </DisplayRule>
    </DisplayRules>
    <EnableRules>
      <EnableRule Id="ntcp.quote.EnableRule0.EnableRule">
        <FormStateRule State="Existing" Default="true" />
      </EnableRule>
    </EnableRules>
  </RuleDefinitions>
  <LocLabels>
    <LocLabel Id="ntcp.quote.Button1.Button.LabelText">
      <Titles>
        <Title description="Add New Quote" languagecode="1033" />
      </Titles>
    </LocLabel>
    <LocLabel Id="ntcp.quote.Button1.Button.ToolTipTitle">
      <Titles>
        <Title description="Add New Quote" languagecode="1033" />
      </Titles>
    </LocLabel>
    <LocLabel Id="ntcp.quote.Button1.Button.ToolTipDescription">
      <Titles>
        <Title description="Add New Quote" languagecode="1033" />
      </Titles>
    </LocLabel>
    <LocLabel Id="ntcp.quote.Button1.Button.Alt">
      <Titles>
        <Title description="Add New Quote" languagecode="1033" />
      </Titles>
    </LocLabel>
  </LocLabels>
</RibbonDiffXml>

何か案は?

4

1 に答える 1

2

これは CRM2011 または CRM2013 ですか? CRM2013 の場合、フォーム サブグリッドに新しいボタンを追加することはできません。関連する完全なサブグリッド ビューでのみ可能です。

ボタンはデフォルトで表示されるため、特別な表示/有効化ルールは必要ありません。

これが役に立てば幸いです、スコット

于 2014-01-13T15:50:32.923 に答える