Skip to main content
Answer

Can you use a PXRestrictor to restrict PXStringList attribute values?

  • August 30, 2024
  • 2 replies
  • 36 views

Forum|alt.badge.img+8

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);

 

2 replies

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

 


Forum|alt.badge.img+8
  • Author
  • Captain II
  • September 2, 2024

Thanks @darylbowman 

 

worked like a charm!