Push messages from GETTER to the UI
Hi,
I would like to push some messages to the UI from the GET methods. I have new context node and i want to do my validations and push some messages from each attribute in the context node. How can i do that ?
Thanks
Aman
Hello,
This won't answer your question, but if you need to do some validations and push some messages accordingly, why don't you use method DO_PREPARE_OUTPUT or DO_VALIDATE_INPUT / DO_FINISH_INPUT of your controller class?
Because I'm not sure the GET methods of the model class si the best place to put your coding in this case.
Anyway, here is some example of how to throw messages to the UI:
DATA: lv_msgsrv TYPE REF TO cl_bsp_wd_message_service.
lv_msgsrv = cl_bsp_wd_message_service=>get_instance( ).
lv_msgsrv->add_message( iv_msg_type = 'I'
iv_msg_id = 'MESG' "#EC NOTEXT
iv_msg_number = '001' ).
Hope this helps,
Nicolas Busson.
PS: sorry Masood, I was writting my answer while your were posting yours... and obviously yours is even better! thanks a lot.
Edited by: Nicolas BUSSON on Nov 25, 2009 6:29 PM
Similar Messages
-
can anyone please advise me how i can steop any text messages from displaying on the front screen of my apple iphone 5c? Despite my phone requiring a password to get into it and this being locked when the text comes in, the text message is still actually visible on the front screen and could be read by anyone. Can anyone provide me with any resolution to this please?
Settings > Notifications and turn off the ones you don't want.
-
I have my phone numbers stored in contacts but when I go to type a message in messages I get all the contacts I have deleated plus my partners contacts to ?....
Deleted information or previously used information (your partners) does not get "shredded/destroyed" but placed in storage/cache in order to be overwritten when space is necessary for the device. Since size of those contacts files is very insignificant, that overwrite takes very long time. The only way to completely get rid of that info is to go through complete erase/restore of the phone. All other data will be lost and have to be restored back the way that will not bring cache back. Essentially - no restore from the backup.
-
Some of the songs I have downloaded into i tunes won't play when I select it to do so. The error message I get is "The song can not be used because the original file can not be found. Would you like to locate it?" When I select yes I'm sent to a screen that has my i tunes library listed. When I select the song in question I'm asked if I would like to open the song. When I select this option I get nothing. The songs I have downloaded must be somewhere because they are listed in my i tunes library and on the screen I've been sent to. I can't the songs to play however. This is not true of all of my songs but it is true of quite a few of them. Actually, one song is too many. How do I get my music to play that seems to be locked up somewhere in the computer?
Presuming they're on your computer, right click on them and then follow the prompts to locate hte file on your computer.
-
Regarding text messaging, if I send a message from my iPhone, the reply goes to my ipad, or mini ipad. How can I stop this from happening?
Go to Settings/ Messaging/ Send & Receive on each device to set the contact points to be reached at, and to set the "from" address when you start a new message. It sounds like your iPhone might be sending messages out as one thing (e.g. an iCloud address) but set to not receive replies only to your phone number. Make sure you review settings on each device since you may, or may not, want to have them common.
-
i upgraded my iphone os to 4.01 and i have not been able to sync to my computer. The error message I get says the Iphone connected is not recognised what can i do to solve this problem.
Did you try to connect in recovery mode? iOS: Unable to update or restore
Also check here: iOS: Device not recognized in iTunes for Windows
And make sure your security software is set up right: iTunes for Windows: Troubleshooting security software issues -
I have an iPhone 5S, with iOS 8.1.2 I am trying to do a system restore but the message I get on the desktop is that there is not enough room on the iPhone. How much room is required?
I had an important app. (Memos by bluemarblesoftware.com) that I accidentally deleted. It of course had many memos, some with quite a lot of information. I did sync my phone on a regular basis and I think the memos should be on the desktop computer. I tried to do a restore function but I got a message saying there was not enough room on the iPhone. How much room is needed?generally you need 1.90gb
what you can do is back up your phone to your computer before doing the update, just as a precaution. -
Hi I am trying to update my I Tunes to 10, the message I get is ,, The feature you are trying to use is on a network that is unavailable,, click ok to try again, or enter and alternative path to program I Tunes.msi ....HELP
What computer OS and version do you have?
If you have windows try:
Removing and reinstalling iTunes, QuickTime, and other software components for Windows Vista or Windows 7
or
Removing and Reinstalling iTunes, QuickTime, and other software components for Windows XP -
How can I leave a group in iMessage?
I delete the group in iMessage because I don't want to receive any more messages.
Nevertheless, whenever a member sends a message, I get all the messages again. I have only deleted the previos messages.
In the users manual, they only tell how how to create a group, but not how to leave it.
Thank you.Sorry you can't.
-
how can i say yes to automatic updates when they stop my wireless dlink to Virgin home broadband from getting on the internet and then i have to do a system restore to the day before the update to get it back to normal?!? Frustrated
== This happened ==
Not sure how often
== automatic updates go on my computer, say if i click yes to update when shutting downYou have 10.6 on that machine, I suggest you stick with it for performance, third party hardware and software reasons as long as possible.
Consider 10.8 (not 10.7) when it's released, because 10.7 and 10.8 will require a new investment in software and newer third party hardware as it requires newer drivers the old machines won't have. (forced upgrade because of software, really nice of them)
http://roaringapps.com/apps:table
Far as your Safari problem do these things until it's resolved:
1: Software Update fully under the Apple menu.
2: Check the status of your plug-ins and update (works for all browsers) also install Firefox and see if your problems continue. You should always have at least two browsers on the machine just in case one fails.
https://www.mozilla.org/en-US/plugincheck/
Flash install instructions/problem resolution here if you need it.
How to install Flash, fix problems
3: Install Safari again from Apple's web site
https://www.apple.com/safari/
4: Run through this list of fixes, stopping with #16 and report back before doing #17
Step by Step to fix your Mac -
When trying to access email I get the message "Cannot get Mail - The connection to the server failed". How do I resolve this?
google your mail providers settings and go over them 1 by 1 to make sure it's set correctly in your ipads mail account settings
-
HI, I just bought an iPhone 4S. Although my iPad and other iPhone 3GS connect to our server (SBS2003) I cannot get through. It checks all items in the connection and then I get the message :Cannot get mail, the connection to the server failed." I Tried everything, rebooting, reset all iPhone, etc. All Apple devices work perfectly expect mine. Please advise
Look at iOS Troubleshooting Wi-Fi networks and connections http://support.apple.com/kb/TS1398
Additional things to try.
Turn Off your iPad. Then turn Off (disconnect power cord) the wireless router & then back On. Now boot your iPad. Hopefully it will see the WiFi.
On your iPad go to Settings > General > Reset > Reset network settings and see if that enables you to connect.
If none of the above suggestions work, look at this link.
iPad Wi-Fi Problems: Comprehensive List of Fixes
http://appletoolbox.com/2010/04/ipad-wi-fi-problems-comprehensive-list-of-fixes/
Cheers, Tom -
I am having problems unlocking my iphone 5. I have received an email from my old provider confirming that the phone is being unlatched and I need to complete the process through itunes. I have backed up and restored but I have not received a message from itunes stating the phone is unlocked. Do I use the old or new sim card while connecting to itunes or does it not matter. I dont know what else to do to finish the unlock?
You can use either, but if you restored to the backup, then you will not see the message. You need to restore the device as new first, then restore the backup. Make sure you can continue with the unlock first. Many of the emails report, "Your unlock has been approved, restore your device in iTunes in 24 hours", or something like that. If it is ready to go, then as I said earlier, restore as new first, and then you should see the confirmation.
-
I am getting the message: Cannot Get Mail the "email address" is in use on another device. How do I fix this.
Hello groriguez,
The following article provides further information regarding the error you're experiencing.
iOS: 'Mailbox Locked', account is in use on another device, or prompt to re-enter POP3 password
http://support.apple.com/kb/TS2621
Cheers,
Allen -
Bummer Message: Cannot Get Mail The user name or passowrd for "
I have had the iPad 2 for one week and was able to access two gmail accounts (mine and my wife's). . . until this morning when one of them (mine) starting giving me the message: "Cannot Get Mail The user name or password for "####" is incorrect." The other gmail account is still accessible. So what is the solution--if any?
If your having problems sending email - go into your email settings and see if you can enter a password for your outgoing mail server same password as your incoming mail server.
Maybe you are looking for
-
Missing functionality request. Deleting manufacturers.
Version: 2007A SP:00 PL:46 Manufacturers cannot be removed or deleted. Administration > Setup > Inventory > Manufacturers. Business needs: Certain Manufacturers no longer exist so our client needs to be able to maintain an updated list of Manufactur
-
Site Area Temporarily Unavailable
getting the error Site Area Temporarily Unavailable when trying to install Adobe flash on an IOS mac book. This is now day 3, what am i doing wrong?
-
My apps are quitting on me.
Everything from games to my email are randomly quitting. Sometimes the email quits when I try to delete, other times it quits when I am just reading. Anyone else having these issues? If so, what have you done to fix it? Thanks.
-
Can I install 8.5.1 modules on a LABVIEW 8.5 system
Can I install 8.5.1 modules especially ARM module on a LABVIEW 8.5 system ... Since 8.5.1 is just a minor upgrade to 8.5 I guess it should do .. But does it work effectively while importing code to ARM processor
-
Nokia 6280 Charging,dust inside screen and power i...
HI, my phone will only charge from the mains if i lay it on its side and wiggle the power connector about??!!! I also seem to have dust and dirt inside the top left hand corner of the screen ans if im browsing the net,or sending a text message the ph