I used subtraction instead of addition. In my case, I could create a List C filter, which was the things that were meant to be excluded by my original List A and B filters. I stored List C as a state on the RG whenever the dropdown I used to choose the filtering options was changed. Then a conditional on the RG changed the data source based on the dropdown’s value. The data source became: “Full List:sorted minus RG’s List C state”. Since the full list was already sorted the way I wanted, the subtraction just removed pieces while preserving the same order.
All of this was to solve another common RG frustration in the forums: you can’t sort a list of things based on another thing’s attribute. I’m building a quiz app and I create Student Answer things that store Answer Key things so that I can edit answer keys without needing to copy all of the new info into every single student answer of that question. I wanted to sort a list of Student Answers by the attached Key’s section number, then question number. Huge PITA. Ended up just putting the question and section numbers on the Student Answer and letting any mismatches be tomorrow’s problem.
1 Like