In order to allow me to focus on Consulting (click here) and Courses (click here), I continue to review all posts here in the Forums, but, in general, I'm only personally responding to posts that I mark as #AcumaticaTnT (click here). For Questions (click here), others may respond, or you can post over at Community.Acumatica.com (click here).
Questions Variable from subreport is out of sync with the proper record if the subreport has any records with no values
I am passing a variable from a subreport back to the main report.
This is working with one problem.
If the subreport has no records to report, the variable being passed back to the main report is wrong.
The variable should always report the value from the subreport for the current record.
The subreport itself prints correctly, but the variable appears to be from the previous record’s subreport value.
I've tried all the tips and tricks I could find on this forum with no success.
I was thinking maybe you can reset the global variable. Before you go in.
I thought I had read that a global variable can be updated.
Maybe before you call it you set it to a value externally in your main program.
Then check for that value before you use it.
I have tried doing this within, without success.
Sharing an idea.
I found another way to get this figure without needing to subtotal in a subreport so this is a moot question for me now.
I sincerely appreciate you taking the time to respond!