AXForum  
Вернуться   AXForum > Microsoft Dynamics CRM > Dynamics CRM: Разработка
CRM
Забыли пароль?
Зарегистрироваться Правила Справка Пользователи Сообщения за день Поиск

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 22.09.2011, 08:43   #1  
KP0H is offline
KP0H
Участник
 
41 / 11 (1) +
Регистрация: 11.08.2011
Адрес: Тюмень
Настройка Ribbon
Код:
<RibbonDiffXml>
  <CustomActions>
    <CustomAction Id="Ars.BusinessAccounting.account.Form.CustomGroup.CustomAction" Location="Mscrm.Form.account.MainTab.Groups._children" Sequence="110">
      <CommandUIDefinition>
        <Group Command="Ars.BusinessAccounting.account.Form.CustomGroup.Command" Id="Ars.BusinessAccounting.account.Form.CustomGroup.Group" Sequence="29" Template="Mscrm.Templates.3.3" Title="$LocLabels:Ars.BusinessAccounting.account.CustomGroup.Title">
          <Controls Id="Ars.BusinessAccounting.account.Form.CustomGroup.Controls">
            <Button Command="Ars.BusinessAccounting.account.Form.CustomGroup.ToControlButton.Command" CommandType="General" Id="Ars.BusinessAccounting.account.Form.CustomGroup.Controls.ToControlButton" Image16by16="$webresource:ars_Icons/ToControl16.png" Image32by32="$webresource:ars_Icons/ToControl32.png" LabelText="$LocLabels:Ars.BusinessAccounting.account.CustomGroup.ToControlButton.Title" Sequence="10" TemplateAlias="isv" ToolTipDescription="$LocLabels:Ars.BusinessAccounting.account.CustomGroup.Description" ToolTipTitle="$LocLabels:Ars.BusinessAccounting.account.CustomGroup.Title" />
          </Controls>
        </Group>
      </CommandUIDefinition>
    </CustomAction>
  </CustomActions>
  <Templates>
    <RibbonTemplates Id="Mscrm.Templates" />
  </Templates>
  <CommandDefinitions>
    <CommandDefinition Id="Ars.BusinessAccounting.account.Form.CustomGroup.ToControlButton.Command">
      <EnableRules>
        <EnableRule Id="Ars.BusinessAccounting.account.Form.FormStateNotNew.EnableRule" />
      </EnableRules>
      <DisplayRules>
        <DisplayRule Id="Ars.BusinessAccounting.account.WebClient.DisplayRule" />
      </DisplayRules>
      <Actions>
        <JavaScriptFunction Library="$webresource:ars_test" FunctionName="test" />
      </Actions>
    </CommandDefinition>
    <CommandDefinition Id="Ars.BusinessAccounting.account.Form.CustomGroup.Command">
      <EnableRules>
        <EnableRule Id="Ars.BusinessAccounting.account.Form.FormStateNotNew.EnableRule" />
      </EnableRules>
      <DisplayRules>
        <DisplayRule Id="Ars.BusinessAccounting.account.WebClient.DisplayRule" />
      </DisplayRules>
      <Actions />
    </CommandDefinition>
  </CommandDefinitions>
  <RuleDefinitions>
    <TabDisplayRules />
    <DisplayRules>
      <DisplayRule Id="Ars.BusinessAccounting.account.WebClient.DisplayRule">
        <CrmClientTypeRule Default="false" InvertResult="false" Type="Web" />
      </DisplayRule>
      <DisplayRule Id="Ars.BusinessAccounting.account.Form.FormStateNotNew.DisplayRule">
        <FormStateRule Default="false" InvertResult="false" State="Create" />
      </DisplayRule>
    </DisplayRules>
    <EnableRules>
      <EnableRule Id="Ars.BusinessAccounting.account.WebClient.EnableRule">
        <CrmClientTypeRule Default="false" InvertResult="false" Type="Web" />
      </EnableRule>
      <EnableRule Id="Ars.BusinessAccounting.account.Form.FormStateNotNew.EnableRule">
        <FormStateRule Default="false" InvertResult="false" State="Create" />
      </EnableRule>
    </EnableRules>
  </RuleDefinitions>
  <LocLabels>
    <LocLabel Id="Ars.BusinessAccounting.account.CustomGroup.Description">
      <Titles>
        <Title languagecode="1033" description="Тест" />
      </Titles>
    </LocLabel>
    <LocLabel Id="Ars.BusinessAccounting.account.CustomGroup.Title">
      <Titles>
        <Title languagecode="1033" description="Тест2" />
      </Titles>
    </LocLabel>
    <LocLabel Id="Ars.BusinessAccounting.account.CustomGroup.ToControlButton.Title">
      <Titles>
        <Title languagecode="1033" description="Тест3" />
      </Titles>
    </LocLabel>
  </LocLabels>
</RibbonDiffXml>
После импорта данного решения на Ribbon появляется пустая группа с названием "Другое", и в ней больше ничего нет.
Ткните носом неразумного. Что не так?
Старый 22.09.2011, 15:19   #2  
Elka is offline
Elka
Участник
Аватар для Elka
 
431 / 22 (1) +++
Регистрация: 02.12.2008
Адрес: г. Ростов-на-Дону
Добрый день!

Попробуйте это : http://pragmatoolkit.codeplex.com/
За это сообщение автора поблагодарили: a33ik (4).
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
Gareth Tucker: Adding a new Button Group to the CRM Ribbon Blog bot Dynamics CRM: Blogs 0 24.08.2011 16:11
Gareth Tucker: Editing Ribbon Buttons in CRM 2011 Blog bot Dynamics CRM: Blogs 0 24.08.2011 09:11
Dynamics CRM Tools: New tool (alpha) : Ribbon Editor Blog bot Dynamics CRM: Blogs 0 14.07.2011 17:11
Dynamics CRM Tools: New tool: Ribbon Browser Blog bot Dynamics CRM: Blogs 0 15.06.2011 18:11
Microsoft Dynamics CRM Team Blog: Create Dynamic Ribbon Controls Blog bot Dynamics CRM: Blogs 0 30.03.2011 21:11

Ваши права в разделе
Вы не можете создавать новые темы
Вы не можете отвечать в темах
Вы не можете прикреплять вложения
Вы не можете редактировать свои сообщения

BB коды Вкл.
Смайлы Вкл.
[IMG] код Вкл.
HTML код Выкл.
Быстрый переход

Рейтинг@Mail.ru
Часовой пояс GMT +3, время: 21:58.
Powered by vBulletin® v3.8.5. Перевод: zCarot
Контактная информация, Реклама.