on 01-24-2008 9:22 AM
Hi
How can I display a notification message, alert message and task message in message area.
Thanks
Hi,
String messageText = "Sample Messager";
IWDMessage message = new WDMessage(wdThis.wdGetAPI().getComponent() , "", WDMessageType.WARNING , messageText);
IWDAttributePointer attributePointer = wdContext.currentContextElement().getAttributePointer(<your context attribute);
msgMgr.reportContextAttributeMessage(attributePointer, message, new Object[] {});
OR
wdComponentAPI.getMessageManager().reportWarning("message")
Regards
Ayyapparaj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Maybe it's just how you name it.
You can use the reportSuccess, reportWarning and reportException methods from the messagemanager (can be accessed easily from WdComponentAPI).
They produce message with a green, orange or red icon. Message is displayed in the MessageArea by default.
Good luck, Roelof
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
In my post I mentioned how you can dynamically create user messages, without making use of the WDMessage type. The message itself is a String that you write in the sourcode.
Alternatively, you can create messages in the message pool. These messages can be of type error, standard or warning. These messages, you can print to View using the reportmessage() method in Messagemanager. I have no experience with message pools, however.
I don't know of any other way of handling messages the standard WD way.
Good luck, Roelof
User | Count |
---|---|
81 | |
24 | |
11 | |
9 | |
7 | |
5 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.