Acumatica:通过聚合获取项目组中的Count BqlField值
你好 我有一个总的预测,它计算了一定数量的记录Acumatica:通过聚合获取项目组中的Count BqlField值,acumatica,Acumatica,你好 我有一个总的预测,它计算了一定数量的记录 [PXProjection(typeof(Select4<SalesContractInformation, Aggregate< GroupBy<SalesContractInformation.salesContractNbr, Count<SalesC
[PXProjection(typeof(Select4<SalesContractInformation,
Aggregate<
GroupBy<SalesContractInformation.salesContractNbr,
Count<SalesContractInformation.salesContractLineID>>>>), Persistent = false)]
问题是,它返回SalesContractLineID字段的最大值,而不是计数值
这个问题已经被问过了,不幸的是到目前为止还没有答案
非常感谢您的回复。我向acumatica支持团队寻求有关此问题的帮助,但不幸的是,到目前为止,还没有解决此问题的方法(可能要求他们添加此功能) 基于此,将计数列指定给投影字段似乎是一个限制 但是他们建议使用这个方法
#region TotalTermCount
public abstract class totalTermCount : IBqlField { }
[PXDBInt(BqlField = typeof(SalesContractInformation.salesContractLineID))]
[PXUIField(DisplayName = "Total Terms Count")]
public virtual int? TotalTermCount { get; set; }
#endregion