on 10-18-2007 10:57 AM
I have created some messages in the message pool.
Now how do I use them according to the requirement.
How do we use the messages in the message pool.
Thanks,
Sneha Singh.
hi
good
go through these links,hope these would help you to solve your problem
http://searchsap.techtarget.com/searchSAP/downloads/SAPPRESS.pdf
http://help.sap.com/saphelp_nw70/helpdata/en/36/d4528e6dbf084b9d79a50fb8d08e86/content.htm
thanks
mrutyun^
Message was edited by:
Armin Reichert
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for the help.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sneha,
(a) If you want to Print the message.
wdComponentAPI.getMessageManager().reportMessage
(IMessage<Component_NAme>.<MessageKey>, null);
(b)If you want use it as value of some UIElement then
IWDTextAccessor textAccessor = wdComponentAPI.getTextAccessor();
textAccessor.getText(IMessage<Component_NAme>.<MessageKey>);
Regards,
Praveen
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
To create messages in Message pool,
Goto your webdynpro project-webdynpro-webdynpro components-your component-MessagePool
Righ click on it-Open Message Editor.
On Right side click on button -add New message, give key,type and text for Message.
and in coding , if you want to check whether a context attribute (say, 'val') is null,
give
IWDAttributeInfo attrInfo=this.wdContext.getNodeInfo().getAttribute(Iprivate<yourViewName>.IContextElement.VAL);
WdcomponentAPI.getMessageManager().reportContextAttributeMessage(wdContext.currentContextElement(),attrInfoErr,Imessage<yourComponentName>.<messageKeyInMessagePool>,new Object[]{},true);
Regards
SMitha
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
wdComponentAPI.getTextAccessor().getText(key)
Returns a localized text for the given key.
key the key of the localized text
Regards
Ayyapparaj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sneha
1)Goto "WebDynpro Components">"Your Component">Message Pool
2)Add Message
a) Message Key -- >this is the name of the message
b) Message Type ->error/standard/warning/text -->choose the appropriate one
c)Message Text--> this is the message tobe displayed when error occurs
3) Create a UIElement "Message Area" (Click on error message to navigate to error)
following is the code to display the error message
IWDMessageManager manager = null;
IWDAttributeInfo attibute = wdContext.getNodeInfo().getAttribute(IPrivateXXXView.IContextElement.xx);
String message = wdComponentAPI.getTextAccessor().getText(IMessageXX.UR_MESSAGEKEY);
manager.raiseInvalidContextAttributeException(wdContext.currentContextElement(), attibute, message, true);
manager.raisePendingException();// this statement will not allow the pointer to go to next,until it satisfies the condition
Regards
Chaitanya.A
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
80 | |
9 | |
9 | |
7 | |
7 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.