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!
ReplyDeleteThis is a very helpful and well-written article. The information is detailed yet easy to understand. Appreciate your effort in writing this.service now admin course
ReplyDeleteGreat post! MuleSoft online training provides flexible, hands-on learning in API integration, Anypoint Platform, and enterprise application connectivity. With real-world projects and practical labs, learners can build strong integration skills and confidently advance their careers from anywhere.mulesoft online training
ReplyDelete