Question

2
Replies
1707
Views
Jonatan Lopez (JonatanL)
Rulesware LLC

Rulesware LLC
SV
JonatanL Member since 2017 3 posts
Rulesware LLC
Posted: September 20, 2018
Last activity: September 20, 2018
Posted: 20 Sep 2018 0:48 EDT
Last activity: 20 Sep 2018 7:35 EDT
Closed

Download excel file is not working after doing a second click

Hello.

As part of a requirement, I have to create an excel file and download it using a link or a button that part I have already completed it by creating an activity which retrieves the needed data with a report definition and then I use the OOB activity MSOGenerateExcelFile to create and download the file, then in the section with a link I am calling the activity I have created on a onClick event and a refresh this section action at this point everything is working fine but when I click the link again the file is not being download as it should be even though the activity is executed as I could identify in the tracer.

I tried using run script but with no success, the script looks like this:

function ExportExcel(){
var URL = new SafeURL("myClass.GenerateExcelFile");
url = URL.toURL();
window.open(url,"_blank");
}

Finally, this js file is added to my harness and that function is called in the run script event of the link.

Do you know, guys, what I am doing wrong? or do I miss something important in my code that is not allowing me to download the file.

Thanks in advance.

***Edited by Moderator: Pallavi to update platform capability tags***

Data Integration Java and Activities Reporting User Experience
Moderation Team has archived post, This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Question, please write a new Question.