Use the following code to format DateTime feilds in OAF
OAWebBean departureDateBean = webBean.findChildRecursive("DepartureDate");
OANLSServices nls = pageContext.getOANLSServices();
oracle.cabo.ui.validate.Formatter formatter =
new OADateValidater(nls.getUserJavaDateFormat() + " HH:mm",
nls.getUserRRRRJavaDateFormat() + " HH:mm");
departureDateBean.setAttributeValue(ON_SUBMIT_VALIDATER_ATTR, formatter);
Thanks
OAWebBean departureDateBean = webBean.findChildRecursive("DepartureDate");
OANLSServices nls = pageContext.getOANLSServices();
oracle.cabo.ui.validate.Formatter formatter =
new OADateValidater(nls.getUserJavaDateFormat() + " HH:mm",
nls.getUserRRRRJavaDateFormat() + " HH:mm");
departureDateBean.setAttributeValue(ON_SUBMIT_VALIDATER_ATTR, formatter);
Thanks
Muchas Gracias Mahmoud A. Elsayed
ReplyDeletebusiness analyst online training
ReplyDeletesql azure online training
hyperion online training
Very rapidly this web page will be famous amid all blogging and site-building users, due to its pleasant articles or reviews Spot on with this write-up, I truly believe that this site needs a great deal more attention. I’ll probably be back again to read more, thanks for the info!
ReplyDelete