Show pageOld revisionsBacklinksExport to PDFExport Page to HTML/PDFBack to top This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. {{tag>Manuals How_To Aware_IM_Basics Attributes Calculated}} [<10>] ===== How to set up calculated fields ===== To get //**AwareIM**// to calculate the value of an attribute of a business object you have to define a business rule that will perform the required calculation. The rule should be attached to the business object that owns the calculated attribute. See the “[[docs:2500_config_apps:0800_add_edit_rules|Adding/Editing Business Rules]]” section. In addition you can check the “Calculated” property of the attribute. This will make sure that the attribute is read-only on the forms of the business object. See the “[[docs:2500_config_apps:0700_add_edit_attributes|Adding/Editing Attributes]]” section. For example, if you want to define an attribute called ''NumberOfLineItems'' in the ''PurchaseOrder'' object, you can define the business rule as follows: <code aim>IF PurchaseOrder.MyLineItems WAS CHANGED THEN PurchaseOrder.NumberOfLineItems = COUNT OrderLineItem WHERE OrderLineItem IN PurchaseOrder.MyLineItems </code> Last modified: 2025/06/12 02:35 Log In