384
Views
19
Comments
How to close a feedback message from an action
Question
Hi Comunity, how are you today?


Did anyone had the need to close a feedback message from an action?

I opened the RichWidgets eSpace and looked at the Feedback_Message action, but I'm still wondering if there's a way to do it.

Anyone has anything readly available for this?

Cheers,
Pedro
2022-11-12 11-28-30
Gonçalo Martins
Staff
Helo Pedro,

Using the Growl Feedbacks you can put the following script in an action, using RunJavascript:

osjs('#gritter-notice-wrapper').hide();

In the RichWidget's Feedback_Messages you can do the same.
Hope this helps.

Kind Regards,
Gonçalo Martins


2024-01-22 15-21-29
Pedro Cardoso
That's great Gonçalo, I'll have a try on that!
2022-11-12 11-28-30
Gonçalo Martins
Staff
Pedro Cardoso wrote:
That's great Gonçalo, I'll have a try on that!
Pedro,

Using the same idea for RichWidget's Feedback_Messages you can do this:

osjs('.Feedback_Message_Success').hide();

I didn't resist to try it.. :)

Kind Regards,
Gonçalo Martins
2025-07-02 19-21-41
Carla Ribeiro da Fonseca
Additionaly, depending on what you want, simply doing ExceptionMessage = "" in an assign will prevent the feedback message from showing.
2012-04-17 21-03-34
enigma
Carlos Ribeiro da Fonseca wrote:
Additionaly, depending on what you want, simply doing ExceptionMessage = "" in an assign will prevent the feedback message from showing.
hi carlos, my issue isnt related with this topic, but i am trying exactly that Session.ExceptionMessage = ""
but i get an error "Unknown object 'ExceptionMessage' in variable"

are there any limitations to clearing this variable? (platform v.8.0.0.3)

im trying to save the exception messages into a record list during a loop
but if one error occurs, it simply remains filled untill the next error
even though X-records might have not had an error at all
 
thank you!
2018-05-22 14-02-33
Alexsandro Gomes da Costa
Carlos Ribeiro da Fonseca wrote:
Additionaly, depending on what you want, simply doing ExceptionMessage = "" in an assign will prevent the feedback message from showing.
 If the message does not come from ExceptionMessage, this solution will not work.
 
UserImage.jpg
Bavitha Sokhi
Carlos Ribeiro da Fonseca wrote:
Additionaly, depending on what you want, simply doing ExceptionMessage = "" in an assign will prevent the feedback message from showing.
This cleared the previous Feedback Message from the screen. Perfect! Thanks!
 
2024-01-22 15-21-29
Pedro Cardoso
Ahahahaha. That's cool. Thanks for that!

I'm busy in here with a client and was unaable to test it...
2025-07-02 19-21-41
Carla Ribeiro da Fonseca
Hmmmm...
Hadn't noticed that in version 8.
Oh well, I guess clearing the session variable is no longer an option.
Also, since the session variable is gone, I have no idea how to grab the messages.
Maybe someone from OutSytems can help?
2012-03-16 12-21-09
João Rosado
Staff
Hi,

The session variable isn't gone, it's just read-only.
That was a breaking change in 6.0 or 6.1.

For the cycle problem. for the exception to be filled it means that you had to pass in a error handler flow inside a sub-action. Right?
If that is the case, than you should have a output parameter of the action where you can fill the error message and use that instead.

Regards,
João Rosado
2012-04-17 21-03-34
enigma
thanks for the replies

unfortunately sending an empty (or even set) feedback message, wont change the session variable untill the screen is processed again

seems that i have to basically create "loop" action, which will catch any errors
and return the error string via output parameter
2012-08-04 21-41-02
Alexandre Costa
Hi it is simple just send a empty feedback message from your action this works fine.
2024-01-22 15-21-29
Pedro Cardoso
Hi guys,

I've just published a new version of Essentials with an action to close a feed back message from server side.

So... now you can close that anoying feedback message that sticks to your screen even after the user fixed the data!

Cheers,




2018-05-22 14-02-33
Alexsandro Gomes da Costa
Add javascript in Layout_Normal:
 
function CloseFeedbackMessage(){
    window.setTimeout('$(".Feedback_Message_Wrapper").animate({opacity:0},1000)',10000);
}
setInterval('CloseFeedbackMessage()', 10000);

2024-01-22 15-21-29
Pedro Cardoso
Hi Alexsandro, why not use the action from Essentials?

Give it a try! :)
2018-05-22 14-02-33
Alexsandro Gomes da Costa
Pedro Cardoso wrote:
Hi Alexsandro, why not use the action from Essentials?


Give it a try! :)
His action did not work.

I decided with my code: 

function CloseFeedbackMessage(){
    window.setTimeout('$(".Feedback_Message_Wrapper").animate({opacity:0},1000)',10000);
}
setInterval('CloseFeedbackMessage()', 10000);
 
2018-05-22 14-02-33
Alexsandro Gomes da Costa
Alexsandro Gomes da Costa wrote:
Pedro Cardoso wrote:
Hi Alexsandro, why not use the action from Essentials?


Give it a try! :)
His action did not work.

I decided with my code: 

function CloseFeedbackMessage(){
    window.setTimeout('$(".Feedback_Message_Wrapper").animate({opacity:0},1000)',10000);
}
setInterval('CloseFeedbackMessage()', 10000);
 Add javascript in Layout_Normal.


Regards,

Alexsandro Gomes da Costa
 
2024-01-22 15-21-29
Pedro Cardoso
Hi all.

Just tried the action from Essentials and it did work... any complains on this?
2017-10-09 20-45-22
André Siébra
Hey guys,

Check this component I've published . All you need is just to replace the original Feedback Actions with this new one.

Best regards,
Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.