Skip to main content
Answer

How to load external url image to an Acumatica Form

  • December 11, 2023
  • 4 replies
  • 224 views

Forum|alt.badge.img

Does anyone know how to load external url image to Acumatica Form?
I added an URL as User-Defined Fields in SOLine. I want to create a new form for the SOLine that can display the image of the URL, foe eample SOLine.UsrImageUrl = https://designerimages.artifi.net/UserPhoto/0e8a78b2-eea3-475e-b38c-b3ea2b606926/Customize/Standard/5f2142de-766c-44a0-8f32-0b447de9f6e2.png. The new form will display the image of the URL when an SOLine is selected. Then I want to add this new form as a side panel of Sales Order Entry screen. So when user click an order line, the side panel will display the image of the line.
 

Best answer by junmao01

I figured it out. The PXImageView will load URL image.

<px:PXImageView runat="server" DataField="ImageUrl" ID="edImage" Style='left:9px;top:9px;Position:absolute;' />

4 replies

lbarker
Semi-Pro II
Forum|alt.badge.img+3
  • Semi-Pro II
  • December 11, 2023

Maybe create a report that has the image which gets it from your url data field,  and parameter is the stock item code

Then on the side panel on the form it is the report, and you pass the parameter of the stock item code

That might work


Forum|alt.badge.img
  • Author
  • Varsity I
  • December 11, 2023

@lbarker Thanks for your suggestion. But the Acumatica report can’t get the image form external URL. It can only get the image stored within the same Acumatica server.


Forum|alt.badge.img
  • Author
  • Varsity I
  • Answer
  • December 12, 2023

I figured it out. The PXImageView will load URL image.

<px:PXImageView runat="server" DataField="ImageUrl" ID="edImage" Style='left:9px;top:9px;Position:absolute;' />


Chris Hackett
Community Manager
Forum|alt.badge.img
  • Acumatica Community Manager
  • December 12, 2023

Thank you for sharing your solution with the community @junmao01!