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
you can configure your interface something like below,
a!imageField( label: "Image", images:a!documentImage( document: your doc id ) )
I tried using this and replaced the document ID with my document ID. But I get this error:Could not display interface. Please check definition and inputs. Interface Definition: Expression evaluation error at function a!imageField [line 91]: User Does Not Have Rights to Perform this Operation
Mirroring my answer from above, in case it gets buried:
Additionally, at times like this, it would be helpful for you to post more fully-inclusive code snippets or screenshots (i.e. your whole form or at least all relevant parts thereof, with sensitive parts snipped or redacted), as well as a screenshot of your process flow, because without these we're forced to do a lot of guesswork.
I got it. This worked. Thankyou so much.