Skip to main content
Question

Variable in acumatica report design problem

  • February 25, 2025
  • 2 replies
  • 33 views

When I create variable in page header and want to use in group section or detail section, It show zero value. but if I create variable in group section and use with other section or detail section. It show value.

2 replies

MichaelShirk
Captain II
Forum|alt.badge.img+4
  • Captain II
  • 132 replies
  • February 25, 2025

@vannakheng 
This is my experience and I believe that’s how it’s intended to function. 
Someone can correct me if I’m wrong. 

My understanding is, a variable is a way to temporarily hold a value as the report engine is calculating each row of data for the report. This, in practice, means that the variable should be defined at the level of the group that contains the data rows that will be used to calculate the variable value. 

You can define the variable at the group level and still display the resulting value in the header. 
You might have to play around with the variable definition, as there are different options you can select to define how the value is calculated. For example, if you want to use a variable to calculate the the total for some column for each grouped section, it needs to reset itself at the end of that group so it can start over at 0 for the next iteration of that group.

Does this provide enough clarification or could you provide more details?


  • Author
  • Freshman I
  • 8 replies
  • February 26, 2025
MichaelShirk wrote:

@vannakheng 
This is my experience and I believe that’s how it’s intended to function. 
Someone can correct me if I’m wrong. 

My understanding is, a variable is a way to temporarily hold a value as the report engine is calculating each row of data for the report. This, in practice, means that the variable should be defined at the level of the group that contains the data rows that will be used to calculate the variable value. 

You can define the variable at the group level and still display the resulting value in the header. 
You might have to play around with the variable definition, as there are different options you can select to define how the value is calculated. For example, if you want to use a variable to calculate the the total for some column for each grouped section, it needs to reset itself at the end of that group so it can start over at 0 for the next iteration of that group.

Does this provide enough clarification or could you provide more details?

here this is variable I have create in report header

I can use in header and under header I have group section and I want to use that but when I display that variable, it show zero in group section or detail section. If I display in header section, it show value


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