Skip to main content
Answer

Custom Data Provider - Customization

  • June 24, 2025
  • 4 replies
  • 120 views

Forum|alt.badge.img

Hi there,

We’ve developed a customization that includes a custom data provider responsible for exporting data to an external system. I’m currently exploring two aspects:

  1. Mandatory Parameters: Is there a way to make certain SYProviderParameter values mandatory? I attempted to use PXStringState.CreateInstance with IsRequired set to true, but it didn’t seem to have any effect.

  2. Conditional Parameter Visibility: Is it possible to dynamically show or hide parameters based on a dropdown selection? For example, if the user selects "AWSS3" as the DataStore option, I’d like to display additional parameters specific to that selection and hide them otherwise.

 

Best answer by vib1980

We achieved this by implementing interface IPXSYProviderWithRequiredFields in the custom provider 

 public string [] RequiredFields { get; } = new string[] {
     BATCHNBR_PARAM
 };

set the default value initially and if the user tries to set the parameter value to null or empty and tries to save the changes, error prompt is shown.

 

4 replies

Forum|alt.badge.img+1

@ vib1980 

  • In order to make a SYProviderParameter mandatory, it is best to validate using a new field, i.e., a required checkbox on the data provider screen and validate on the row events. 
  • Can you please provider more information on why it is necessary to hide the parameter? If it is data validation, it could be done on row events, can you please provide more details on this requirement?

     

Also, can you please attach the customization that you tried for further analysis?


Forum|alt.badge.img
  • Author
  • Answer
  • October 30, 2025

We achieved this by implementing interface IPXSYProviderWithRequiredFields in the custom provider 

 public string [] RequiredFields { get; } = new string[] {
     BATCHNBR_PARAM
 };

set the default value initially and if the user tries to set the parameter value to null or empty and tries to save the changes, error prompt is shown.

 


Chris Hackett
Community Manager
Forum|alt.badge.img
  • Acumatica Community Manager
  • October 30, 2025

Thank you for sharing your solution with the community ​@ vib1980!


Forum|alt.badge.img+1

@ vib1980 Thank you for the update!