Skip to main content
Solved

Download indicium XLSX via running tasks


Forum|alt.badge.img+1

I like to achieve the following in our application (Web GUI):

When the user executes a certain task a download* is started and shown in the running tasks window. When the download is finished the user can retrieve the file via the running tasks window.

* The download is the response of a select request to indicium with the option to export as XLSX added (&$export=xlsx).


It should behave the same as how you can download a GUI via the TCP website.


What steps are needed to achieve this?

Best answer by Mark Jongeling

Hi Pierius,

I forgot to answer the question sorry, after asking around, this is a custom task that has been specially made for TCP as it comprises multiple files and/or folders to create a download for the user. This is not a native feature of the platform.

The Await result set to No will cause the Task to be run in the background, but because you are using the task inside a process flow, the GUI will "freeze” until the HTTP connector step is finished. Using Tasks with await result set to No inside process flows may cause this behavior if there are steps after the execution of this task. If it's the last step, I believe it does not freeze the GUI.

View original
Did this topic help you find an answer to your question?
This topic has been closed for comments

3 replies

Mark Jongeling
Administrator
Forum|alt.badge.img+23

Hi Pierius,

I believe you can achieve this by changing the value of Await result to No:

SF > Tasks > Settings - General

By setting this to No, the Task will be execute in the background. Progress for this task can then be watched in the Running tasks pop-up as illustrated in your image. (Top-right corner of the application)


Forum|alt.badge.img+1

Hi Mark,

Unfortunately when I set the task setting Await result to No. The running tasks window will show up, but freezes until the task is finished. During the freeze you can’t minimize or close the window to perform other actions.

After the task is done there is no option available to download the xlsx.

The process flow executed by the task is set up as follows.

What am I missing?


Mark Jongeling
Administrator
Forum|alt.badge.img+23
  • Administrator
  • 3940 replies
  • Answer
  • June 15, 2022

Hi Pierius,

I forgot to answer the question sorry, after asking around, this is a custom task that has been specially made for TCP as it comprises multiple files and/or folders to create a download for the user. This is not a native feature of the platform.

The Await result set to No will cause the Task to be run in the background, but because you are using the task inside a process flow, the GUI will "freeze” until the HTTP connector step is finished. Using Tasks with await result set to No inside process flows may cause this behavior if there are steps after the execution of this task. If it's the last step, I believe it does not freeze the GUI.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings