on 09-19-2012 1:10 PM
Hi Experts,
We have a scenario to show error and success messages in the WD application.
However, we have to not only show the 'Green Icon' for success message, but also change the entire message text to green color (for Success message), and red (for error message).
Not sure if this is possible in WD.
Please help/suggest any code/classes.
thanks!
parteek
Hi Parteek,
Instead of displaying standard messages you can actually create your own messages with icons where you can change color of the text and as well as fix icon for a particular message based on type. Just do R&D and apply simple logic you will definitely get a solution.
Kind regards,
Dineshwar Singh Eswar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Prateek,
The other option is to create a context node for error messages with 3 attributes i.e. Icon , Message and Semantic Color.
Take a table UI element and select the above node as DataSource.
Write your own method to fill error messages with icon and color into above node.
make the table invisible if there are no messages...
It'll look something like below screenshots...
Regards,
Rohit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Parteek,
With the standard MessageArea and message manager, it isn't possible to change the color of the message text itself. SAP probably didn't include this as an option because the message text can optionally be a hyperlink to the view's corresponding context element or attribute, so any color would be overridden anyway by the hyperlink color.
Cheers,
Amy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Shivesh,
is it possible to elaborate a little bit further how this might be accomplished? I did a search for Row Repeater and came up with this: http://wiki.sdn.sap.com/wiki/display/WDABAP/steps+to+create+row+repeater+ui+element
But I'm not quite sure how to get the Messagearea in there. I've tried to make a Message_Area a child of the Row_Repeater but the results are the same.
Any help would be appreciated.
(and sorry for resurrecting this thread, but search didn't turn up a more appropriate topic)
HI Chris,
If you are using row repeater or table for message purpose. Then, you should not use Message class for throwing the messages. What you need to do, is use this UI element and hide it. Whenever you want to display messages with change color, etc. Then unhide those UI.
Regard's,
Shivesh Ranjan.
Hi,
Are you using the standard message class to show the messages?
If not, and you are using a UI element for the message, you can use text view UI element where you can easily get the icon and text color.
Thanks,
Pris.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
79 | |
9 | |
9 | |
7 | |
7 | |
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.