【发布时间】:2020-01-24 14:31:10
【问题描述】:
我有一个在销售订单屏幕上向位置选择器添加字段的请求。在标准 Acumatica 风格中,这不是典型的选择器,而是我以前从未见过的:
[LocationID(typeof(Where<Location.bAccountID, Equal<Current<SOOrder.customerID>>,
And<Location.isActive, Equal<True>,
And<MatchWithBranch<Location.cBranchID>>>>)
,DescriptionField = typeof(Location.descr)
,Visibility = PXUIVisibility.SelectorVisible)]
我需要添加的字段是 Address1、Address2、City、State、Zip。我如何将这些字段添加到这个名为“LocationID”的神秘选择器中?
这个我试过了,还是不行:
[PXRemoveBaseAttribute(typeof(LocationIDAttribute))]
[PXMergeAttributes(Method = MergeMethod.Append)]
[PXSelector(typeof(Search2<Location.locationID,
InnerJoin<Address,
On<Location.defAddressID, Equal<Address.addressID>>>,
Where<Location.bAccountID, Equal<Current<SOOrder.customerID>>,
And<Location.isActive, Equal<True>,
And<MatchWithBranch<Location.cBranchID>>>>>)
,typeof(Location.locationCD)
,typeof(Address.addressLine1)
,typeof(Address.addressLine2)
,typeof(Address.city)
,typeof(Address.state)
,typeof(Address.postalCode)
,SubstituteKey = typeof(Location.locationCD)
,DescriptionField = typeof(Location.descr))]
protected virtual void SOOrder_CustomerLocationID_CacheAttached(PXCache sender) { }
【问题讨论】:
标签: acumatica