download document on button click

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

Parents
  • 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 :)
Reply
  • 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 :)
Children
No Data