当隐藏按钮时,功能区项'Foo'依赖于功能区控制id ='Bar'

时间:2012-10-02 13:29:38

标签: dynamics-crm-2011 ribbon microsoft-dynamics

我试图隐藏“添加现有”' “联系人”表单上的自定义实体子网格按钮。到目前为止我的步骤;

  • 将联系人实体添加到解决方案
  • 导出解决方案并在VS2010中加载customisations.xml
  • 将以下内容添加到CustomAction节点

    <HideCustomAction HideActionId="sample.Mscrm.SubGrid.new_gppractice.AddExistingAssoc.HideAction" Location="Mscrm.SubGrid.new_gppractice.AddExistingAssoc" />
    <HideCustomAction HideActionId="sample.Mscrm.SubGrid.new_gppractice.AddExistingStandard.HideAction" Location="Mscrm.SubGrid.new_gppractice.AddExistingStandard" />
    
  • 保存,重新导入

尝试重新导入时出现以下错误:

The ribbon item 'sample.Mscrm.SubGrid.new_gppractice.AddExistingAssoc.HideAction' is dependent on ribbon control id='Mscrm.SubGrid.new_gppractice.AddExistingAssoc'
The ribbon item 'sample.Mscrm.SubGrid.new_gppractice.AddExistingStandard.HideAction' is dependent on ribbon control id='Mscrm.SubGrid.new_gppractice.AddExistingStandard'

为什么我会收到这些错误?

1 个答案:

答案 0 :(得分:1)

不能说我对失败的原因有实际的解释。

但我建议您尝试:Ribbon Workbench,这样可以使这些自定义变得更加容易。