2014-01-13 2 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, вы не можете добавить новую кнопку в Subgrids формы - только в полном связанном представлении субграда.

Кнопки видны по умолчанию, поэтому вам не нужны специальные правила отображения/включения.

Надеется, что это помогает, Скотт

+0

Это CRM 2013. У вас есть источник информации? – LameCoder

+1

[Вы не можете настроить эту мини-вспомогательную сетку в это время, кроме переопределения команды «Добавить» и «Удалить» - вы не можете добавлять кнопки или менять значки кнопок на мини-вспомогательной сетке, но полная настройка поддерживается на полной Sub Grid Command Bar.] (Http://www.develop1.net/public/post/4-things-you-need-to-know-about-the-new-Command-Bar.aspx) – keerz

+0

Мое сообщение в блоге об этом область может помочь - http://develop1.net/public/post/4-things-you-need-to-know-about-the-new-Command-Bar.aspx –

 Смежные вопросы

  • Нет связанных вопросов^_^