on 02-22-2007 11:19 AM
hi
i have the problem converting the date formate in bapi
for that i take value attribute value and map it
with
but it shows error
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
public void checkDateInPast(java.lang.String fieldName) {
//@@begin checkDateInPast()
IWDMessageManager msgMgr =
wdComponentAPI.getMessageManager();
Date theDate = (Date)
wdContext.currentContextElement().getAttributeValue(fieldName);
IWDAttributeInfo attributeInfo =
wdContext.getNodeInfo().getAttribute(fieldName);
if (theDate.after(new Date(System.currentTimeMillis()))) {
String fieldLabel =
wdContext.getNodeInfo().getAttribute(fieldName)
.getSimpleType().getFieldLabel();
msgMgr.reportContextAttributeMessage(
wdContext.currentContextElement(),
attributeInfo,
IMessageSimpleErrors.DATE_IS_IN_FUTURE,
newObject[] { fieldLabel, theDate },
true);
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.