OAAdvancedTable
Id: showDetailTb
Id: column1
Total Value: True
Id: TrxAmount
View Attribute: TrxAmount
ถึงเราจะใส่ Format ให้กับ OAMessagedStyledTextBean id TrxAmount
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Formatter formatter = new OADecimalValidater("#,###,###,##0.00,(#,###,###,##0.00)", "#,###,###,##0.00;(#,###,###,##0.00)"); | |
OAAdvancedTableBean adTable = (OAAdvancedTableBean) webBean.findChildRecursive("showDetailTb"); | |
OAMessageStyledTextBean trxAmountTotal = (OAMessageStyledTextBean) adTable.findChildRecursive("TrxAmount"); | |
trxAmountTotal.setAttributeValue(ON_SUBMIT_VALIDATER_ATTR, formatter); |
หลังจากลองผิดลองถูก เข้าไป set format ในเกือบทุก objects ที่อยู่ภายใต้ OAAdvancedTable
ก็ได้เข้าใจว่าถ้าต้องการให้เลขใน TotalRow อยู่ในรูปแบบที่จัด Format แล้วเราต้องไปตั้งค่าที่...