on 11-03-2011 6:43 AM
Hi Experts,
Please let me know how to display the Message Pool Messages in CE 7.2.
I have tried with reportContextAttributeMessage, but it is deprecated in CE 7.2.
Please do the needful.Its Urgent.
Thanks & Regards,
SatheshKumar R
Hi All,
Sorry for the above reply.
The Iwdmessagemanager instance with the reportmessage is working.
Its given the Message in the Output.
But it is a deprecated method.
Please let me know which mehod i need to use for the Messages.
Thanks & Regards,
SatheshKumar R
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi All,
Thanks for the Reply.
IWDMessageManager msgnr = wdThis.wdGetAPI().getComponent().getMessageManager();
IWDMessageManager instance is not work in CE 7.2.
Please let me know if any one have the idea to fetch the Message Pool Value in CE 7.2.
Thanks & Regards,
SatheshKumar R
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sathesh,
Do the following steps:
1.) After creating a component, under it you will see Message Pools. Double click and open it.
2).Click "Add Message" and add a new message. (Give a message key, type of message (either warning, error etc ) and message text).
3). Save the metadata.
4). Raise this message where all you want by using following code(For example, on click of a button) :
IWDMessageManager msgnr = wdThis.wdGetAPI().getComponent().getMessageManager();
msgnr.reportMessage(IMessage<component name>.<message>,null,true);
For example, I have a component name TestAppComp and under message pool I have message called message1, then use lik this:
IWDMessageManager msgnr = wdThis.wdGetAPI().getComponent().getMessageManager();
msgnr.reportMessage(IMessageTestAppComp.MESSAGE1,null,true);
Reply me if you any doubt.
Regards,
Jithin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Create one Message Pool (ERR__NO__BU__SELECTED) and choose that error type like error,waring etcu2026 and call that method into this line.
mm.reportMessage(IMessage{ComponentController Name}.ERR__NO__BU__SELECTED, null, false);
private IWDMessageManager mm;
Hope this is help full for u
Regards
Vijay
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
double click the deprecated one, i will show you which is the right one to use.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.