79747150

Date: 2025-08-26 17:47:35
Score: 3
Natty:
Report link

Chuck! I am also late to the party. To complement on Mark's comment, I worked on building a mini solution based on your problem. The assumptions are:
1. The companies do not have a static income value for each employee. To make it more realistic, each employee sets his/her income per company.
2. The employee cannot create his/her company, but select it from an existing database.

This is how the data relationship looks:

Data Diagram

Logic:

For the most part the logic was done autonomously by using the scaffolding technique with the Employee and Company entities. I created a new aggregate to fetch Income.Amount and Group By Sum:

Aggregate GetTotalIncome

On the Employee Detail screen, I included some additional variables and actions to be able to capture the user's income and update the Sum. I used a PopUp widget to be able to capture this information and save it in "IncomeId".
EmployeeDetail Screen Elements

Feel free to test this mini app by using this link. I'm happy to share the oml file if you'd like to see the logic.

Reasons:
  • Blacklisted phrase (1): this link
  • Probably link only (1):
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Dolcekar