Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Trying to create a "ranking"

Featured Replies

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

  • Author

I think I am overthinking this!!!!!!!!!!!!

Pablo

  • Author

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?

Sort on the Points field.

  • Author

grin.gif 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? confused.gif

Thank you

Pablo

Points.zip

Put your sum calculation in your Officers file and then use a portal to display them, sorted by the sum.

See attached.

score.zip

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.

  • Author

Thank you very much. Now it works excellent!!

Pablo grin.gif

  • 3 weeks later...
  • Author

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

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.

  • Author

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 confused.gif

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.

  • Author

Wow, thanks a lot that does it

Pablo grin.gif

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.