Skip to main content
Answer

Adding State parameter with lookup to report returns empty list

  • December 20, 2021
  • 3 replies
  • 639 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:

Hope that helps!

3 replies

hkabiri
Acumatica Moderator
Forum|alt.badge.img+8
  • Acumatica Support Team
  • 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:

Hope that helps!


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

Thank you for the prompt response YES it worked perfect.


Forum|alt.badge.img
  • Jr Varsity II
  • August 27, 2025

@alexk95 does customer location need a dependent parameter also? I want to create a parameter for just looking up the customer location and I can’t get it to work by itself. If I add a customer id parameter it works, but not the customer location alone.