cancel
Showing results for 
Search instead for 
Did you mean: 

How can make remove the displayed message?

former_member194142
Participant
0 Kudos

Hello

I am throwing an error message by using the below code, say, for example, if user entered a wrong not existing sales order #,

   CALL METHOD lo_message_manager->report_t100_message

Systsme is throwing error message, well. But, i want that once clicked/did some action/interaction on the screen by user, then, this message should go away, bcz user started fixing it, so, the message should not perssist there

Any help pls?

Thank you

Accepted Solutions (1)

Accepted Solutions (1)

amy_king
Active Contributor
0 Kudos

Hi,

If you are using is_permanent = false as an argument to report_t100_message, then when you trigger an event the message will clear. You need an event to trigger though-- for example the onEnter event of an InputField. There is no event onFocus for an InputField, so you wouldn't be able to clear the message when the user simply starts typing in the field. If you chose to create an onEnter event, you wouldn't necessarily need code in the event's action handler method, you could leave it empty, but its presence means you have an event to trigger. Alternatively, you could call a custom method like validate_fields( ) upon onEnter; if the field is now valid, the message will clear.

Cheers,

Amy

Answers (0)