Total value from a referenced business object

Contains tips for configurators working with Aware IM
Post Reply
flyer27
Posts: 6
Joined: Fri Apr 27, 2007 4:03 am

Total value from a referenced business object

Post by flyer27 »

I am new to Aware IM. So, please forgive the basic question....

I have a business object (BO:Compensation) containing line items with dollar values (Attribute:Amount) referenced in another business object (BO:Employee). I would like to create an attribute in BO:Employee that totals the Attributes:Amount for the displayed BO:Employee. The following is an example of what I am attempting

BO:Employee
Attribute:Name = Joe
Attribute:Compensation (referencing BO:Compensation)
Base Salary $50,000
Commission: $25000
Attribute:Total_Compensation = $75,000 <--what is the business rule to give me this calculation?
flyer27
aware_support2
Posts: 595
Joined: Sun Apr 24, 2005 2:22 am
Contact:

Post by aware_support2 »

The rule would look like this:

Employee.Total_Compensation = SUM Compensation.Amount WHERE (Compensation IN Employee.Compensation)

For more examples have a look at calculation of total fees and payments for object Member in the Library sample application.
Aware IM Support Team
Post Reply