First of all lets create a new customization try to analyse this selector control.
In this code you can see that PXDimensionSelectorAttribute (that is real selector attribute) is added to protected collection on all attributes.PXCustomizeSelectorColumns and define columns that yoг want to see.
You can add this attribute manually, or using visual designers. Do the following:
- Select required field in DAC customization window.
- Click Selector Columns
- In this popup panel you will see all current selector columns
- Click Add Columns
- Here you will see all available columns for this selector.
- Try to filter columns by "Address"
So we have to add a join condition from our selector to address table using this field. Please, refer to where we have a source code of LocationIDBase Atrribute and notice there an additional constructor parameter - JoinType.
Lest just customize the LocationID attribute with additional Join condition and lets add PXCustomizeSelectorColumns with address field as well.
There result customization code is here:
Now you can just publish the customization and use your new super nice user interface.