CRM 2011 - 显示特定实体的功能区按钮

时间:2012-04-26 10:40:20

标签: dynamics-crm-2011 ribbon crm

  

可能重复:
  How to configure CRM Ribbon xml to display a ribbon button for an Entity only when it is being viewed in the context of a particular parent entity

我正在尝试使用“DisplayRule”隐藏/显示特定实体的按钮!我在“注册”表单上有一个子网格,在该子网格中,用户必须选择一些要添加到购物篮中的项目。

但是我为篮子创建的按钮显示在每个表单上,其中为该篮子创建了子网格。

按钮只需要出现在“注册” - 窗体上,而其他实体上则不应出现按钮。我使用了以下XML语句,但它似乎不起作用:

      <DisplayRules>
        <DisplayRule Id="A.HideButtonOnOtherForm">
          <EntityRule AppliesTo="PrimaryEntity" EntityName="ave_registration" Context="Form"  />
        </DisplayRule>
      </DisplayRules>

上面的XML语句隐藏了所有实体的按钮......但它应该仅在注册时显示它..我做错了什么? ave_registration是我的注册实体的名称:)

0 个答案:

没有答案
相关问题