AugForums.com

An Acumatica User Group

  • Free
    • Start Here
    • In-Person Gatherings
    • Power BI Workshop
    • Podcast
    • Rolodex
    • Blog
    • Forums
  • Paid
    • AugSQL
    • GI Course
    • GI Library
    • Consulting
  • Register
Acumatica Forums

By using this website, you agree to our Terms of Use (click here)

Forums
AUG Forums
Acumatica Report De...
Accessing SubReport...
 
Notifications
Clear all

Questions Accessing SubReport Values in Main Report

 
Acumatica Report Designer
Last Post by matthewjames 1 year ago
12 Posts
4 Users
1 Reactions
8,019 Views
RSS
Brianna Morrish
Posts: 5
 Brianna Morrish
Topic starter
August 22, 2019 8:56 pm
(@bri)
Active Member
Joined: 6 years ago

Hi Guys,

Apologies if this has been covered before we are trying to build a report in MYOB Advanced (Aussie version of Accumatica) 

We have a sub report and want to access values or a variable in the main report for calculations.

Doing some research online we see mention of syntax like $subReport1_Variable but this does not work when we try.

If anyone can provide tips of how to access values from a sub report in a main report that would be greatly appreciated.

Cheers,

Bri!


11 Replies
Royce Lithgo
Posts: 557
 Royce Lithgo
August 25, 2019 3:38 pm
(@roycelithgo)
Honorable Member
Joined: 6 years ago

You use parameters to pass from main to sub.

Refer Lesson 5 of S130 Open Uni training.

https://openuni.acumatica.com/courses/reporting/s130-inquiries-reports-and-dashboards/

https://openuni.acumatica.com/wp-content/uploads/2017/08/S130_DataRetrievalAnalysis_2017R2-1.pdf


Reply
Brianna Morrish
 Brianna Morrish
(@bri)
Joined: 6 years ago

Active Member
Posts: 5
August 25, 2019 10:38 pm
Reply toRoyce LithgoRoyce Lithgo

@royce-lithgo

Hello

This does not assist me.

Let me explain further, I have a sales order report which lists the orders and their total payments against the order (the total payments is a subreport).  What we need to do is a calculation on the main report which will subtract the order value from the total payments (the sub report).

How do we reference the sub report in the calculation, so we can get the remaining balance on the report?

Thank you for you assistance


Reply
Royce Lithgo
Posts: 557
 Royce Lithgo
August 25, 2019 11:16 pm
(@roycelithgo)
Honorable Member
Joined: 6 years ago

I don't think you can pass values back from a subreport. Can't you calculate the remaining balance in the main report without relying on the totals from the subreport? 

SOOrder.CuryUnpaidBalance perhaps?


Reply
Brianna Morrish
 Brianna Morrish
(@bri)
Joined: 6 years ago

Active Member
Posts: 5
August 25, 2019 11:20 pm
Reply toRoyce LithgoRoyce Lithgo

@royce-lithgo

No we have tried that and it does not work.  

 

Thanks again for your assistance


Reply
matthewjames
 matthewjames
(@matthewjames)
Joined: 5 years ago

Trusted Member
Posts: 40
October 23, 2024 11:04 am
Reply toRoyce LithgoRoyce Lithgo

@roycelithgo and @brian you can pass variables from sub reports back to the parent/main report, 

the syntax is =$*subreport name*_*variable name*

image
image
image

 


Reply
matthewjames
 matthewjames
(@matthewjames)
Joined: 5 years ago

Trusted Member
Posts: 40
October 23, 2024 11:04 am
Reply toRoyce LithgoRoyce Lithgo

@roycelithgo and @brian you can pass variables from sub reports back to the parent/main report, 

the syntax is =$*subreport name*_*variable name*

image
image
image

 


Reply
Royce Lithgo
Posts: 557
 Royce Lithgo
August 26, 2019 2:41 pm
(@roycelithgo)
Honorable Member
Joined: 6 years ago

Why doesn't it work? That field above is the unpaid balance for the Sales Order as shown on the page.


Reply
Brianna Morrish
 Brianna Morrish
(@bri)
Joined: 6 years ago

Active Member
Posts: 5
August 26, 2019 8:41 pm
Reply toRoyce LithgoRoyce Lithgo

@royce-lithgo

Below are the fields you suggested in a generic inquiry and you can see they don't match the sales order 

Which is why we have had to use a sub report to bring the payments in.


Reply
Royce Lithgo
Posts: 557
 Royce Lithgo
August 26, 2019 11:21 pm
(@roycelithgo)
Honorable Member
Joined: 6 years ago

Try holding down Ctrl + Alt and clicking on the field of interest. It will give you the DAC reference (Data Class + Data Field).

Click on the amount, not the label.

Also you have duplicated data in your GI - have you joined SOLine in as well?


Reply
Brianna Morrish
 Brianna Morrish
(@bri)
Joined: 6 years ago

Active Member
Posts: 5
August 26, 2019 11:23 pm
Reply toRoyce LithgoRoyce Lithgo

@royce-lithgo

Thanks for your help.

 

All good


Reply
Tim Rodman
Posts: 3199
 Tim Rodman
Admin
September 16, 2019 6:09 pm
(@timrodman)
Famed Member
Joined: 10 years ago

Last time I looked at that Payments DAC, it wasn't getting calculated outside of the Sales Orders (SO301000) screen, but maybe that's changed in recent versions.

Assuming it hasn't changed, it's a pain to have to use Subreports, but I don't know a better way.

See this post for fun with passing Subreport variables back to a Main report:

https://www.augforums.com/augforums/acumatica-report-designer/passing-variables-from-sub-report-not-resetting-value-when-no-value-in-subreport/


Reply
Jwright reacted
Forum Jump:
  Previous Topic
Next Topic  
Forum Information
Recent Posts
Unread Posts
Tags
  • 12 Forums
  • 2,528 Topics
  • 10.9 K Posts
  • 49 Online
  • 2,413 Members
Our newest member: psteichen
Latest Post: Credit Reference Report Needed
Forum Icons: Forum contains no unread posts Forum contains unread posts
Topic Icons: Not Replied Replied Active Hot Sticky Unapproved Solved Private Closed

Online Members

  • Tim Rodman Kevin Halme
Acumatica Forums

Terms of Use & Disclaimers :: Privacy Policy

Copyright © 2026 · AUG Forums, LLC. All rights reserved. This website is not owned, affiliated with, or endorsed by Acumatica, Inc.

‹›×

    ‹›×