Hi,
I have been trying to solve this problem with no success. I would very much appreciate any help to accomplish the following functionality:
There are 2 BOs: Study and Organization. One Study is carried out in one Organization. The attribute Organization in the Study is a per reference to the BO Organization. The Organization has an calculated attribute called TotalStudies to count how many studies are carried out in the Organization.
BO Study
Organization: type Organization, per relationship
...
BO Organization
TotalStudies: numeric (calculated)
...
I tried to calculate the TotalStudies through a process called "UpdateTotalStudies":
Organization.TotalStudies=COUNT Study WHERE (Organization IN Study.Organization)
-It doesn't work. I tried also to do something similar in a rule in the Study BO when the Study.Organization IS CHANGED, but it did not work properly.
I have a presentation with a chart that uses as X axis "Organization.Name" and Y axis is the "Organization.TotalStudies". The presentation is used by a query used in the the member perspective. This perspective has three tabs: Welcome, Organizations and Studies. The tab Organization presents the chart.
My questions are:
- How to calculate Organization.TotalStudies in the Organization BO?
- How to update TotalStudies for all organizations at once before the tab "Organization" is selected in the visual perspective to present the chart for the organizations?
Thanks in advanced and have a very nice day,
Roxana