Feature.xml更改未显示在“启用/禁用自定义功能UI”中吗? [英] Feature.xml changes are not showing in Enable/Disable custom feature UI?

查看:86
本文介绍了Feature.xml更改未显示在“启用/禁用自定义功能UI”中吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

自定义功能UI中未显示添加自定义功能复选框

Add custom feature checkbox is not showing in custom feature UI, My finding

var featureAttributes = cache.GetAttributes(null, field).OfType<FeatureAttribute>();

给出0个featureAttributes,这就是为什么当我添加了具有适当属性的Feature.xml文件时它不可见的原因

giving 0 featureAttributes, that's-why it is not visible while i have added Features.xml file with proper tag as suggested in documentation, any thing else am i missing?

推荐答案


  1. Feature.XML应该是文档中建议的标记?在我们项目的根源。

  2. 属性
    [Feature(false,DisplayName = MY NEW FEATURE)],应始终在那里

  3. 如果要在根目录下查看 MY NEW FEATURE,请查看下面的
    代码。

  1. Feature.XML should be in root of our Project.
  2. Attribute [Feature(false, DisplayName = "MY NEW FEATURE")], should always be there.
  3. If want to see "MY NEW FEATURE" under a root then look at below code.

公共抽象类usrMyNewModuleFeature:PX.Data.BQL.BqlBool.Field {}

public abstract class usrMyNewModuleFeature : PX.Data.BQL.BqlBool.Field { }

[Feature(false,DisplayName = MY Module FEATURE)]
公共布尔? UsrMyNewModuleFeature {get;组; }

[Feature(false, DisplayName = "MY Module FEATURE")] public bool? UsrMyNewModuleFeature { get; set; }

public抽象类usrMyNewFeature:PX.Data.BQL.BqlBool.Field {}

public abstract class usrMyNewFeature : PX.Data.BQL.BqlBool.Field { }

[Feature(false,typeof(usrMyNewModuleFeature),DisplayName = MY NEW FEATURE)]
公共布尔? UsrMyNewFeature {get;组; }

[Feature(false, typeof(usrMyNewModuleFeature), DisplayName = "MY NEW FEATURE")] public bool? UsrMyNewFeature { get; set; }

这篇关于Feature.xml更改未显示在“启用/禁用自定义功能UI”中吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆