Displaying asset images in a summary view.

Hi, I am making an Asset Management application.

I have a functionality which allows me to create new assets with information such as asset name and asset Id. There is also an ability to add images of the asset in the interface where I have used the a!fileuploadfield which points to a constant which is a folder that stores the images. Here is the code for the same.

/*a!fileUploadField(*/
/*label: "Asset Image",*/
/*labelPosition: "ABOVE",*/
/*target: cons!G1_folderAssetImages,*/
/*value: ri!G1_Assets.imageId,*/
/*saveInto: ri!G1_Assets.imageId,*/
/*required: true,*/
/*validations: {}*/
/*),*/

I want to make a summary view (Interface) which shows all the information about the asset along with its image. But as of now I am just able to show the image id. Is there any way I can dsiaplay the image in this new interface?

  Discussion posts and replies are publicly visible

Parents Reply
  • 0
    Certified Lead Developer
    in reply to gautami7457

    You're trying to display the image before submitting the form - this won't work.  Prior to form submission, newly-uploaded files are only stored in a special "temporary" location in the Appian back-end, and are not accessible via regular functions, even document(), documentImage(), etc.  After a "submit" click, the document is moved to its proper destination and these things will work as expected.

    What you'll need to do here is have the user upload any image(s) and submit the form, then have your process chain to a new task (or even back to the same form) whereupon the image in question will be ready to be displayed.

Children
No Data