Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
Replies
6 replies
Subscribers
7 subscribers
Views
2941 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
User Interface
Hello everybody i'n asking about how to generate a document id from upload
ahmada674
over 10 years ago
Hello everybody i'n asking about how to generate a document id from upload multi attachments using this interface with these rules:
----------------------------------------------------------------------------------------------------
a!applyComponents(
function: rule!ucMultiFileUploadRenderField(label: "Upload Files", attachments: ac!attachments, target: cons!Attach_FOLDER , index: _),
array: 1 + fn!enumerate(1 + length(ac!attachments))
),
a!textField (
label: "Document Id", readOnly: true, value: ac!attachments
)
-------------------------------------------------------------------------------------
the value: ac!attachments generate the document id with this format [Document:id]
so i'm wondering how can i download these attachments with specif link for each attachment.
i tried this solution bit it doesn't help:
-------------------------------------------------
a!linkField(
label: "Downl...
OriginalPostID-133308
OriginalPostID-133308
Discussion posts and replies are publicly visible
0
ahmada674
over 10 years ago
...oad",
links: a!safeLink(
uri:"
appiandev:9080/.../1338",
label: "Download Link "
)
--------------------------------------------------------------
above i tried to catch the id of each file uploaded but nothing fix this issue.
Best Regards..
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
ahmada674
over 10 years ago
-------------------------------------------------
a!linkField(
label: "Download",
links: a!safeLink(
uri:"http://appiandev:9080/suite/doc/1338",
label: "Download Link "
)
--------------------------------------------------------------
above i tried to catch the id of each file uploaded but nothing fix this issue.
Best Regards..
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
janakik
over 10 years ago
toInteger(ac!attachment) would return you the Id of the document. If this attachment is of multiple type, you need to use a looping function Ex: apply(fn!tointeger,ac!attachments).
Hope this helps!
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
radhaa
over 10 years ago
please find the attached document, it may help
SAIL code
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
ahmada674
over 10 years ago
thanks mr.jankik for your help it's worked.
Mr.Radhaa Thank you very much for the code which I'll be using, Appreciate your help.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Jason Ruvinsky
Certified Senior Developer
over 10 years ago
Note that you cannot use the document id on the same interface that the document was uploaded on. This is because the uploaded document is a temporary document, and doesn't have a valid id until the form is submitted.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel