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...
Images for a report
 
Notifications
Clear all

Questions Images for a report

 
Acumatica Report Designer
Last Post by Tim Rodman 8 years ago
7 Posts
2 Users
1 Reactions
11.7 K Views
RSS
DWS253
Posts: 33
 DWS253
Topic starter
July 6, 2017 2:37 pm
(@dws253)
Member
Joined: 8 years ago

I would like to change the company logo image based on the Sales Order type field. 

If I could get it stored where I can find it later, then I believe I could build a formula for the value property that would print one image for Sales Order type A and another image for Sales Order type B.  I know how to tie an image to a branch, but we only have one branch.  I am not sure how/where to store an image in the database so that I can access it in the report. 

Can you tell if there is a way to do this?


6 Replies
Tim Rodman
Posts: 3193
 Tim Rodman
Admin
July 6, 2017 3:53 pm
(@timrodman)
Famed Member
Joined: 10 years ago

Hi DWS253,

Would it be ok to load the logos directly into the report?

Or do you want to load them someplace else so you can use them on multiple reports?


Reply
DWS253
 DWS253
(@dws253)
Joined: 8 years ago

Member
Posts: 33
July 10, 2017 12:53 pm
Reply toTim RodmanTim Rodman

I think it would be OK to add two logos to the one report.  It would be better if we could pull them from the database.  I know how to put an image into a report, but don't know how to put more than one.


Reply
Tim Rodman
Posts: 3193
 Tim Rodman
Admin
July 11, 2017 2:13 am
(@timrodman)
Famed Member
Joined: 10 years ago

Here is how you could upload multiple images to the report itself:

  1. Go to the report properties, then Data -> EmbeddedImages, and click the ... icon
  2. Click the New image ... button. You can do this multiple times to upload multiple images:
  3. Then, when you add a PictureBox to the report, you set Data -> Source to Embedded
  4. Clicking the drop-down in Data -> Value will show you a drop-down with all of the embedded images listed
  5. In your example, you would add multiple PictureBox images to the report and use Behavior -> VisibleExpr to control when each one prints (they will print when this evaluates to True)
Acumatica Version 6.10.0472 used when composing this response

Reply
Tim Rodman
Posts: 3193
 Tim Rodman
Admin
July 11, 2017 2:20 am
(@timrodman)
Famed Member
Joined: 10 years ago

Also, I think I found a way to put the images in the database:

  1. Attach your images to the Order Types screen for each order type
  2. On the PictureBox, set Data -> Source to Database and Data -> Value to =[SOOrderType.NoteFiles]

Note: If you attach more than one image to an Order Type, it grabs the first one that you attached (nice that it's so smart). I'm not sure why you would attach more than one, but I was curious so I decided to test it.

Acumatica Version 6.10.0472 used when composing this response

Reply
DWS253
Posts: 33
 DWS253
Topic starter
August 9, 2017 7:35 pm
(@dws253)
Member
Joined: 8 years ago

I wanted to provide an update.  I finally got around to testing your suggestion.  Works well.  

One thing I wanted to add is that even though the PictureBox.Data.Value property does not have an ellipsis button to open the builder dialog, you can build a formula and paste it in as the value.  

Here is the value I used to pull the image from the Order Type for the "SP" order type and from the Branch for everything else.

=IIf( [SOOrder.OrderType] = 'SP', [SOOrderType.NoteFiles], [Branch.LogoName])

Thanks for your help.


Reply
Stéphane Bélanger reacted
Tim Rodman
Posts: 3193
 Tim Rodman
Admin
August 9, 2017 8:13 pm
(@timrodman)
Famed Member
Joined: 10 years ago

Nice! I didn't realize that you could put a formula in there. Thanks for pointing that out. And thanks for sharing the formula.


Reply
Forum Jump:
  Previous Topic
Next Topic  
Forum Information
Recent Posts
Unread Posts
Tags
  • 12 Forums
  • 2,526 Topics
  • 10.9 K Posts
  • 7 Online
  • 2,386 Members
Our newest member: Tim Gaukroger
Latest Post: Generic Inquiry Screenid changes to ScreenId=00000000
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 Julie Baker
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.

‹›×

    ‹›×