on 11-24-2011 1:52 PM
Hello,
I want to display an error message in Web Dynpro. I'm using this,
IWDMessageManager message = wdComponentAPI.getMessageManager();
message.reportSuccess("<some relevant debug message>");
However, the message is always shown at the bottom of the screen. It is possible to select the location in the screen for showing this object? Or what is the best way for doing this? I've tried to use a Label but I can't set the type (warning, error, info) it's only a message.
Thanks
Regards
SU
Hi,
You can make use of message pool to display messages inside message area UI element. In message pool, you have different options like 'standard', 'warning', 'error','text' etc.. Please let me know if this helps you.
Thanks
Shifa
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
If you include the UI, it will display at the top of the screen..
Please see below how to create a message in the message editor.
http://help.sap.com/saphelp_nw04/helpdata/en/72/1d6526263ff24995016a152705eab2/frameset.htm
and this is how you access the error message in the application ti display it to the end user
http://help.sap.com/saphelp_nw04/helpdata/en/72/1d6526263ff24995016a152705eab2/frameset.htm
Regards,
Ganesh N
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Ganesh,
Thanks for your response. You put the same link twice. I saw that it refers to the 2004s version, I'm in CE 7.2 SP06. It still the same functionallity? Also as I've said I'm using the WD UI inside a BPM Task so all my messages are appearing in the top of the screen of the task.
Regards
SU
Hi,
Sorry for sharing the same link
Here goes the right one
http://help.sap.com/saphelp_nw04/helpdata/en/ec/1415b06e76584ca6b92fe565206fed/frameset.htm
Message Manager hasnt undergone any change with EP Version
I believe irrespective of wherever the UI is placed, the message appears at the top. This is what I have observed so far till EP 7.
Regards,
Ganesh N
Hi,
The UI elements linked to the error message can be also highlighted by using reportContextAttributeMessage.
Refer this document: [A Simple Input Form with Message and Error Service Support|http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/837d9290-0201-0010-1381-e633fe17cb14]
Regards,
Anand G
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
add a message area UI element to the screen
message.reportException("") should serve your purpose.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.