Duy Khánh
Duy Khánh

Reputation: 3

PXSelector only select one Filed

  #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

but i have a message "Incorrect syntax near the keyword 'JOIN'." What is my error ?

Upvotes: 0

Views: 73

Answers (1)

Samvel Petrosov
Samvel Petrosov

Reputation: 7706

Try to replace your PXSelector attribute with the following one:

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

Upvotes: 1

Related Questions