Hi All,
I have one option field on 'Job Card' i.e. Feedback Type.
I have to calculate the no. of jobs for which Feedback Type is 'Excellent' and divide the count by total no. of Jobs.
Total no. of jobs has been calculated and SetRange has been put on Feedback Type.
But, I am not getting how to get the no of jobs for which Feedback Type is 'Excellent'.
Please suggest the solution.
Below is the block of code :
Rec_Job.Reset();
Rec_Job.SetRange(Feedbacktype, Feedbacktype::Excellent);
Total_No_Of_Jobs := Job.Count;
if Rec_Job.FindSet() then
repeat
Excellent := Feedbacktype / Total_No_Of_Jobs; Excellent is the variable to store the calculated value.
until
Rec_Job.Next = 0;