Not Able to show the data in UI

0
Hi, There are two entities EMPLOYEE and TEAM. They are associated with each other like One team object is associated with multiple Employee object. In team object there is an object called Count which count of employees under that particular team. For showing that I have done the following in TEAM overview page:  I have used data grid 2 in team overview page (data source is team database). Added a column to show the count. In the column , I have used the data source as microflow. Following image shows the microflow I have used :     In database value is getting stored but UI, i.e. in column no value is getting shown and when I am deleting the complete record, then also it is throwing error like value should not be null. How to resolve these 2 issues. Please help me out, its urgent   Thanks you
asked
1 answers
0

My advise is not to calculate the number of employees when displaying the teams. I would update and store this value in the database when changes are made. Just like it is done at the Rapid Developer course, for keeping track of the amount of TotalNumberOfRegistrations.

See: https://academy.mendix.com/link/modules/94/lectures/4800/7.10-Custom-Save-Button

 

answered