Skip to main content
Solved

sub Report Parameters

  • 29 March 2021
  • 1 reply
  • 682 views

Forum|alt.badge.img

Hello

i just add a parameter in my report to select the account range 

it works fine but i want my filter to suggest the list of the account i writing like this one 

but its not working 

this is what the filter looks like 

 

i tried to add the branch id like the standard filter but its not working 

Best answer by lauraj46

@khairi 

The field BAccount.AcctCD is probably too broad to use for your schema as it will list all of the business accounts, including customers and vendors.  Try referencing the same table and field from your report schema that is used in the filter on your Conditions tab.  For example if the filter is on APRegister.BranchID, the view name might be as follows: 

=Report.GetFieldSchema(‘APRegister.BranchID’)

This report selector in Acumatica would look something like this:

You can also copy the syntax to create a more generic drop down company/branch selector from one of the standard reports, for example the OrgBAccountID parameter on the standard report AP610500:

=Report.GetFieldSchema('OrganizationBranchReportParameters.OrgBAccountID')

That selector will appear in your report something like this:

 

Hope this helps!

Laura

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

1 reply

lauraj46
Captain II
Forum|alt.badge.img+8
  • Captain II
  • 502 replies
  • Answer
  • March 30, 2021

@khairi 

The field BAccount.AcctCD is probably too broad to use for your schema as it will list all of the business accounts, including customers and vendors.  Try referencing the same table and field from your report schema that is used in the filter on your Conditions tab.  For example if the filter is on APRegister.BranchID, the view name might be as follows: 

=Report.GetFieldSchema(‘APRegister.BranchID’)

This report selector in Acumatica would look something like this:

You can also copy the syntax to create a more generic drop down company/branch selector from one of the standard reports, for example the OrgBAccountID parameter on the standard report AP610500:

=Report.GetFieldSchema('OrganizationBranchReportParameters.OrgBAccountID')

That selector will appear in your report something like this:

 

Hope this helps!

Laura


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