Hello everyone,
I have created a custom field named `UsrPMV1` that should allow me to select an employee. This field has been added to the `BAccount` table and configured as a dropdown (`PXSelector`). It is supposed to fetch data from the `EPEmployee` class and display values from its `AcctCD` field.
However, when I test it on the form, the dropdown remains empty.
Here is my current code:
namespace PX.Objects.CR
{
public class BAccountCustomExt : PXCacheExtension<PX.Objects.CR.BAccount>
{
#region UsrPMV1
[PXDBString(200)]
[PXUIField(DisplayName = "MA Product Management")]
[PXSelector(
typeof(Search<EPEmployee.acctCD>),
typeof(EPEmployee.acctCD),
typeof(EPEmployee.bAccountID),
SubstituteKey = typeof(EPEmployee.acctCD),
DescriptionField = typeof(EPEmployee.acctName)
)]
public virtual string UsrPMV1 { get; set; }
public abstract class usrPMV1 : PX.Data.BQL.BqlString.Field<usrPMV1> { }
#endregion
}
}
Does anyone know why my selector field remains empty? Did I miss something or forget any configuration?
My goal is for this field to allow assigning one employee (from EPEmployee) per customer. Additionally, when I'm in the Sales Order screen and select a customer, I want this custom userfield (UsrPMV1) to show which employee created that customer record.
Any help would be greatly appreciated!

