247
Views
14
Comments
Solved
Running a feedback_message before a download
Discussion

Hello

I am trying to implement an action which runs a feedback message, before exporting an excel file.

It seems that if the action ends with a download, the feedback message will not show.

Is there away around this problem? I've considered using a widget click in the action, but I'm not sure this approach will work.

Thanks

mvp_badge
MVP
Rank: #32
Solution

José/Joseph

You mentioned the widget click approach. Have you tried this? This approach will work.

1. Implement the feedback message and widget click. Widget click "clicks" a button Named Download.

2. Download button fires screen action Download when clicked and serves the file to the client:

Hope this helps.

Hanno

Rank: #1912

I cant find a way to do this :/

What is your intention in Feedback_messaging before the download? Is using a confirmation message a possible solution? Or creating a message in your screen, displayed controlled by a variable?

Rank: #15509

The feedback message seemed the best way I could think of, as the action running is an excel import, which and the download is an error log. The message was meant to be informing the user of the error, and the position of the error in the file, and thus a confirmation message will be pretty ineffective.

It's an issue I have noticed in the past too.. trying to think of a way around it.

Rank: #41

Joseph Palmer wrote:

Hello

I am trying to implement an action which runs a feedback message, before exporting an excel file.

It seems that if the action ends with a download, the feedback message will not show.

Is there away around this problem? I've considered using a widget click in the action, but I'm not sure this approach will work.

Thanks

Hi Joseph,

Let go step by step - 

1) I am trying to implement an action which runs a feedback message, before exporting an excel file. 

Answer - Outsystems already have builtin functionality for feedback message.

2) It seems that if the action ends with a download, the feedback message will not show.

Tell me one thing if download is complete then you don't want to show feedback message and if yes then can you tell me at what time you want to show then.

3) I've considered using a widget click in the action, but I'm not sure this approach will work.

Answer - We can do multiple approach to solve the problem by widget click but can you explain more because we need to go with best practice of OS, if I can suggest something to you.


Thanks,

Rajat Agrawal


Rank: #41

Ho Joe,

Its means feedback message is working in action but it not appearing when you are using in export to excel action.

Can you share the oml?


Thanks,

Rajat Agrawal


mvp_badge
MVP
Rank: #32
Solution

José/Joseph

You mentioned the widget click approach. Have you tried this? This approach will work.

1. Implement the feedback message and widget click. Widget click "clicks" a button Named Download.

2. Download button fires screen action Download when clicked and serves the file to the client:

Hope this helps.

Hanno

mvp_badge
MVP
Rank: #32

I have quickly built a sample OML for you.

FeedbackAndDownload.oml

mvp_badge
MVP
Rank: #32

Great! Glad you got it working!

Yes, the container with display property works well. Note, that you can also set the style property of the button to "display:none" as in the sample OML

Rank: #13294

Hi All,

I have tried this fix and it works like a charm! The PDF files that are being generated are very large however and the feedback message is closing before the download has been completed. I know that my users are very impatient and will start clicking around when not notified properly. Is there a way to make to feedback message disappear when the download has been completed? 

Just lengthening the time that the message shows will not be sufficient since not all downloads take the same time of course. 

Anyone have an idea about how to do this?

Thanks!