web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

CRM 2011 display ribbon button in subgrid

(0) ShareShare
ReportReport
Posted on by 100

Hi,

I tried to display ribbon button in subgrid ,but i di'dn;t see it.

I tried this post. without sucees.http://codestips.com/crm-2011-display-ribbon-button-in-subgrid/

What do I miss?

Thanks ahead,

Daniel Shitrit

 

 Sniped code:

=========

<Entities>
    <Entity>
      <Name LocalizedName="LPM Project" OriginalName="LPM Project">new_lpmproject</Name>
...... 

<RibbonDiffXml>
        <CustomActions>
          <CustomAction Id="WebsitesPlacements.CustomAction" Location="Mscrm.SubGrid.new_lpmproject.MainTab.Workflow.Controls._children" Sequence="71">
            <CommandUIDefinition>
              <Button Id="WebsitesPlacements.Button" Command="WebsitesPlacements.Command" Sequence="20" ToolTipTitle="Websites Placements" LabelText="Websites Placements" ToolTipDescription="Websites Placements" TemplateAlias="o1" Image16by16="$webresource:new_WebsitesPlacements_16x16" Image32by32="$webresource:new_WebsitesPlacements_32x32" />
            </CommandUIDefinition>
          </CustomAction>
        </CustomActions>
        <Templates>
          <RibbonTemplates Id="Mscrm.Templates"></RibbonTemplates>
        </Templates>
        <CommandDefinitions>
          <CommandDefinition Id="WebsitesPlacements.Command">
            <EnableRules />
            <DisplayRules>
              <DisplayRule Id="110" />
              <DisplayRule Id="111" />
            </DisplayRules>
            <Actions>
              <Url Address="http://pcrm/Adzz/WebResources/new_/WebsitesPlacementsSilverlightTestPage.html" PassParams="true" WinMode="0" WinParams="height=500, width=600, toolbar=no, resizable=yes">
                <CrmParameter Name="Data" Value="SelectedControlSelectedItemIds" />
              </Url>
            </Actions>
          </CommandDefinition>
        </CommandDefinitions>
        <RuleDefinitions>
          <TabDisplayRules />
          <DisplayRules>
            <DisplayRule Id="110">
              <EntityRule AppliesTo="SelectedEntity" Context="SubGridStandard" InvertResult="false" />
            </DisplayRule>
            <DisplayRule Id="111">
              <FormEntityContextRule EntityName="new_newpost" />
            </DisplayRule>
          </DisplayRules>
          <EnableRules />
        </RuleDefinitions>
        <LocLabels />
      </RibbonDiffXml>

*This post is locked for comments

I have the same question (0)
  • Yair Rozenberg Profile Picture
    320 on at

    I don't know what you are missing, but it might be easier to create the button using one of the visual ribbon editors:

    www.develop1.net/.../Ribbon-Workbench-for-Dynamics-CRM-2011.aspx

    crmvisualribbonedit.codeplex.com

  • Ori Profile Picture
    100 on at

    When I used this tool crmvisualribbonedit.codeplex.com

    I see the button But in production I do not see it.

    Currently the ribbon is open when I select a record in subgrid(of EntityName="new_newpost).

    I thougt to add  two DisplayRules(100/111) but without success.

    Does this the right way ?

  • Silviu-Stelian Hagea Profile Picture
    5 on at

    With those display rules you should see the button on the subgrid of the related LPM Project of the entity new_newpost.

  • suresh p Profile Picture
    1,320 on at

    Hi

    This is best ribbon editor for crm 2011.you can use this very easily and it is user friendly.

    crmvisualribbonedit.codeplex.com

    While using this editor,there you have to select "Form State"  Display rule.

     Form State=Create(button will be displayed while creating a new record)

     Form State=Existing(button will be displayed in existing record)

    I hope you will resolve this issue by using this editor.

  • Ori Profile Picture
    100 on at

    I tried your solution without success. I added a screencast what I need:www.4shared.com/.../2012-09-03_1019.html

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans