cancel
Showing results for 
Search instead for 
Did you mean: 

Report Context attribute message

Former Member
0 Kudos

Hi all,

I am not able to resolve the error in below code(Error in bold)

"messageMgr.reportContextAttributeMessage(

wdContext.currentDetailElement(),

attributeInfo,

IMessageForm.MISSING_INPUT,

new Object[] ,

true);"

I inculded message key in message pool as "MissingInput" but it is not displaying in IMessageForm.

I am using NW2004 is there any thing related with the version.

My code is below.

IWDMessageManager messageMgr = wdComponentAPI.getMessageManager();

Object attributeValue =

wdContext.currentDetailElement().getAttributeValue(fieldName);

IWDAttributeInfo attributeInfo =

wdContext.nodeDetail().getNodeInfo().getAttribute(fieldName);

if (((String) attributeValue).length() == 0) {

messageMgr.reportContextAttributeMessage(

wdContext.currentDetailElement(),

attributeInfo,

IMessageForm.MISSING_INPUT,

new Object[] { fieldLabel },

true);

}

}

Thanks&Regards,

HB.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

hi,

Eventhough it is not working after rebding the project .It is better to restart the studio.

Thanks&Regards

Suresh Kumar T

Edited by: Suresh Kumar Thokala on Jan 2, 2008 6:46 AM

Former Member
0 Kudos

Hi,

Have you built the project after adding the messages to the message pool?

Regards,

Satyajit.