locked
Ribbon Workbench error on entity hide action RRS feed

  • Question


  • Ribbon Workbench error on entity hide action

    I can remove items from the home screen fine.

    When I try to remove home screens from the actual entities, I get this error:

    (five errors for one hide action)

    Reasons:

    1:The ribbon item 'new.Mscrm.Isv.account.Form.Group0.Control0.Hide' is dependent on ribbon control id='Mscrm.Isv.account.Form.Group0.Control0'.

    2:The ribbon item 'new.Mscrm.Isv.account.Form.Group0.Control1.Hide' is dependent on ribbon control id='Mscrm.Isv.account.Form.Group0.Control1'.

    3:The ribbon item 'new.Mscrm.Isv.account.Form.Group0.Control2.Hide' is dependent on ribbon control id='Mscrm.Isv.account.Form.Group0.Control2'.

    4:The ribbon item 'new.Mscrm.Isv.account.Form.Group0.Control3.Hide' is dependent on ribbon control id='Mscrm.Isv.account.Form.Group0.Control3'.

    5:The ribbon item 'new.Mscrm.Isv.account.Form.Group0.Control0.Hide' is dependent on ribbon control id='Mscrm.Isv.account.Form.Group0.Control0'.
    Friday, March 6, 2015 10:03 PM

All replies

  • Hi,

    Could you post your ribbon xml so I can take a look please?

    Thanks,

    Scott


    Scott Durow
    Blog www.develop1.net    Follow Me
    Rockstar365
    If this post answers your question, please click "Mark As Answer" on the post and "Mark as Helpful"

    Tuesday, March 10, 2015 5:11 PM
    Answerer
  • Here is an example for 'account.'  the same symptoms happen on contact and other entities (can hide from home screen but not entity view).  this appears to be a fairly highly customized on premise crm.

    ---


    <RibbonDiffXml>
      <CustomActions>
        <HideCustomAction HideActionId="new.Mscrm.HomepageGrid.account.Send.Hide" Location="Mscrm.HomepageGrid.account.Send" />
        <HideCustomAction HideActionId="new.Mscrm.HomepageGrid.account.SendDirectEmail.Hide" Location="Mscrm.HomepageGrid.account.SendDirectEmail" />
        <CustomAction Id="new.Mscrm.Isv.account.Form.CustomAction" Location="Mscrm.Tabs._children" Sequence="1010">
          <CommandUIDefinition>
            <Tab Command="Mscrm.Isv.account.Form" Description="ISV Account Form" Id="Mscrm.Isv.account.Form" Sequence="1010" Title="$LocLabels:Mscrm.Isv.account.Form.Title">
              <Scaling Id="Mscrm.Isv.account.Form.Scaling">
                <MaxSize GroupId="Mscrm.Isv.account.Form.Group0" Id="Mscrm.Isv.account.Form.Group0.MaxSize" Sequence="10" Size="Large" />
                <Scale GroupId="Mscrm.Isv.account.Form.Group0" Id="Mscrm.Isv.account.Form.Group0.Scale.Medium" Sequence="20" Size="Medium" />
                <Scale GroupId="Mscrm.Isv.account.Form.Group0" Id="Mscrm.Isv.account.Form.Group0.Scale.Small" Sequence="30" Size="Small" />
                <Scale GroupId="Mscrm.Isv.account.Form.Group0" Id="Mscrm.Isv.account.Form.Group0.Scale.Popup" Sequence="40" Size="Popup" />
              </Scaling>
              <Groups Id="Mscrm.Isv.account.Form.Groups">
                <Group Command="Mscrm.Isv.account.Form.Group0" Description="$LocLabels:Mscrm.Isv.account.Form.Group0.Title" Id="Mscrm.Isv.account.Form.Group0" Sequence="10" Template="Mscrm.Templates.Flexible" Title="$LocLabels:Mscrm.Isv.account.Form.Group0.Title">
                  <Controls Id="Mscrm.Isv.account.Form.Group0.Controls" />
                </Group>
              </Groups>
            </Tab>
          </CommandUIDefinition>
        </CustomAction>
        <HideCustomAction HideActionId="new.Mscrm.Isv.account.Form.Group0.Control0.Hide" Location="Mscrm.Isv.account.Form.Group0.Control0" />
        <HideCustomAction HideActionId="new.Mscrm.Isv.account.Form.Group0.Control1.Hide" Location="Mscrm.Isv.account.Form.Group0.Control1" />
        <HideCustomAction HideActionId="new.Mscrm.Isv.account.Form.Group0.Control2.Hide" Location="Mscrm.Isv.account.Form.Group0.Control2" />
        <HideCustomAction HideActionId="new.Mscrm.Isv.account.Form.Group0.Control3.Hide" Location="Mscrm.Isv.account.Form.Group0.Control3" />
      </CustomActions>
      <Templates>
        <RibbonTemplates Id="Mscrm.Templates"></RibbonTemplates>
      </Templates>
      <CommandDefinitions>
        <CommandDefinition Id="Mscrm.Isv.account.Form">
          <EnableRules />
          <DisplayRules>
            <DisplayRule Id="Mscrm.Isv.account.Form" />
          </DisplayRules>
          <Actions />
        </CommandDefinition>
        <CommandDefinition Id="Mscrm.Isv.account.Form.Group0">
          <EnableRules />
          <DisplayRules>
            <DisplayRule Id="Mscrm.Isv.account.Form.Group0" />
          </DisplayRules>
          <Actions />
        </CommandDefinition>
        <CommandDefinition Id="Mscrm.Isv.account.Form.Group0.Control0">
          <EnableRules />
          <DisplayRules />
          <Actions>
            <JavaScriptFunction FunctionName="Mscrm_Isv_account_Form_Group0_Control0_1" Library="$Webresource:account_ribbon.js" />
          </Actions>
        </CommandDefinition>
        <CommandDefinition Id="Mscrm.Isv.account.Form.Group0.Control1">
          <EnableRules />
          <DisplayRules />
          <Actions>
            <JavaScriptFunction FunctionName="Mscrm_Isv_account_Form_Group0_Control1_2" Library="$Webresource:account_ribbon.js" />
          </Actions>
        </CommandDefinition>
        <CommandDefinition Id="Mscrm.Isv.account.Form.Group0.Control2">
          <EnableRules />
          <DisplayRules />
          <Actions>
            <JavaScriptFunction FunctionName="Mscrm_Isv_account_Form_Group0_Control2_3" Library="$Webresource:account_ribbon.js" />
          </Actions>
        </CommandDefinition>
        <CommandDefinition Id="Mscrm.Isv.account.Form.Group0.Control3">
          <EnableRules />
          <DisplayRules />
          <Actions>
            <JavaScriptFunction FunctionName="Mscrm_Isv_account_Form_Group0_Control3_4" Library="$Webresource:account_ribbon.js" />
          </Actions>
        </CommandDefinition>
      </CommandDefinitions>
      <RuleDefinitions>
        <TabDisplayRules>
          <TabDisplayRule TabCommand="Mscrm.Isv.account.Form">
            <EntityRule Context="Form" />
          </TabDisplayRule>
        </TabDisplayRules>
        <DisplayRules>
          <DisplayRule Id="Mscrm.Isv.account.Form">
            <MiscellaneousPrivilegeRule PrivilegeName="ISVExtensions" />
            <OrRule>
              <Or>
                <CrmClientTypeRule Type="Web" />
              </Or>
              <Or>
                <CrmClientTypeRule Type="Outlook" />
                <CrmOfflineAccessStateRule State="Online" />
              </Or>
              <Or>
                <CrmClientTypeRule Type="Outlook" />
                <CrmOfflineAccessStateRule State="Offline" />
              </Or>
            </OrRule>
          </DisplayRule>
          <DisplayRule Id="Mscrm.Isv.account.Form.Group0">
            <FormStateRule State="Create" InvertResult="true" />
          </DisplayRule>
        </DisplayRules>
        <EnableRules />
      </RuleDefinitions>
      <LocLabels>
        <LocLabel Id="Mscrm.Isv.account.Form.Group0.Title">
          <Titles>
            <Title description="ISV Account Form 1" languagecode="1033" />
          </Titles>
        </LocLabel>
        <LocLabel Id="Mscrm.Isv.account.Form.Title">
          <Titles>
            <Title description="ISV Account Form" languagecode="1033" />
          </Titles>
        </LocLabel>
      </LocLabels>
    </RibbonDiffXml>

    Wednesday, March 11, 2015 3:21 PM