我想通过“HierachyLevel”订购,但它不起作用。 PXSelector总是由SubstitudeKey订购。以下是我在DAC的财产
[PXInt]
[PXUIField(DisplayName = "Hierarchy Level")]
[PXSelector(typeof(Search3<DMSAttributeConfig.attributeNbr,
OrderBy<Asc<DMSAttributeConfig.hierachyLevel>>>),
typeof(DMSAttributeConfig.attribute),
typeof(DMSAttributeConfig.userValue),
SubstituteKey = typeof(DMSAttributeConfig.attribute),
DescriptionField = typeof(DMSAttributeConfig.userValue))]
public int? AttributeNbr { get; set; }
更新了,DB Entries如下所示,我想要PXSelector结果。
AttributeNbr | Attribute | HierachyLevel
1 | Category | 1
2 | Sub-Category | 2
3 | Brand | 3
4 | Sub-Brand | 4
当前的PXSelector结果是
AttributeNbr | Attribute | HierachyLevel
3 | Brand | 3
1 | Category | 1
4 | Sub-Brand | 4
2 | Sub-Category | 2
抱歉迟到了