首页 > 解决方案 > 为什么我的选择器没有在我的自定义屏幕中选择记录?我错过了什么吗?Acumatica

问题描述

这是选择器的我的 DAC 字段。第一次运行似乎很好,但是当我通过选择器进行选择时,它只是闪烁,或者什么也没有发生,但是当我通过下一个和上一个按钮导航时,它会选择记录。

#region RQBatchNbr
[PXDBString(15, IsKey =true, InputMask ="")]
[PXDefault()]
[PXUIField(DisplayName = "Batch Nbr", Required = true)]
[PXSelector(
        typeof(Search<GNRequest.rQBatchNbr>),
        typeof(GNRequest.prefixCode),
        typeof(GNRequest.description),
        DescriptionField = typeof(GNRequest.description) 
)]
[AutoNumber(
        typeof(Search<GNSetup.requestBatchNumberingID>),
        typeof(AccessInfo.businessDate)
)]
#endregion

标签: acumatica

解决方案


一个原因可能是您忘记IsUnicode = truePXDBStringAttribute.
另一个可以与中的typeof(AccessInfo.businessDate)有关AutoNumberAttribute。尝试将Date字段添加到您的DAC并通过他而不是AccessInfo.businessDate.


推荐阅读