【发布时间】:2020-05-22 13:25:45
【问题描述】:
美好的一天
我为仓库位置创建了一个自定义位置字段:
#region UsrTOLocation
[PXString]
[PXUIField(DisplayName = "To Location")]
[PXSelector(typeof(Search<
INLocation.locationCD,
Where<INLocation.siteID, Equal<Current<INRegister.toSiteID>>>>))]
public virtual string UsrTOLocation { get; set; }
public abstract class usrTOLocation : PX.Data.BQL.BqlString.Field<usrTOLocation> { }
#endregion
当该位置不存在时,我使用按钮中的代码创建它。 由于我已将 PXSelector 添加到上述字段,因此当它找不到位置时,我不断收到错误消息。这是正确的,因为我仍然需要创建它
有没有办法抑制找不到位置的错误?
【问题讨论】:
标签: acumatica