Skip to main content
Solved

Selector with SubstituteKey gets confused when identical substitute keys exist

  • December 5, 2025
  • 3 replies
  • 38 views

darylbowman
Captain II
Forum|alt.badge.img+16

I recently ran into an issue with a PXSelector. I defined the selector to use a unique key as the actual key, but to display a different value. The problem is the selector became confused when there were multiple identical display values.

I can kinda understand why this would be a problem, but it seems to me that the selector should be smart enough to differentiate between the options based on the underlying key value. Is this a core limitation of a selector or simply in mind when it was designed?

@Dmitrii Naumov 

Best answer by darylbowman

I did eventually discover I could change the SelectorMode to PXSelectorMode.DisplayModeValue which solved the issue.

3 replies

KrunalDoshi
Freshman II
Forum|alt.badge.img
  • Freshman II
  • February 20, 2026

Hi ​@darylbowman,

Have you found the solution yet? Can you post your DAC and sample data which you are trying into your PXSelector, so I can review and provide you with the best possible solution?


darylbowman
Captain II
Forum|alt.badge.img+16
  • Author
  • Answer
  • February 20, 2026

I did eventually discover I could change the SelectorMode to PXSelectorMode.DisplayModeValue which solved the issue.


KrunalDoshi
Freshman II
Forum|alt.badge.img
  • Freshman II
  • February 20, 2026

Thanks ​@darylbowman for the prompt reply. Glad you found the solution.