randyinla Posted May 22, 2002 Posted May 22, 2002 hi there, i have a field called 'scores' with a numeric value. i'd like to create a calculation field called 'ranking' which will assign a number next to a record based on results of a 'current find' i.e., highest score='1', next highest score='2', 30th highest score='30'... here's a link to give an idea of my dilemma... http://tutsan.forest.net/ssv/FMPro?-db=ssvdb.fp5&-lay=master&-format=rankings.html&-Op=eq&Group=Adults&-Op=eq&Gender=M&-SortField=highscore&-SortOrder=descend&-Max=500&-Find i'd appreciate any help, thanks!
Garry Claridge Posted May 23, 2002 Posted May 23, 2002 Try [FMP-CurrentRecordNumber] All the best. Garry
Vaughan Posted May 23, 2002 Posted May 23, 2002 There are a couple of ways of doing this, but I've never thought of using the Status(CurrentRecord) function before! In the past I've done this by sorting, then replacing a field with a serial number (to generate the ranking 1, 2, etc). It works very well but the replace step could possibly fail in a multi-user environment due to record locking. A process using the Status(CurrentRecord) won't have any problems at all with multi-user because it could do without the replace step. It will also work well over the web because all it needs is the sort -- it doesn't need a script at all. The more I think about the Status(CurrentRecord) method the better I like it! Well done.
Garry Claridge Posted May 23, 2002 Posted May 23, 2002 [FMP-CurrentRecordNumber] example: <tr><td>Rank</td><td>Score</td><td>Name</td></tr> [FMP-Record] <tr><td>[FMP-CurrentRecordNumber]</td><td>[FMP-Field:score]</td><td>[FMP-Field:name]</td></tr> [/FMP-Record]I've never tried it, so it is only a guess! Garry
randyinla Posted May 23, 2002 Author Posted May 23, 2002 THANKS thanks garrycl and vaughn, i'll try both your methods!
Recommended Posts
This topic is 8290 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