Question Status

Suggested Answer
satyas asked a question on 21 Aug 2014 1:17 AM

1. I'm trying to restore the 'Run workflow' button on the associated view's (sub grid) command bar but havent been successful. HAve tried http://community.dynamics.com/crm/b/develop1/archive/2013/09/06/how-to-restore-a-hidden-button-on-the-crm-2013-command-bar.aspx.

toggled the Mscrm.HIdeOnModern Display rule's IsCore property but it did not show the button. The only other display rule is 'Mscrm.HideForTabletExperience' but dont think it is related to the desired action.


2. When a record from the associated view is selected, buttons like 'run report' get hidden. Please help to display the more commands (...) button instead of having buttons disappear altogether.


Hoping this is something small that I'm missing.

Reply
satyas responded on 21 Aug 2014 8:48 AM

Any one?

Reply
Suggested Answer
Scott Durow responded on 21 Aug 2014 4:09 PM

Hi,

I've followed those instructions myself and they seem to work ok for me. If you post your ribbon xml I'll take a look.

Unfortunately you cant increase the number of buttons before the ... It is 7 for SP1 which is an increase from 5.

Hope this helps,

Scott

Scott Durow

Read my Blog   |  Follow Me on Twitter  |  Rockstar365

Reply
satyas responded on 22 Aug 2014 10:38 AM

Did try the procedure again but still couldn't get the 'run workflow' button.

I don't want to display more than 7 buttons; for me the "...." (more commands fly over) itself doesn't show up on the subgrid. Please see the screenshot in the full screen of the associated view


Reply
Suggested Answer
Scott Durow responded on 23 Aug 2014 1:08 PM

Hi,

If you can post the xml from the 'xml' tab shown after publishing I'll try and spot where the issue is.

The Subgrid not displaying all buttons is a known issue and is fixed in Service Update 4 as far as I know (support.microsoft.com/.../2988952).

This has been rolled out to some orgs already - if you click on gear icon on the top right and select 'About' you'll see your version.

Hope this helps,

Scott

Scott Durow

Read my Blog   |  Follow Me on Twitter  |  Rockstar365

Reply
satyas responded on 26 Aug 2014 12:22 AM

Thanks Scott! Here is the XML. My CRM Version is 6.1.0.581

<RibbonDiffXml>

 <CustomActions>

   <HideCustomAction HideActionId="mdm.Mscrm.SubGrid.mdm_eventcontacts.BulkDelete.Hide" Location="Mscrm.SubGrid.mdm_eventcontacts.BulkDelete" />

   <HideCustomAction HideActionId="mdm.Mscrm.SubGrid.mdm_eventcontacts.RunReport.Hide" Location="Mscrm.SubGrid.mdm_eventcontacts.RunReport" />

 </CustomActions>

 <Templates>

   <RibbonTemplates Id="Mscrm.Templates"></RibbonTemplates>

 </Templates>

 <CommandDefinitions>

   <CommandDefinition Id="Mscrm.RunWorkflowSelected">

     <EnableRules>

       <EnableRule Id="Mscrm.SelectionCountAtLeastOne" />

       <EnableRule Id="Mscrm.RunWorkflowSelected" />

       <EnableRule Id="Mscrm.VisualizationPaneNotMaximized" />

     </EnableRules>

     <DisplayRules>

       <DisplayRule Id="Mscrm.GridFiltersEnabled" />

       <DisplayRule Id="Mscrm.HideForTabletExperience" />

     </DisplayRules>

     <Actions>

       <JavaScriptFunction FunctionName="Mscrm.GridRibbonActions.launchOnDemandWorkflow" Library="/_static/_common/scripts/RibbonActions.js">

         <CrmParameter Value="SelectedControl" />

         <CrmParameter Value="SelectedControlSelectedItemReferences" />

         <CrmParameter Value="SelectedEntityTypeCode" />

         <StringParameter Value="" />

       </JavaScriptFunction>

     </Actions>

   </CommandDefinition>

 </CommandDefinitions>

 <RuleDefinitions>

   <TabDisplayRules />

   <DisplayRules>

     <DisplayRule Id="Mscrm.BulkDelete">

       <MiscellaneousPrivilegeRule PrivilegeName="BulkDelete" />

     </DisplayRule>

     <DisplayRule Id="Mscrm.DeletePrimaryEntityPermission">

       <EntityPrivilegeRule PrivilegeType="Delete" PrivilegeDepth="Basic" AppliesTo="PrimaryEntity" />

     </DisplayRule>

     <DisplayRule Id="Mscrm.GridFiltersEnabled">

       <EntityPropertyRule AppliesTo="SelectedEntity" PropertyName="GridFiltersEnabled" PropertyValue="true" />

       <PageRule Address="/advancedfind/fetchdata.aspx" InvertResult="true" />

     </DisplayRule>

     <DisplayRule Id="Mscrm.HideForTabletExperience">

       <HideForTabletExperienceRule />

     </DisplayRule>

     <DisplayRule Id="Mscrm.ReadReport">

       <EntityPrivilegeRule PrivilegeType="Read" PrivilegeDepth="Basic" EntityName="report" />

     </DisplayRule>

   </DisplayRules>

   <EnableRules>

     <EnableRule Id="Mscrm.NotOffline">

       <CrmOfflineAccessStateRule State="Offline" InvertResult="true" />

     </EnableRule>

     <EnableRule Id="Mscrm.VisualizationPaneNotMaximized">

       <OrRule>

         <Or>

           <CommandClientTypeRule Type="Modern" />

         </Or>

         <Or>

           <CustomRule FunctionName="Mscrm.RibbonActions.disableButtonsWhenChartMaximized" Library="/_static/_common/scripts/RibbonActions.js">

             <CrmParameter Value="SelectedControl" />

           </CustomRule>

         </Or>

       </OrRule>

     </EnableRule>

   </EnableRules>

 </RuleDefinitions>

 <LocLabels />

</RibbonDiffXml>

Reply
Suggested Answer
Scott Durow responded on 26 Aug 2014 1:10 AM

Hi, All looks ok - are you doing this on the entity that is listed on the subgrid and not the parent entity.

Your version indicates that you need to wait for service update 4.

Scott Durow

Read my Blog   |  Follow Me on Twitter  |  Rockstar365

Reply
satyas responded on 26 Aug 2014 7:42 AM

Yes Scott, Am dong this on the subgrid (associated) entity and not parent entity. Is that not right?

Reply
Scott Durow responded on 26 Aug 2014 12:45 PM

No, you are doing it right then!

Not sure why it isn't showing. Could you try on another entity as well?

Scott Durow

Read my Blog   |  Follow Me on Twitter  |  Rockstar365

Reply
Suggested Answer
Scott Durow responded on 21 Aug 2014 4:09 PM

Hi,

I've followed those instructions myself and they seem to work ok for me. If you post your ribbon xml I'll take a look.

Unfortunately you cant increase the number of buttons before the ... It is 7 for SP1 which is an increase from 5.

Hope this helps,

Scott

Scott Durow

Read my Blog   |  Follow Me on Twitter  |  Rockstar365

Reply
Suggested Answer
Scott Durow responded on 23 Aug 2014 1:08 PM

Hi,

If you can post the xml from the 'xml' tab shown after publishing I'll try and spot where the issue is.

The Subgrid not displaying all buttons is a known issue and is fixed in Service Update 4 as far as I know (support.microsoft.com/.../2988952).

This has been rolled out to some orgs already - if you click on gear icon on the top right and select 'About' you'll see your version.

Hope this helps,

Scott

Scott Durow

Read my Blog   |  Follow Me on Twitter  |  Rockstar365

Reply
Suggested Answer
Scott Durow responded on 26 Aug 2014 1:10 AM

Hi, All looks ok - are you doing this on the entity that is listed on the subgrid and not the parent entity.

Your version indicates that you need to wait for service update 4.

Scott Durow

Read my Blog   |  Follow Me on Twitter  |  Rockstar365

Reply