Pablo Ramirez Posted October 11, 2004 Posted October 11, 2004 Hello, I am trying to build a simple application that assigns points to people according to certain activities and at the end it adds the points for each one of them and ranks them from highest to lowest. So far I have not been to do that last part. I have tried many things, playing with portals, scripts with no luck. The problem is in the Reports Layout, I deleted all my trials/tests, to have a cleaner view. Any help would be very appreciated Pablo Points.zip
Pablo Ramirez Posted October 11, 2004 Author Posted October 11, 2004 I think I am overthinking this!!!!!! Pablo
Pablo Ramirez Posted October 11, 2004 Author Posted October 11, 2004 How can you show the records in a portal without repeating them. If I assigned points to different persons every week, then how can I list them without repeating names?
Pablo Ramirez Posted October 11, 2004 Author Posted October 11, 2004 Thank you but perhaps I did not explain correctly. Please take a look at the attached file. the reports layout shows the sorted records with the total score for each person. But the names are repeated. Could you please help me on this issue? Thank you Pablo Points.zip
-Queue- Posted October 11, 2004 Posted October 11, 2004 Put your sum calculation in your Officers file and then use a portal to display them, sorted by the sum. See attached. score.zip
RalphL Posted October 11, 2004 Posted October 11, 2004 Lets say you have a file People with the fields ID (an autoentered serail number) First Name, Last name, etc. Then you have a field Scores with the fields ID from the people file, Date and Score. In People you can have a portal to Scores which will show the date & scores for the person of that record. You can calculate the total score for that person using Total = Sum(Scores::Score). You can sort the records in People by the Total. This may not be very fast since the calculation is unstored. Display this in list view to see the people and their scores.
Pablo Ramirez Posted October 12, 2004 Author Posted October 12, 2004 Thank you very much. Now it works excellent!! Pablo
Pablo Ramirez Posted October 27, 2004 Author Posted October 27, 2004 Hello, I had to add an extra thing that pretty much "damaged" the portal for some reason. Basically I added a radio button that depending on the outcome (yes,no) will assign points to the person. I don't know why the portal is not sorting the records in descending order. I compared everything with the file you previously sent me but still it does not work. I truly appreciate your help Cordially Pablo Points.zip
-Queue- Posted October 27, 2004 Posted October 27, 2004 From a quick glance, it looks like you're using the wrong relationship for SumScore. It shouldn't be based on a constant. Use the FF relationship instead.
Pablo Ramirez Posted October 28, 2004 Author Posted October 28, 2004 Hello, Well, the FF relationship is the same I am using now but still it does not work. Any other ideas would be greatly appreciated. Thank you Pablo
-Queue- Posted October 28, 2004 Posted October 28, 2004 Did you change SumScore in the Officers file to be Sum(Evaluation of MeetingsFF::Sum Score)? This is what I was referring to. It calculates correctly when you use the correct relationship.
Pablo Ramirez Posted October 28, 2004 Author Posted October 28, 2004 Wow, thanks a lot that does it Pablo
Recommended Posts
This topic is 7332 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now