Good morning Axure friends,
I hope the title accurately reflects what I’m trying to do. I have the first half figured out, but I’m wrestling with understanding the logic behind how repeaters, marked items and filters work together.
Here’s a very simple example of what I’m trying to do:
I’m creating a store front for a car dealership. My repeater consists of the following data that I want to be able to filter on based on:
VehicleType…Colour
Car…Black
Car …Red
Car …Sliver
SUV…Black
SUV…Red
SUV …Sliver
Truck …Black
Truck…Red
Truck…Sliver
I have a drop-down to select the vehicle type, and toggle option selections to choose one or multiple colours.
The first part of loading the repeater table, I think I have. I’m sure there are many ways to do this, but what I’m doing is that I have a custom drop-down box for vehicle type and based on the selection, I set a Global Variable “VehicleType” to match the selection (car, SUV, truck).
When I load the page with the repeater, i have an OnPae\geLoad action to filter the repeater if the Item VehicleType equals the Global Variable value. That part is working ok.
Now I want to be able to select one, some or all of the colours and have the repeater update the filter without changing the vehicle type.
I have custom check boxes for each repeater row, and on selection, I’m setting the row as marked.
I have a UI toggle button for each colour, Red, Silver, Black.
What I’m struggling with is that on click of Red, for example, I want the repeater to filter the already marked results to show only the Red vehicles. But then, on click of the Silver UI button, I want to use the originally marked rows and show both Red and Silver vehicles … and if Red is then toggled off, the list would update to remove red and show only Silver.
I’m not sure of the correct syntax to do this, and I’m not finding this part intuitive, or maybe I’m just building it the wrong way.
My question boils down to: once I mark items in a repeater based on a column value, is it possible to keep those marked items persistent to continue to filter them, even if the filter causes those items to be removed from view from the repeater?
Sorry if this sounds convoluted … I’ve been trying a million ways to get it to work and just not making sense of it, if there’s a better approach, I’m all ears.
Thanks!
-Jeremy