On Single Click Download The Document and Write record in DB

Hi Everyone,

Is there any way to Download the document and Write operation into Data Base on One Link[One Click Event] from User Interface level.

We are working on 18.2.

Thanks In Advance!!

  Discussion posts and replies are publicly visible

Parents
  • Hi Venkatesh,

    use this function getdatasubsetdownloadlinkfromprocess() or getdatasubsetdownloadlinkfromrule() in the interface which will genearate the link.
    Configure the interface in Process model to write into db.


    Hope it will helps.


    Thanks,
    Sudha.P
  • Thanks For The Response Sudha.

    The getdatasubsetdownloadlinkfromprocess() or getdatasubsetdownloadlinkfromrule() both this links will return URL and In Your Process Model should return Exportable DataSubset.

    AFAIK This will only for Excel file download for customized data[From Data Base OR Other] .

    In My Use Case I have Document , I will provide Document download link. In this case user will able to download But I need to capture that operation also on click of that link .Here no need to generate new document, Already we have existing one.

    Thanks!!

  • Hi Venkatesh,

    AFAIK, This functionality is not available in Appian right now. Instead you can achieve this in the following.

    1) You can see the current user is in the list of download history of this document.  This is in turn has lot of limitations (like if the same user is already downloaded the document for the first time and when he visited the same form in the next time and not downloaded the document next time you can still see the user in the list because he has already downloaded it) so this may not meet your requirement if it is template kind of document.

    2) You can have dynamic link on the page first and when user has clicked on that link we will just show them that actual document and then on click of dynamic link you can make an entry in database. In this case we must assume that when user clicks on Dynamic link then he is intended to download the document. 

    This is what I feel we can do that. Let's see what other folks responses.

  • Thanks For The Response  

    You are saying first will display dynamic link with some label, Once Users clicks on that link will write into Data Base and At the same time display the Document download link now.

    In this case we need to assume for the first time click event user downloaded the document, Instead of actually download the document. If we don't have any other option will work on it.

    Let's see what other folks responses.

Reply Children
No Data