I'm adding a user field to the Order Types screen, which is an int32. I want the same lookup as the subaccount field on the Sales order screen (field name: SalesSubID). Here's what the attributes look like on that field, based on the source DAC:
[PXFormula(typeof(Default<SOLine.branchID>))]
[PXDefault(PersistingCheck = PXPersistingCheck.Nothing)]
[SubAccount(typeof(SOLine.salesAcctID), typeof(SOLine.branchID), Visible = false)]
I've tried using these attributes on my user field, but it doesn't work at all. Unfortunately, as all too often happens in Acumatica, HOW this is implementing a segmented F3 lookup is a total black box / mystery, not covered in any training (not to mention how this field even shows up when visible is set to 'false' is a puzzle...).
So - the question is: How can I implement a segmented subaccount lookup on an int32 user field to replicate what the subaccount field is doing on the Sales Order grid?