Skip to main content
Answer

Test SDK: How to generate wrappers for Dashboards

  • April 8, 2025
  • 1 reply
  • 104 views

I'm currently working on SDK tests and need to interact with various Dashboards. The SDK README file provides instructions specifically for Dashboard DB000038, which is functioning correctly on my end. However, I’m unable to access any of the other Dashboards.

My question is: do we need to generate wrappers for the other Dashboards? If so, what is the correct process for doing this, as the Class Generator does not generate them? Alternatively, if wrapper generation isn't required, how should I access these Dashboards?

Thank you!

Best answer by Rakshanda

Hi ​@annanykolenko71 ,

For some screens, Acumatica provides built-in wrapper classes, which makes them easier to access—for example, screen ID DB000038.

However, for dashboards you want to access that don’t already have wrappers, we’ll need to generate a custom wrapper class.

Here’s an example of how we can create one:

Code for wrapper generation

 

hope above helps!!

1 reply

Forum|alt.badge.img+1
  • Jr Varsity II
  • Answer
  • April 14, 2025

Hi ​@annanykolenko71 ,

For some screens, Acumatica provides built-in wrapper classes, which makes them easier to access—for example, screen ID DB000038.

However, for dashboards you want to access that don’t already have wrappers, we’ll need to generate a custom wrapper class.

Here’s an example of how we can create one:

Code for wrapper generation

 

hope above helps!!