Need to filter out vendor codes from BAccount DAC. Now it is loading all the BAccounts.
#region VendorID
[PXUIField(DisplayName = "Vendor", Required = true)]
[PXDBDefault(typeof(BAccount.bAccountID))]
[PXSelector(typeof(Search<BAccount.bAccountID>),
typeof(BAccount.acctCD),
typeof(BAccount.acctName),
SubstituteKey = typeof(BAccount.acctCD),
DescriptionField = typeof(BAccount.acctName))]
public virtual int? BAccountID { get; set; }
public abstract class bAccountID : PX.Data.BQL.BqlInt.Field<bAccountID> { }
#endregion
Best answer by Naveen Boga
View original