locked
RibbonDiffXml Demage crm 2011 RRS feed

  • Question

  • Hi,

    I have a contacts sub-grid on custom form. I want to show a custom button on Ribbon when sub-grid record is selected ( Tab List(contacts)) with this RibbonDiffXml code:

    <RibbonDiffXml>
            <CustomActions>
              <CustomAction Id="sample.contact.subgrid.FillContactFields.CustomAction"
                            Location="Mscrm.SubGrid.contact.MainTab.ExportData.Controls._children"
                            Sequence ="25">
                <CommandUIDefinition>
                  <Button Id="sample.contact.subgrid.FillContactFields.Button"
                          Command="sample.contact.subgrid.FillContactFields.Command"
                          LabelText="$LocLabels:sample.contact.subgrid.FillContactFields.LabelText"
                          ToolTipTitle="$LocLabels:sample.contact.subgrid.FillContactFields.LabelText"
                          ToolTipDescription="$LocLabels:sample.contact.subgrid.FillContactFields.ToolTip"
                          Image16by16="/_imgs/ribbon/grantpermissions_16.png"
                          Image32by32="/_imgs/ribbon/grantpermissions_32.png"
                          TemplateAlias="o1" />
                </CommandUIDefinition>
              </CustomAction>
            </CustomActions>
            <Templates>
              <RibbonTemplates Id="Mscrm.Templates"></RibbonTemplates>
            </Templates>
            <CommandDefinitions>
              <CommandDefinition Id="sample.contact.subgrid.FillContactFields.Command">
                <EnableRules />
                <DisplayRules>
                  <DisplayRule Id="sample.contact.subgrid.FillContactFields.DisplayRule" />
                </DisplayRules>
                <Actions>
                  <JavaScriptFunction Library="$webresource:sample_contactsFilteringByLookup.js"
                                      FunctionName="fillContactFields" />
                </Actions>
              </CommandDefinition>
            </CommandDefinitions>
            <RuleDefinitions>
              <TabDisplayRules />
              <DisplayRules>
                <DisplayRule Id="sample.contact.subgrid.FillContactFields.DisplayRule">
                  <EntityRule AppliesTo="SelectedEntity"
                              InvertResult="true"
                              Context="SubGridStandard"/>
                </DisplayRule>
              </DisplayRules>
              <EnableRules />
            </RuleDefinitions>
            <LocLabels>
              <LocLabel Id="sample.contact.subgrid.FillContactFields.LabelText">
                <Titles>
                  <Title languagecode="1033"
                          description="sampletitlte" />
                </Titles>
              </LocLabel>
              <LocLabel Id="sample.contact.subgrid.FillContactFields.ToolTip">
                <Titles>
                  <Title languagecode="1033"
                          description="sampletooltip" />
                </Titles>
              </LocLabel>
            </LocLabels>
          </RibbonDiffXml>
    Unfortunatelly my custom button is not visible and all other images disappear. What is wrong ?

    Wednesday, January 22, 2014 7:45 PM

Answers

All replies