cancel
Showing results for 
Search instead for 
Did you mean: 

How to display the Message Pool Messages in CE 7.2

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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

vijay_kumar49
Active Contributor
0 Kudos

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

junwu
Active Contributor
0 Kudos

double click the deprecated one, i will show you which is the right one to use.

Former Member
0 Kudos

what does this word deprecated actually mean??