【发布时间】:2017-01-17 21:55:18
【问题描述】:
我正在尝试使用选择器来查找客户,我希望它显示 CD 以及字段中的描述。我在 Acumatica 中见过很多次 - 我以为我知道该怎么做,但它不起作用。这是我的代码:
#region CustomerLookup
public abstract class customerLookup : PX.Data.IBqlField
{
}
protected string _CustomerLookup;
[PXDBString(100, IsUnicode = true)]
[PXUIField(DisplayName = "Customer Lookup")]
[PXSelector(typeof(Customer.acctCD)
,typeof(Customer.acctCD)
,typeof(Customer.acctName)
,DescriptionField=typeof(Customer.acctName))]
public virtual string CustomerLookup
{
get
{
return this._CustomerLookup;
}
set
{
this._CustomerLookup = value;
}
}
#endregion
我原以为提供 DescriptionField 会解决这个问题,但事实并非如此。
【问题讨论】:
标签: acumatica