2014-01-13 1 views
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> 

아이디어가 있습니까?

답변

2

이 CRM2011 또는 CRM2013입니까? CRM2013 인 경우 Form Subgrids에 새 버튼을 추가 할 수 없습니다. 전체 관련 하위 그래프보기에서만 가능합니다.

버튼은 기본적으로 표시되므로 특별 표시/사용 규칙이 필요하지 않습니다. 이 도움이

희망, 스콧

+0

그것은 당신은 정보의 소스를 CRM 2013이 있습니까이야? – LameCoder

+1

[이 '추가'및 '삭제'명령을 무시하는 것 이외에는이 미니 서브 그리드를 사용자 정의 할 수 없습니다. 미니 서브 그리드의 단추를 추가하거나 단추의 아이콘을 변경할 수는 없지만 전체 하위 항목에서는 전체 사용자 정의가 지원됩니다 Grid Command Bar]를 클릭하십시오. (http://www.develop1.net/public/post/4-things-you-need-to-know-about-the-new-Command-Bar.aspx) – keerz

+0

내 블로그 게시물 on this 지역이 도움이 될 수 있습니다 - http://develop1.net/public/post/4-things-you-need-to-know-about-the-new-Command-Bar.aspx –