Skip to main content
Solved

Can you use a PXRestrictor to restrict PXStringList attribute values?

  • Aug 30, 2024 10:35 AM UTC
  • 2 replies
  • 65 views
  • Translate All

Forum|alt.badge.img+11

Hey guys,

 

I have a Calibration Record screen which I developed.

My requirement is to dynamically filter the available fields within the dropdown based on the SiteID of the Calibration Record.

Does anyone know if this is possible?

 

Aleks

 

Best answer by darylbowman

string[] values = { "1", "2" };
string[] labels = { "One", "Two" };
PXStringListAttribute.SetList<YourDac.yourField>(e.Cache, row, values, labels);

 

View original

2 replies

darylbowman
Captain II
Forum|alt.badge.img+17
  • Answer
  • Aug 30, 2024 12:42 PM UTC
string[] values = { "1", "2" };
string[] labels = { "One", "Two" };
PXStringListAttribute.SetList<YourDac.yourField>(e.Cache, row, values, labels);

 

Translate

Forum|alt.badge.img+11
  • Author
  • Captain II
  • Sep 2, 2024 7:34 AM UTC

Thanks @darylbowman 

 

worked like a charm!

Translate