import oracle.cabo.ui.validate.Formatter;
Formatter formatter = new OADecimalValidater("#,##0.00","#,##0.00");
OAMessageStyledTextBean originalamtBean = (OAMessageStyledTextBean)webBean.findChildRecursive("Amount");
if(originalamtBean != null)
{ originalamtBean.setAttributeValue(ON_SUBMIT_VALIDATER_ATTR, formatter);
CSSStyle csNum = new CSSStyle();
csNum.setProperty("text-align","right");
csNum.setProperty("display","block");
originalamtBean .setInlineStyle(csNum);
}
Formatter formatter = new OADecimalValidater("#,##0.00","#,##0.00");
OAMessageStyledTextBean originalamtBean = (OAMessageStyledTextBean)webBean.findChildRecursive("Amount");
if(originalamtBean != null)
{ originalamtBean.setAttributeValue(ON_SUBMIT_VALIDATER_ATTR, formatter);
CSSStyle csNum = new CSSStyle();
csNum.setProperty("text-align","right");
csNum.setProperty("display","block");
originalamtBean .setInlineStyle(csNum);
}
No comments:
Post a Comment