Hi,
I added a download icon on my page so the user could click on it to download the grid content to an excel file, however, whenever the icon is clicked, a download file hyperlinked text is showed in the screen. This cause the user to click twice in order to get his/her file.
I would like to have the download icon where the user just need to click once.
Can someone point to me what I am missing?
Here is the code I have:
a!richTextDisplayField( labelPosition: "COLLAPSED", value: { a!richTextIcon( icon: "file-excel-o", caption: "Download", link: a!dynamicLink( saveInto: { a!startProcess( processmodel: cons!SSI_PM_SS_EXPORT_REPORT, processparameters: { ssId: ri!ssId, showDetailsFlag: true() }, onSuccess: { a!save( local!exportDocId, fv!processInfo.pv.Document ) }, onError: { a!save( local!errorMessage, "An error ocurred while generating the report." ) } ) } ), linkStyle: "STANDALONE", size: "MEDIUM" ) }, align: "CENTER" ) }
Thanks,
Roberta
Discussion posts and replies are publicly visible
I had almost similar requirement from Interface level and I was also looking for the same answer. Yet to find any.
For workaround, I have put another link on second click to reset the Excel Data
As per my knowledge there is no out of the box functionality to download the document in one click.
Here on first click document is getting generated which provides the link and on the second click its get downloaded.
Hi robertab0001,
You can use WEB API to achieve this.
Once you created web api , use safe link to call from your target interface.
Vinod