on 09-11-2008 10:27 AM
The following is a piece of code where I am getting an error. The words in bold are not getting recognised......that is date cannot be recognised. Do I need to use any package for it..kindly suggest
IWDMessageManager msgMan = wdControllerAPI.getComponent()
.getMessageManager();
//Get field value of attribute under investigation
Date usrDate =(Date) wdContext.nodePerson().currentPersonElement().getAttributeValue(field);
//Get field properties of attribute under investigation
IWDAttributeInfo personAttr = wdContext.nodePerson().getNodeInfo().getAttribute(field);
//Check if date is in past using helper method
if (DateCalculator.isInPast(usrDate)) {
//If yes: report error message
msgMan.reportContextAttributeMessage(
wdContext.nodePerson().currentPersonElement(),
personAttr,
IMessageSub_comp.DATA_IS_IN_PAST,
new Object[] { field, usrDate },
true);
}
Hi,
just right-click in the editor and select Source - Organize Imports. Now select the class java.sql.Date.
Regards,
Martin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
76 | |
10 | |
8 | |
8 | |
6 | |
5 | |
5 | |
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.