0

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

  • 将联系人实体添加到解决方案
  • 导出解决方案并customisations.xml在VS2010中加载
  • 将以下内容添加到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'

任何想法为什么我会收到这些错误?

4

1 回答 1

1

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

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

于 2012-10-02T14:53:13.713 回答