Hi,
I have tried all and I have given up. Here are my problems:
Problem 1
In SystemSettings BO I have the attribute TotalDonors
BO SampleCollection has:
attribute CurrentSampledIndividuals (number)
Rule A:
If SampleCollection.CurrentSampledIndividuals WAS CHANGED Then
CalculateTotalDonors
Process CalculateTotalDonors:
SystemSettings.TotalDonors=SUM SampleCollection.CurrentSampledIndividuals
When a new instance of SampleCollection is created or the CurrentSampledIndividuals is modified, the SystemSettings.TotalDonors is updated but not when an instance of SampleCollection is deleted.
A SampleCollection is deleted from a query result list.
Problem 2
BO SampleCollection has:
Attribute DiagnosisGroup (per reference to Diagnosis)
BO DiagnosisGroup has:
Attribute SampleCollection (per ref. to Study)
Attribute TotalSampleCollections (number)
Rule:
DiagnosisGroup.TotalSampleCollections=COUNT SampleCollection WHERE (SampleCollection.DiagnosisGroup=ThisDiagnosisGroup)
Process UpdateSCforDiagnosisGroup:
FIND SampleCollection WHERE SampleCollection.DiagnosisGroup=ThisDiagnosisGroup
DiagnosisGroup.TotalSampleCollections=COUNT SampleCollection WHERE (DiagnosisGroup IN ThisSampleCollection.DiagnosisGroup)
In SampleCollection BO:
Rule:
If SampleCollection.DiagnosisGroup WAS CHANGED Then
UpdateSCforDiagnosisGroup
When a SampleCollection is created, the DiagnosisGroup.TotalSampleCollections is updated. The same when the SampleCollection.DiagnosisGroup is modified but not when a SampleCollection is deleted.
Any advice or idea is very welcome.
Thanks in advance and have a nice weekend,
Roxana
version 5.3 (Build 1549) Windows