cancel
Showing results for 
Search instead for 
Did you mean: 

Message.messagekey is coming instead of message text of message pool

Former Member
0 Kudos

Hi All.

I am facing one problem , I have created one error message in message pool ,and

I am validating the field but when I am trying to use this ,Its highlighting the fields but

message is not coming instead message.messagekey is coming.

I am using the following code:

ai=wdContext.getNodeInfo().getAttribute(IPrivateVEmployeeRequestView.IContextElement.DATE_OF_RESIGNATION);

messageMgr.reportContextAttributeMessage(wdContext.currentContextElement(),ai,IMessageCEmployeeRequest.MSG, new Object[]{" resignation date is a non-working day. Please select a working day"},true);

Thanks in Advance.

Regards

Abhishekh Singh

Accepted Solutions (0)

Answers (5)

Answers (5)

p330068
Active Contributor
0 Kudos
Former Member
0 Kudos

In the message text I have given The . and from code I am passing the parameter for .

But instead of text . message.msg(key of message ) is coming

Former Member
0 Kudos

Hi Abhishekh,

In place of define the message text in the Message Pool and then see what out put you are getting.

Deepak!!!

Former Member
0 Kudos

Hi Abhishekh,

Could you please check the message pool entry for the error, refer below example:-

Message Key Message Type Message Text

MissingInput error : Entry of a valid is required for proceeding with the requested service.

Deepak!!!

Former Member
0 Kudos

Message pool and given code both are in the same DC.

Former Member
0 Kudos

Hi,

Are you using two different DCs. One which contains all the messages in the message pool and the other where you are displaying the message.

If yes, then build and deploy the DC containing the messages on your server.

Regards,

Manoj