I have a repeat region table with two columns, ID & Total Score. It is sorted from high score to low score. I would like to identify any rows that have identical scores so that I can change their row color. I’m getting fairly familiar with how to use Wappler, but this one has me stumped. Any help out there?
Hi,
You will need to set dynamic class with condition being something like this:
sc1.data.query1.where(total, total, ==).hasItems()
This is a rough code, please make sure to use UI for the expression.
Here query1 is the repeat source.
First total is the property in the query1.
Second total is the property of current row.
With this, if there are two sets of matching data, they also will have same colour. Eg: 55 & 55 will get same class applied as 45 & 45 would.
Thank you! I was just about to post an update that I got it figured out. It wasn’t as simple a method as yours, but it worked. I had a second query that looked for matching data and if it returned more than one set it was a match. I will definitely try out your method. It is much simpler than mine.