Acumatica 针灸:怎样才能通过PX选择器订购

Acumatica 针灸:怎样才能通过PX选择器订购,acumatica,Acumatica,我想按“层次层次”排序,但它不起作用。PXSelector始终按SubstituteKey排序。下面是我在DAC的财产 [PXInt] [PXUIField(DisplayName = "Hierarchy Level")] [PXSelector(typeof(Search3<DMSAttributeConfig.attributeNbr, OrderBy<Asc<DMSAttributeConfig.hierachyLevel>>>),

我想按“层次层次”排序,但它不起作用。PXSelector始终按SubstituteKey排序。下面是我在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; }
当前的结果是

AttributeNbr  |  Attribute     |  HierachyLevel
3             |  Brand         |  3
1             |  Category      |  1 
4             |  Sub-Brand     |  4
2             |  Sub-Category  |  2

抱歉迟到了

您能添加数据库条目的示例吗?我需要它来更快地提供帮助我遇到了这样的情况。似乎只要添加SubstituteKey,生成的SQL就会首先按键自动排序,然后按orderby的其余部分自动排序。能否添加DB条目的示例?我需要它来更快地提供帮助我遇到了这样的情况。看起来,只要添加SubstituteKey,生成的SQL就会首先按键自动排序,然后按orderby的其余部分自动排序。
AttributeNbr  |  Attribute     |  HierachyLevel
3             |  Brand         |  3
1             |  Category      |  1 
4             |  Sub-Brand     |  4
2             |  Sub-Category  |  2