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
+2
person also asked this
people also asked this
Replies
14 replies
Subscribers
10 subscribers
Views
12772 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
User Interface
download document on button click
ramakg
A Score Level 1
over 7 years ago
When I click on button on SAIL, it would prompt for document to download. How will achieve this functionality.
Thanks in advance.
OriginalPostID-236773
Discussion posts and replies are publicly visible
0
sikhivahans
over 7 years ago
@ramakg To the best of my knowledge, he SAIL Button Component isn't actually intended for doing so. Document Link SAIL Component is the one which is intended for achieving the purpose you are aiming at, and afaik SAIL Button Component isn't a viable option at least for now.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
sahithip
over 7 years ago
Hi Rama,
If the button is submit then we can display one more form which contain the link to download the document.
If the document is not Submit, den we can display extra field which contains link to download the document on click of that button
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
ramakg
A Score Level 1
over 7 years ago
thanks for your quick response
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
sikhivahans
over 7 years ago
The above-mentioned approach still won't give a *prompt*which we see when we click a Document Link SAIL Component.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
chandu
A Score Level 2
over 7 years ago
Hi Ramakg, how about using an Icon type image field some thing like which will display "down arrow" that points to documentDownloadLink, that gives some visual clue to end user so that user can download the document on clicking of that Image.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
vijayy700
over 7 years ago
You may try this, this is not exactly what you asked for but quite similar - You can add a button on your Form with appropriate text and clicking on that will lead to the next form (using activity chaining to next form) there you can have a link to download the file and after its completion back to the previous page (where the button was clicked)
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
ramakg
A Score Level 1
over 7 years ago
@chandrasekharg, can we attach documentDownloadLink tag to image filed ?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
vijayy700
over 7 years ago
Do you mean to show image instead of plan link to download the file, Yes in that case use "a!documentImage(...)" function
a!documentImage(
document: todocument(1),
link: a!documentDownloadLink(
label: "sampleImage",
document: linktodocument(1,"sample")
)
use "document" property to show the image for enduser on which user will click
And then use "document: linktodocument(1,"sample")" property to link the document which will get down load once user clicks on the image
Hope this will help :)
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
ramakg
A Score Level 1
over 7 years ago
thank you Vijay. is it possible to capture an image click event?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
sikhivahans
over 7 years ago
@ramakg It depends on what kind of Link Type you associate with 'Document Image'. If you use Dynamic Link with Document Image, then yes, it is possible to capture the image click event as we can write the code which captures the event in the 'saveInto' of Dynamic Link. But if you want to use Document Download Link, it's not possible as Document Download Link lacks 'saveInto' attribute.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
>