I want to do Number Formatting to Amount Field.
//In PR After super.processRequest Paste Below code and give proper //ViewAttributeName
OAApplicationModule am = pageContext.getApplicationModule(webBean);
Formatter formatter = new OADecimalValidater("#,##0.00","#,##0.00");
OAMessageStyledTextBean originalamtBean =
(OAMessageStyledTextBean)webBean.findChildRecursive("Amount");
if(originalamtBean != null)
originalamtBean.setAttributeValue(ON_SUBMIT_VALIDATER_ATTR, formatter);
OAMessageStyledTextBean OntremainamountBean =
(OAMessageStyledTextBean)webBean.findChildRecursive("Amount");
if(OntremainamountBean != null)
OntremainamountBean.setAttributeValue(ON_SUBMIT_VALIDATER_ATTR, formatter);
//In PR After super.processRequest Paste Below code and give proper //ViewAttributeName
OAApplicationModule am = pageContext.getApplicationModule(webBean);
Formatter formatter = new OADecimalValidater("#,##0.00","#,##0.00");
OAMessageStyledTextBean originalamtBean =
(OAMessageStyledTextBean)webBean.findChildRecursive("Amount");
if(originalamtBean != null)
originalamtBean.setAttributeValue(ON_SUBMIT_VALIDATER_ATTR, formatter);
OAMessageStyledTextBean OntremainamountBean =
(OAMessageStyledTextBean)webBean.findChildRecursive("Amount");
if(OntremainamountBean != null)
OntremainamountBean.setAttributeValue(ON_SUBMIT_VALIDATER_ATTR, formatter);
1 comment:
what are all the imports
Post a Comment