PXSelector只选择一个Filed

时间:2017-06-21 09:49:37

标签: c# acumatica

  #region EquimentID
  public abstract class quimentID : PX.Data.IBqlField { }
  protected Int32? _EquimentID;
  [PXInt]
  [PXSelector(
       typeof(EPEquipment.equipmentID),
       SubstituteKey = typeof(EPEquipment.equipmentCD),
       DescriptionField = typeof(EPEquipment.description)
    )]
  [PXUIField(DisplayName = "Equiment ID")]
  public virtual Int32? EquimentID { get; set; }
  #endregion

但是我在关键字' JOIN' "附近有一条消息" 语法不正确 我的错误是什么?

1 个答案:

答案 0 :(得分:1)

尝试使用以下内容替换PXSelector属性:

[PXSelector(typeof(Search<EPEquipment.equipmentID>),
       SubstituteKey = typeof(EPEquipment.equipmentCD),
       DescriptionField = typeof(EPEquipment.description))]