Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Suggested Answer
+5
person also asked this
people also asked this
Replies
22 replies
Answers
8 answers
Subscribers
12 subscribers
Views
37223 views
Users
0 members are here
SAIL Interface
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
User Interface
How we can display uploaded file in an interface?
Aswini
over 6 years ago
How we can display uploaded file in an interface?
Discussion posts and replies are publicly visible
Top Replies
rameshb851
over 5 years ago
in reply to
kowsalyav
+2
A Score Level 1
Hi Aswin a!linkField( label:"Upload Documents", labelPosition:"ABOVE", links:{ a!forEach(items:local!Docs.appiandocid, expression:a!documentDownloadLink( document:fv!item, label:document(documentId:fv…
Ravi Roshan
over 6 years ago
+1
suggested
a!imageField( label: "Document", labelPosition: "ADJACENT", images: { a!documentImage( document: a!iconIndicator( icon: "DOC_GENERIC" ), link: a!documentDownloadLink( document: todocument…
Ravi Roshan
over 6 years ago
in reply to
Ravi Roshan
+1
Instead of 800835, please use your variable name.
Parents
+1
Abhishek Gaddam
over 6 years ago
Hello,
In the component a!fileUploadField(), you have two fields fileName & target , where you can name the files uploaded in a particular naming pattern and store the file in a folder respectively.Using that name pattern you can access any file uploaded after it is submitted using the below code. However this only works when we submit the file as displaying the uploaded file is only possible when it is submitted and an id is created.
ri!docName : rule input to store document.
cons!THETARGETFOLDERCONSTANT : constant which stores the target folder.
a!richTextItem(
text: " Download",
style: "STRONG",
link: a!documentDownloadLink(
label: "Download",
document: todocument(
folder(findcontentbyattribute(
false,
"document",
"name",
ri!docName,
cons!THETARGETFOLDERCONSTANT
),"id")
)
)
)
Hope this helps .
regards,
Abhishek Gaddam.
Cancel
Vote Up
+1
Vote Down
Sign in to reply
Verify Answer
Reject Answer
Cancel
Reply
+1
Abhishek Gaddam
over 6 years ago
Hello,
In the component a!fileUploadField(), you have two fields fileName & target , where you can name the files uploaded in a particular naming pattern and store the file in a folder respectively.Using that name pattern you can access any file uploaded after it is submitted using the below code. However this only works when we submit the file as displaying the uploaded file is only possible when it is submitted and an id is created.
ri!docName : rule input to store document.
cons!THETARGETFOLDERCONSTANT : constant which stores the target folder.
a!richTextItem(
text: " Download",
style: "STRONG",
link: a!documentDownloadLink(
label: "Download",
document: todocument(
folder(findcontentbyattribute(
false,
"document",
"name",
ri!docName,
cons!THETARGETFOLDERCONSTANT
),"id")
)
)
)
Hope this helps .
regards,
Abhishek Gaddam.
Cancel
Vote Up
+1
Vote Down
Sign in to reply
Verify Answer
Reject Answer
Cancel
Children
No Data