Feature.xml更改未显示在“启用/禁用自定义功能UI”中吗? [英] Feature.xml changes are not showing in Enable/Disable custom feature 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?
推荐答案
- Feature.XML应该是文档中建议的标记?在我们项目的根源。
- 属性
[Feature(false,DisplayName = MY NEW FEATURE)],应始终在那里
。 -
如果要在根目录下查看 MY NEW FEATURE,请查看下面的
代码。
- Feature.XML should be in root of our Project.
- Attribute [Feature(false, DisplayName = "MY NEW FEATURE")], should always be there.
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屋!