I want a field in my table that will diplay the rank. I have sorted out the result from higher to lower, so I want the higher to have rank 1, to lower let say to 10 or more…
But I want a field that will have a number 1 to xx depending of the rank of the competitor best results. This is a dynamic page coming from the Home page depending on the category.
The best score will change during the year so their ranking as well.
thanks again for the answer But not sure to understand what I have to do. Here is the code behind that I’ve made (I’ve added what you put in there, but seems to have an error) :
// For full API documentation, including code examples, visit http://wix.to/94BuAAs import wixData from ‘wix-data’
$w.onReady( function () { let donCategorie = $w(‘#dynamicDataset’).getCurrentItem() let filter = wixData.filter().eq(“categorie”, donCategorie.categorie);
$w(‘#text7’).text = donCategorie.categorie
Wow thank you, its working. Sorry for the delayed response, I didn’t receive the email that I had an answer and just checked to be sure nobody response, and there was the solution