I have data in firebase for vehicle information that I am trying to pull into MIT App Inventor. When I click a button for year, make, or model I want there to be a list picker where select either the year, make, or model of your vehicle. Currently I am using web connectivity and using the REST api to get the json file from firebase. When I dont try putting it in a dictionary for trying to filter by the year, make, or model tag I can populate a label with the data from the json. When I try and put that information in a dictionary for just the tag year for example the label updates with "not found" which is the error check from the list.
Im pretty new to all of this, and Im sure there are some newbie mistakes being made. If anyone has some pointers it would be greatly appreciated.
I do know that I am receiving multiple cars. the end goal is when you select year, it pulls and filters out each year in my file for someone to select, and then under make, it will list only the car makes that are in that year, and then when that make is selected, it will only show the cars for that year, and make for the user to select.
thank you for the response, Im going to take a look at those. It might have been the csv to json converter that cause the quadruple quotes, and then that data is what I used to populate the table in firebase
This can be done using dictionaries and lists. You will, however, need to tidy up and sort out the presentation of your returned json for this to work. You will also want to format the resultant json of the selected vehicle. The blocks work because they keep track of the index of each vehicle, while the user is filtering by year and make. This is why you see a number (index) with the car make and model in listpicker3. You could not show this in the listpicker, but you would need to retain it in the underlying list.
thank you for the suggestion. I am working on cleaning up the json file that I have loaded into firebase. I am hoping to have that done shortly and then I am going to give your suggestion a try.