Skip to main content
Solved

Adding State parameter with lookup to report returns empty list

  • December 20, 2021
  • 2 replies
  • 572 views

alexk95
Freshman II

Hello,

I am having trouble getting a parameter with lookup to =Report.GetFieldSchema('ARShippingAddress.State’) lookup works but returns an empty list, I am guessing that I need to indicate the country for the lookup or something I am missing ?

Any help would be greatly appreciate it.

Best answer by hkabiri

@alexk95  Hi,

 

Yes as you also guess it right some fields in Acumatica and dependent to another field just like Primary Keys on SQL tables which are required to get certain record.

State is also one of them which only makes sense if the country is specified.

What you need to try is create another parameter with name Country and get the country value.

Set the View Name for your State Parameter to Something like this: =Report.GetFieldSchema('ARShippingAddress.State,Country’)

We have an existing KB touches on exact same topic which you can use to fulfill your need:

https://community.acumatica.com/reports-and-generic-inquires-83/how-to-add-dependent-parameters-to-a-report-89

Hope that helps!

View original
Did this topic help you find an answer to your question?

2 replies

hkabiri
Acumatica Moderator
Forum|alt.badge.img+7
  • Acumatica Support Team
  • 226 replies
  • Answer
  • December 22, 2021

@alexk95  Hi,

 

Yes as you also guess it right some fields in Acumatica and dependent to another field just like Primary Keys on SQL tables which are required to get certain record.

State is also one of them which only makes sense if the country is specified.

What you need to try is create another parameter with name Country and get the country value.

Set the View Name for your State Parameter to Something like this: =Report.GetFieldSchema('ARShippingAddress.State,Country’)

We have an existing KB touches on exact same topic which you can use to fulfill your need:

https://community.acumatica.com/reports-and-generic-inquires-83/how-to-add-dependent-parameters-to-a-report-89

Hope that helps!


alexk95
Freshman II
  • Author
  • Freshman II
  • 7 replies
  • December 22, 2021

Thank you for the prompt response YES it worked perfect.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings