Add formatting to the total field: such as thousands of bits
1. MonWastageSumVO1 is the table name
2. totalloss corresponding table total field name
3, Bvalues is the value assigned to the total
Oatablebean table =
(Oatablebean) webbean.findindexedchildrecursive ("MonWastageSumVO1");
Oawebbean ABL = table.findindexedchildrecursive ("Totalloss");
if (null! = ABL)
if (ABL instanceof Oamessagestyledtextbean) {
Table can only be used Oamessagestyledtextbean
((Oamessagestyledtextbean) ABL). Setattributevalue (Tabular_function_value_attr,
Bvalues);
} else if (ABL instanceof Oamessagetextinputbean) {
The input box can only be used Oamessagetextinputbean
((Oamessagetextinputbean) ABL). Setattributevalue (Tabular_function_value_attr,
Bvalues);
}
The idea is: after the query directly from the VO cache to get the corresponding field and value is Bvalues, and then directly assigned to the space
Add formatting to a total field: a way to be clumsy as a thousand-bit