on 12-31-2007 8:38 AM
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Have you built the project after adding the messages to the message pool?
Regards,
Satyajit.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
79 | |
9 | |
9 | |
7 | |
7 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.