I have added a new custom field that allows user to select an account. For that I have used existing Account attribute.
[Account(DisplayName = "Account", BqlField = typeof(INTranExt.usrAccount), Visibility = PXUIVisibility.Visible, Filterable = false, DescriptionField = typeof(Account.description), Required = false, AvoidControlAccounts = true)]
public virtual int? UsrAccount { get; set; }
public abstract class usrAccount : PX.Data.BQL.BqlInt.Field<usrAccount> { }
I have a field validating event on this field. When it returns an error is shows the AccountID instead of the AccountCD. How can is solve that. Can anyone please provide an insight here.