I have a list of car models with 8 parameters, such as brand, power (in kW) and so on. My list is over 1,000 entries long, so I want to give the user the option to filter down the data to a much smaller list, before he picks a model.
On the UI, I have 4 dropdowns (DD). From top to bottom, DD1 asks for the brand, DD2 asks for Fuel type (Diesel, Hybrid, etc.), and DD3 asks for the Gearbox type (automatic or manual).
The user’s choices are captured in 3 page variables. I would like to fill the 4th dropdown (Model), whose visibility is bound to a formula that makes it only visible when all 3 choices have been made, with the list of cars that match the user’s choice for the first 3 parameters.
How do I check the list (of 1,000+ cars) coming from the API for the user-selected parameters, and show only those in the dropdown that match the user’s selection? I assume it is some sort of MAP function, but so far I couldn’t figure it out myself.
Any help is greatly appreciated!
Some resources to check before you post:
AppGyver Academy: SAP AppGyver Quick-Start
Troubleshooting FAQ: SAP AppGyver FAQ