Skip to main content
Answer

How to display images in the Sales Order Line Item Grid from an external CDN URL

  • October 25, 2021
  • 5 replies
  • 561 views

Forum|alt.badge.img

Currently, we are displaying imagery in the SO Line items from image files that are uploaded into Acumatica. However, this is causing a great deal of performance issues and we are trying to figure out how to instead load these images from an external CDN HTTPS URL so that we can avoid all Acumatica related calls and server processing to display these images. In this scenario, we would be calling an AWS Cloudfront CDN URL that is completely separate from the Acumatica server.


Does anyone have any advise as to how to best handle?

Best answer by ChandraM

Hi @ckwiat46 Please find the below link providing the details to add an image to the so line.

https://stackoverflow.com/questions/50029264/acumatica-adding-image-in-sales-order-line

 

Thanks

5 replies

Forum|alt.badge.img+8
  • Semi-Pro I
  • Answer
  • October 25, 2021

Hi @ckwiat46 Please find the below link providing the details to add an image to the so line.

https://stackoverflow.com/questions/50029264/acumatica-adding-image-in-sales-order-line

 

Thanks


Forum|alt.badge.img
  • Author
  • Jr Varsity III
  • October 25, 2021

hi @ChandrasekharM - thank you for the reply. I should have mentioned that we not only saw this post, but have implemented similar (if not the same) code a few years back.


What we are specifically asking about in this topic is how to bring in images over an external cdn url and NOT from files that live within acumatica/acumatica server, etc…

 

Unless I’m missing something, i don’t think that the stackoverflow post addresses this use case.

 

And just to be clear, we know how we would generate the CDN URL, we just don’t know how to implement the image cdn url pull into the grid. If this were normal html/web markup, it would be relatively straightforward. Hope this helps clarify.


Forum|alt.badge.img+5
  • Jr Varsity II
  • October 25, 2021

Wouldn’t you just be able to use the CDN URL instead of the Acumatica file URL? In the stack overflow post the URL is an Acumatica one but I don’t believe it has to be.

The UI component just boils down to an img html element with the src set to whatever URL you provide it and as such should work with non Acumatica URLs assuming they a properly accessible. 


Forum|alt.badge.img
  • Author
  • Jr Varsity III
  • November 19, 2021

@markusray17 @ChandrasekharM 

just to close the loop on this, you both were correct. We are able to call in external urls as per the direction provided. Thank you. Much appreciated.


Forum|alt.badge.img+8
  • Semi-Pro I
  • November 19, 2021

@markusray17  Thanks for the update.