Skip to Content
avatar image
Former Member

Message problem

Hi,

I am having an input field and a 'SAVE' button. When i click save, if the input field is blank i will use the wizard and generate a message saying that 'The field is blank'. This am able to achieve.

Now the message is displayed at the top. If i fill the input field and press enter, this message should disappear. How should i do this?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Jul 22, 2009 at 06:30 AM

    Hi.

    Clear the Message area....using the method "CLEAR_MESSAGES".

    this method also u can get it from code wizard itself.

    Regards

    Raja

    Add comment
    10|10000 characters needed characters exceeded

    • Hi Mohammed,

      You can follow the same approach even with your SAVE button. Just place all the coding which I had mentioned in there. But I dont understand as to why the messages still do remain in your MessageArea. The entire MessageArea should by itself become invisible as soon as you fill your fields and press on the SAVE button. Your functionality seems to have gone wrong somewhere and the system is considering them to be still unfilled.

      Regards,

      Uday

      You can use the below approach to clear the messages. Use the message manager reference that you have obtained while trying to throw messages:

      lo_message_manager->clear_messages( ).

      Edited by: Uday Gubbala on Jul 22, 2009 12:25 PM

  • Jul 22, 2009 at 06:57 AM

    Hi Mohammed,

    You no need to write the clear message in all the fileds.

    just check if you have not filled any mandatory fields in the save button.

    if you have not filled... raise the error message...

    once you have filled it and again clicking the save button... you will check for the same.. if all the fields are filled... clear the message area.. and do the DB update.

    if DB successful raise a DB Success message...

    i think this will helpful for u

    regards

    Raja

    Add comment
    10|10000 characters needed characters exceeded