One click download to excel with icon

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

Parents Reply Children
No Data

 Discussion posts and replies are publicly visible