How to close a feedback message from an action

How to close a feedback message from an action

  
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
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


That's great Gonçalo, I'll have a try on that!
Additionaly, depending on what you want, simply doing ExceptionMessage = "" in an assign will prevent the feedback message from showing.
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
Ahahahaha. That's cool. Thanks for that!

I'm busy in here with a client and was unaable to test it...
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!
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?
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
Hi it is simple just send a empty feedback message from your action this works fine.
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
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,




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

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.
 
Hi Alexsandro, why not use the action from Essentials?

Give it a try! :)
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);
 
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
 
Hi all.

Just tried the action from Essentials and it did work... any complains on this?
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!
 
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,