AugForums.com

An Acumatica User Group

  • Free
    • Start Here
    • Rolodex
    • Podcast
    • 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...
Selected Branch Nam...
 
Notifications
Clear all

Questions [Solved] Selected Branch Name on Report

 
Acumatica Report Designer
Last Post by syratabios 5 years ago
8 Posts
4 Users
3 Reactions
5,311 Views
RSS
Daniel Lehn
Posts: 21
 Daniel Lehn
Topic starter
September 11, 2018 2:34 pm
(@daniel-lehn)
Member
Joined: 8 years ago

Hi, I'm attempting to print the branch name on the report that I'm running. I can get the name of the branch to print that is selected at the top of the screen, but not the branch name selected in the report. In the header of the image below, the Branch ID currently prints on the "Branch" section, whereas I would like the branch name to print where the "Company" field is.

For reference, I'm working from one of the out-of-the-box Acumatica reports, Journal Transactions for Period. The formula that looks promising to me is =Report.GetDefUI('CompanyBAccount.AcctName'), which is what @BranchID is defined by in the report schema. This is not the default formula, FYI.

I would like to modify this formula to print the branch name instead of the branch ID.

Here is the current report, where I have "Subsidiary" selected on top (prints in the Company field), but "HQ" selected when I run the report:

I solved this problem in ARM using "=Report.GetBranchText(@StartBranch)", however Report Designer has a different set of definitions and I don't know how to access the ARM schema that defines "@StartBranch". This may be a path to the answer. Any suggestions are appreciated.

 


7 Replies
Tim Rodman
Posts: 3193
 Tim Rodman
Admin
September 20, 2018 5:30 am
(@timrodman)
Famed Member
Joined: 10 years ago

Hi Daniel,

Does this formula work for you?

=Report.GetDescription('OrganizationBranchReportParameters.BranchID',[@BranchID])

Note that in Acumatica 2018 R1 there are both Companies AND Branches, not just Branches. So you might need to change the formula to the following in Acumatica 2018 R1:

=Report.GetDescription('OrganizationBranchReportParameters.BranchID',[@OrganizationID])


Reply
Daniel Lehn
Posts: 21
 Daniel Lehn
Topic starter
September 20, 2018 12:47 pm
(@daniel-lehn)
Member
Joined: 8 years ago

Unfortunately the applicable one didn't work, it just shows a blank field when I use it -- =Report.GetDescription('OrganizationBranchReportParameters.BranchID',[@BranchID])

I'll post if I find a good solution to this.


Reply
Tim Rodman
Posts: 3193
 Tim Rodman
Admin
September 24, 2018 7:06 am
(@timrodman)
Famed Member
Joined: 10 years ago

Can you attach your .rpx file to this post?


Reply
Daniel Lehn
Posts: 21
 Daniel Lehn
Topic starter
September 30, 2018 5:06 pm
(@daniel-lehn)
Member
Joined: 8 years ago

I was able to come up with a solution to this. The variable I needed is "Branch.AcctName," but the trick was using it to define a variable below the header. See screenshot below. I defined the $CoName variable in the lower part of the report where the branch was already clear. When I attempted to do this in the report header it didn't work. I guess the branch defaults to what's selected on the top of the screen until a different branch is defined.

Here's the .RPX file:

GL632000.rpx

I think this is pretty clear, but let me know if it's not. Thanks for looking at this!


Reply
Tim Rodman
Posts: 3193
 Tim Rodman
Admin
October 8, 2018 9:17 am
(@timrodman)
Famed Member
Joined: 10 years ago

Interesting that the formula didn't work. But your variable method totally works. Nice job!


Reply
Joel McDonnell
Posts: 1
 Joel McDonnell
September 30, 2020 11:24 am
(@jmcdonnell)
New Member
Joined: 5 years ago

FYI - in 2020R1 the following formula worked on AP report (Payment Register).  The IsNull is used to get either the branch or company name/description:
=IsNull(Report.GetDescription('OrganizationBranchReportParameters.BranchID',[@OrgBAccountID]),Report.GetDescription('OrganizationBranchReportParameters.OrganizationID',[@OrgBAccountID]))

===

If anyone has a similar approach formula to get the [Branch.BranchOrOrganizationLogoNameReport] based on a parameter it would be very helpful as well.


Reply
syratabios and Tim Rodman reacted
syratabios
 syratabios
(@syratabios)
Joined: 5 years ago

Active Member
Posts: 3
March 19, 2021 4:16 am
Reply toJoel McDonnellJoel McDonnell

@jmcdonnell Hi this is a big help, I'm having a trouble in displaying the address and logo based on the login branch. Is there anyone who have solution on this? It would be a big help, Thanks!


Reply
Tim Rodman reacted
Forum Jump:
  Previous Topic
Next Topic  
Forum Information
Recent Posts
Unread Posts
Tags
  • 12 Forums
  • 2,526 Topics
  • 10.9 K Posts
  • 8 Online
  • 2,410 Members
Our newest member: thollings
Latest Post: Customer Portal Setup - Access issues to create sales order
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

  • Steven Fuller
Acumatica Forums

Terms of Use & Disclaimers :: Privacy Policy

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

‹›×

    ‹›×