有没有办法改变选择器中列的顺序?我在“货件编号”选择器中添加了一列,但始终显示为最后一列。我使用PXCustomizeSelectionColumns对列进行了重新排序,但似乎没有使用它。
[PXDBString(15, IsKey = true, IsUnicode = true, InputMask = ">CCCCCCCCCCCCCCC")]
[PXDefault()]
[PXUIField(DisplayName = SOShipment.shipmentNbr.DisplayName, Visibility = PXUIVisibility.SelectorVisible)]
[AutoNumber(typeof(SOSetup.shipmentNumberingID), typeof(SOShipment.shipDate))]
[PXSelector(typeof(Search2<SOShipment.shipmentNbr,
InnerJoin<INSite, On<INSite.siteID, Equal<SOShipment.siteID>>, LeftJoinSingleTable<PX.Objects.AR.Customer, On<SOShipment.customerID, Equal<PX.Objects.AR.Customer.bAccountID>>,
LeftJoinSingleTable<PX.Objects.CR.BAccount, On<PX.Objects.AR.Customer.bAccountID, Equal<PX.Objects.CR.BAccount.bAccountID>>>>>,
Where2<Match<INSite, Current<AccessInfo.userName>>,
And<Where<PX.Objects.AR.Customer.bAccountID, IsNull, Or<Match<PX.Objects.AR.Customer, Current<AccessInfo.userName>>>>>>,
OrderBy<Desc<SOShipment.shipmentNbr>>>))]
[PX.Data.EP.PXFieldDescription]
[PXCustomizeSelectorColumns(
typeof(PX.Objects.SO.SOShipment.shipmentNbr),
typeof(PX.Objects.SO.SOShipment.shipDate),
typeof(PX.Objects.CR.BAccount.acctName),
typeof(PX.Objects.SO.SOShipment.customerID),
typeof(PX.Objects.SO.SOShipment.customerLocationID),
typeof(PX.Objects.SO.SOShipment.siteID),
typeof(PX.Objects.SO.SOShipment.curyID),
typeof(PX.Objects.SO.SOShipment.status),
typeof(PX.Objects.SO.SOShipment.shipmentQty),
typeof(PX.Objects.SO.SOShipment.ownerID))
]
新信息:
不幸的是,这个问题还没有解决。我删除了评论,我说我认为它是。
所以我做了以下事情:
答案 0 :(得分:0)
我是在v6.10.1025开发的。看来该版本中存在导致此问题的错误。我已升级到最新版本6.10.1417,并且列正确排序(我引用的是PX.Objects.CR.BAccount.acctName)。