Hi @Harry
It sounds like you want to add a custom selector for your new field:
[PXSelector(typeof(Search<EPEmployee.bAccountID>),
typeof(EPEmployee.bAccountID),
typeof(EPEmployee.acctCD),
typeof(EPEmployee.acctName),
SubstituteKey = typeof(EPEmployee.acctName))]
You probably need to tinker a bit with the fields you show in the selector, but this should give you the idea.
SubstituteKey
allows you to define what field value will be shown, and the value in the first parameter (typeof(Search<EPEmployee.bAccountID>)
in the example) will define the real value underneath. Parameters after Search
are responsible for fields shown in selector columns, add/remove them as you like.
Put this selector on your new custom field, add it to the grid and it should be enough - no additional events or 2nd field required.