I've attempted multiple times to display images saved in our branding folder in Appian, but each time I receive an error that the image does not exist. I've tried using the doc 'name', 'ID', and the UUID. Does anyone have any tips? I've even tried saving the docs to the knowledge center instead of a regular folder. It would be helpful to see an example of coding. I'm not even able to display our logo.
Thanks for any help!
Discussion posts and replies are publicly visible
I'd suggest using a constant to reference your document. Then, it will be easier to use it within any interface on any environment. For example, suppose I upload a document called My Logo. Then, I'd create a constant to point to it like this:
Then, you can reference it in any interface using the a!documentImage() function:
a!imageField( images: a!documentImage( document: cons!PDL_DOC_MY_LOGO ) )
If that doesn't work, can you provide more information about what you have tried?
How about the dynamic image stored in the artifact folder? Like if I have smart service to generate a QR code and want use the generated QR code in my interface how to do that.
Generate QR Code & Bar Code smart services are there (Plug In) , that smart service saves the generated files in a target folder . Showing it in a user Interface you can handle it in multiple ways .One would be user input task after generation
Yes, But how to show the generated image in my interface?
1. User Input Task after Generate QR Code node. Just pass the generated document.
2. If you are saving generated document in DB , Get the Document ID from there .
3. Create a Constant for generated document and reference the constant
Thanks, I am saving it in the artifact folder and the properties are like thisNow If I want to display that image how to do that?
I don't get it , you are asking for interface component to show a saved document or way handle generated document. If You are looking for Interface component you can use "Document Viewer field" or "image field ".
Want to know how to handle the generated document? Or Displaying the Generated Document into an interface.