How to use the message area ui element to handle the errors.

Hi All,
Can you put a light on how to  message area UI element to handle the message in web dynpro.
Please provide any links which the information related to Message Area UI element.
Thanks in Advance,
Lalitkumar.

Hi,
Try using the below code when you want to display the message.
DATA lo_api_controller     TYPE REF TO if_wd_controller.
  DATA lo_message_manager    TYPE REF TO if_wd_message_manager.
  lo_api_controller ?= wd_this->wd_get_api( ).
  CALL METHOD lo_api_controller->get_message_manager
    RECEIVING
      message_manager = lo_message_manager.
* report message
  CALL METHOD lo_message_manager->report_success
    EXPORTING
      message_text = 'Display your text here'.
Also check all the methods available in the interface if_wd_mesasge_manager and try using them.
Edited by: Vidhya Sakunthala on Jul 30, 2010 1:35 PM

Similar Messages

  • How do I enlarge the message area?

    The message area is 1/4 of the total screen size. How can I minimize the rest of the screen so that I can see an entire email and pictures?

    Hi,
    You can only see a limited number of all day events.  I suggest you send Apple feedback if you think it should work differently. https://www.apple.com/feedback/
    Best wishes
    John M

  • How many types of messages are there

    Hi,
    After using CALL TRANSACTION tcode USING gi_bdcdata
                     MODE   gv_ctumode
                     UPDATE gv_cupdate
                     MESSAGES INTO gi_messtab.
    I am looping gi_messtab for extracting messages.
    I know msgtyp = 'E'    -
    > means error message.
    I want to how many types of messages are there, tell me with the full forms.
    s -
    > means?
    LOOP AT gi_messtab.
    IF gi_messtab-msgtyp = 'E'.
    endif.
    endloop.

    HI Mohan
    A --> Termination Message
    The message appears in a dialog box, and the program terminates. When the user has confirmed the message, control returns to the next-highest area menu.
    E -->  Error Message
    Depending on the program context, an error dialog appears or the program terminates.
    I --> Information
    The message appears in a dialog box. Once the user has confirmed the message, the program continues immediately after the MESSAGE statement.
    S -->  Status Message and Sucess message
    The program continues normally after the MESSAGE statement, and the message is displayed in the status bar of the next screen.
    W --> Warning
    Depending on the program context, an error dialog appears or the program terminates.
    X --> Exit
    No message is displayed, and the program terminates with a short dump. Program terminations with a short dump normally only occur when a runtime error occurs. Message type X allows you to force a program termination. The short dump contains the message ID.
    Regards
    Sudheer

  • How to remove a message area

    Hello,
    I am using the following code to display error message. That works perfectly fine.
    The only problem I have is once there is no error message the message area remains
    at the top of the window and the the focus is always automatically set to the message area.
    Is there a way to remove/reset the message handler?
    I tried    lr_message_manager->clear_messages( INCLUDING_PERMANENT_MSG  = abap_true )
    but this didn't help.
    Thanks and regards,
      Christoph
    get message manager
      lr_current_controller ?= wd_this->wd_get_api( ).
      lr_message_manager = lr_current_controller->get_message_manager( ).
    if lt_messages is initial.
       lr_message_manager->clear_messages( INCLUDING_PERMANENT_MSG  = abap_true ).
    else.
      LOOP AT lt_messages INTO lr_message.
      report message
        CALL METHOD lr_message_manager->report_t100_message
          EXPORTING
            view  = 'FOUNDATION'
            msgid = lr_message->mv_msgid
            msgno = lr_message->mv_msgno
            msgty = lr_message->mv_msgty
            p1    = lr_message->mv_msgv1
            p2    = lr_message->mv_msgv2
            p3    = lr_message->mv_msgv3
            p4    = lr_message->mv_msgv4.
      ENDLOOP.
    endif.

    Hi Lekha,
    I tried your approach and its not working.
    I also tried to do this dynamically in WDDOMODIFYVIEW:
        data:   lr_message_area       TYPE REF TO CL_WD_MESSAGE_AREA.
        lr_message_area ?= view->get_element( id = 'MESSAGES' ).
        lr_message_area->set_visible( '01' ).   " 01 is invisible 02 is visible
    but nothing works
    The message area remains showing 'No Messages' and the only way to get rid of it is to click on the show list button and reset the log.
    When I do create a test application the message areas works fine but in the whole application it remains. I have no idea what's causing this.
    What I do in the application is basically the following.
    The business object has its own message handler and in the WDDOMODIFYVIEW of the view containing the message area I read this message handler and if there are messages I do the following:
    get message manager
      lr_current_controller ?= wd_this->wd_get_api( ).
      lr_message_manager = lr_current_controller->get_message_manager( ).
    lt_messages gets filled from the business object
      LOOP AT lt_messages INTO lr_message.  
      report message
          CALL METHOD lr_message_manager->report_t100_message
            EXPORTING
              msgid = lr_message->mv_msgid
              msgno = lr_message->mv_msgno
              msgty = lr_message->mv_msgty
              p1    = lr_message->mv_msgv1
              p2    = lr_message->mv_msgv2
              p3    = lr_message->mv_msgv3
              p4    = lr_message->mv_msgv4.
        ENDLOOP.
    If there are no messages in lt_messages I just want to get rid of the message area.

  • How to use text-to-speech so that my text messages are read to me in the car?

    How to use text-to-speech so that my text messages are read to me in the car?

    I have the same question but I have iPhone 5

  • When I choose a photo to share on face book a drop down box appears with the message, Face book didn't recognise the information you entered for the account this is my Face book login information I use to access my face book page how can I overcome the b

    when I choose a photo to share on face book a drop down box appears with the message, Face book didn't recognise the information you entered for the account this is my Face book login information I use to access my face book page how can I overcome this.

    Delete abd re-enter your Facebook account information jnder the accounts tab in the iPhoto preferences
    You may also want to take a look at the user tip for Facebook problems
    LN

  • The message icon is not showing in the drop screen of my photos it used to show before and now it's not there how can I get it back?

    The message icon is not showing in the drop screen of my photos where it says do you want to email, message, assign, use as waller paper etc. it used to show before and now it's not there how can I get it back?

    Did this back along to mine. Plug it into itunes on your pc (or Mac) and click on the ipod icon on the left hand side. When the device options come up on the main screen, click on restore. Follow the steps and it should restore to factory settings. If you had icloud activated on the ipod all previous purchases should be in the cloud and ready to download onto the ipod afte rit has been restored to factory settings, otherwise you'll have to download them all again. Hope it helped.

  • Topic area: Apple Mail.  Question:  How do I get the message preview window to display to the right of my list of email messages?

    Topic area: Apple Mail.  Question:  How do I get the message preview window to display to the right of my list of email messages? i.e. to preview whatever message is currently highlighted in the center window list of messages?

    At present there is no preference option available to move the preview
    pane to right side of the mail window.
    Best.

  • HT201363 How do i delete my iphone 4s from my account on apple ID? I change phones and i am not getting regular txt messages because somehow the messages are still sending through imessage which i no longer have.... I deleted my phone number from the acco

    I change phones and i am not getting regular txt messages because somehow the messages are still sending through imessage which i no longer have.... I deleted my phone number from the account though as per instructiions from the phone carrier and is still not working...Any help?

    Hello jn_andrade,
    It sounds like you are no longer getting text messages becuase your Apple ID is still using your phone number for iMessage. I would use these steps to unlink your phone number from your account:
    Unlink a phone number
    To remove a phone number from an Apple ID, sign out of FaceTime and Messages on your iPhone:
    Settings > Messages > Send & Receive. Tap your Apple ID, then tap Sign Out.
    Settings > FaceTime. Tap your Apple ID, then tap Sign Out.
    This should remove your phone number from other devices using the same Apple ID with FaceTime and Messages. If the phone number is still available on other devices after you sign out of FaceTime and iMessage on the iPhone, you may need to sign out of iMessage and FaceTime on all your devices, then sign in to FaceTime and Messages again on devices you want to use.
    Note: If you no longer have access to the iPhone that is using the number you want to remove, reset your Apple ID password.
    From: iOS and OS X: Link your phone number and Apple ID for use with FaceTime and iMessage
              http://support.apple.com/kb/ht5538
    Thank you for using Apple Support Communities.
    Regards,
    Sterling

  • When trying to add music to a slide show from my PC to TV through Apple Tv the photos are fine but I get an error message that says the music cannot be downloaded.

    When trying to add music to a slide show from my PC to TV through Apple Tv the photos are fine but I get an error message that says the music cannot be downloaded.

    Because the location for each song in your library is on your hard drive.  If the hard drive isn't there, how can iTunes play it?
    You'll have to move/copy the music from your hard drive to your computer's hard drive.
    Basically, EASIEST way to do all this, if you don't care about your play counts, etc...
    -Delete EVERYTHING from iTunes, so that your library is now empty.
    -Go to "Advanced" inside of the "Preferences" window, found in the "Edit" drop-down.  You can also access Preferences by pressing Ctrl+, (Press Ctrl and the comma key)
    -Change your iTunes Media Folder Location to something simple, but on your computer. I use C:/iTunes.  Make sure "Keep iTunes Media Folder Organized" and "Copy files to...." are both checked.  You can close Preferences now.
    -Now, drag and drop your music from your hard drive into your iTunes library.  iTunes will automatically add the music to your library, as you would expect, and also creates a copy of each file to place into that iTunes Media Folder you just created.
    Shouldn't have any more problems...

  • I have an Iphone 5S and used to sync it to my computer in the past without any problem, but now I can't and appears the message "usb device not recognized", and the cable is good and so the USB port. Do you have any idea what's the problem?

    I have an Iphone 5S and used to sync it to my computer in the past without any problem, but now I can't, and appears the message "usb device not recognized", and the cable is good and so the USB port. Do you have any idea what's the problem?

    Try leaving it plugged in and then restart the computer.
    If you are on Windows this link may help but it is a bit old.
    http://www.technologynext.org/error-usb-device-not-recognized-how-to-fix/

  • How to use logger to send any output instead of the console?

    How to use logger to send any output instead of the console?

    How to use logger to send any output instead of the
    console?There are three commonly used logger inferfaces, the log4j, the java.util.loging and the Commons logging (which works with either.)
    You create a logger object, generally one for each class. Normally a private static variable points to it and it has a name equal to the FQN of the class.
    e.g.
    package org.widget;
    public class MyClass {
      private static   Logger log = Logger.getLogger("org.widget.MyClass");That's the java.uitil.Logger formula.
    Then there are method on the logger to call for various kinds of output. There' are different logging levels, priorities like SEVERE or DEBUG. When running the logs are configured to ignore messages of less than a set priority.
    You can also pass an Exception or Error to the logger which will log the stack trace.

  • Why is the message are for my emails blank

    when i open an email, the message area is blank. i can read it when i click on the reply button. my sister accessed my email account using internet explorer. how can i that changed back to firefox.

    upgrade your browser to Firefox 9 and check
    * getfirefox.com

  • How many types of messages are there what are they?

    How many types of messages are there? what are they?

    Hi,
    Refer the Demo program this iwll help
    <b>DEMO_MESSAGES</b>
    1. MESSAGE xnnn.
    2. MESSAGE ID id TYPE mtype NUMBER n.
    3. MESSAGE xnnn(mid).
    Effect
    Sends a message. Messages are stored in table T100, and can be maintained using Transaction SE91. They are fully integrated in the forward navigation of the ABAP Workbench.
    The ABAP runtime environment handles messages according to the message type specified in the MESSAGE statement and the context in which the message is sent. There are six kinds of message type:
    A (Abend)
    Termination
    E (Error)
    Error
    I (Info)
    Information
    S (Status)
    Status message
    W (Warning)
    Warning
    X (Exit)
    Termination with short dump
    Messages are used primarily to handle user input on screens. The following table shows how each message type behaves in different contexts. The numbers are explained at the end of the table.
    A E I S W X
    PAI module 1 2 3 4 5 6
    PAI module at POH 1 7 3 4 7 6
    PAI module at POV 1 7 3 4 7 6
    AT SELECTION-SCREEN ... 1 8 3 4 9 6
    AT SELECTION-SCREEN at POH 1 7 3 4 7 6
    AT SELECTION-SCREEN at POV 1 7 3 4 7 6
    AT SELECTION-SCREEN ON EXIT 1 7 3 4 7 6
    AT LINE-SELECTION 1 10 3 4 10 6
    AT PFn 1 10 3 4 10 6
    AT USER-COMMAND 1 10 3 4 10 6
    INITIALIZATION 1 11 3 4 11 6
    START-OF-SELECTION 1 11 3 4 11 6
    GET 1 11 3 4 11 6
    END-OF-SELECTION 1 11 3 4 11 6
    TOP-OF-PAGE 1 11 3 4 11 6
    END-OF-PAGE 1 11 3 4 11 6
    TOP-OF-PAGE DURING ... 1 10 3 4 10 6
    LOAD-OF-PROGRAM 1 1 4 4 4 6
    PBO module 1 1 4 4 4 6
    AT SELECTION-SCREEN OUTPUT 1 1 4 4 4 6
    reward if this helps.

  • I deleted some of my text message histories to get rid of 'other' space (6.33 gb). They were gone from iMessage, but they still showed up in search, so they were still taking up space on my phone. I synced my iPhone (4s) but the messages are still there.

    I deleted some of my text message histories to get rid of 'other' space (6.33 gb). They were gone from iMessage, but they still showed up in search, so they were still taking up space on my phone. I synced my iPhone (4s) with iTunes but the messages are still there. How can I get rid of these texts for good and have more space on my phone? 6.33 gb of other space is way too much, thats almost half of my overall available space (13.5 gb.) I don't want to reset my phone and lose all my other texts/ app progress/ photos. I do have backups, but when I restore from the backup the other space comes back along with everything else. What can I do to get rid of this other space and the 'deleted' text messages? (I'm running iOS 6.1.3 if that helps)

    But once again, I do not want to lose my other texts, app progress, and photos. I could sync the photos but i would still lose the app progress and texts. I would only restore if it was the only option left, but the other space, as already stated, isnt the main concern. The main concern is those 'deleted' texts. If they go, then a good size chunk of the other space goes. I know you CAN delete texts for good. It worked fine before. All i want to know is why its not working for me now, and how to fix it.
    I also know that when you delete texts on your iphone, they get marked for deletion, however they stay on your device (thats why they show up when you search for them.) then when you sync your device with itunes, the texts marked for deletion should disappear. When i synced they didnt disappear. Thats what i need an explanation/solution for. Why the texts marked for deletion didnt get fully deleted after the sync.

Maybe you are looking for