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.
Here is my block code
Here is the json data as it exported from firebase
{
"VehicleData": {
"-NN9Njdh2AuGizCnw4yu": {
""Body"": "Coupe",
""Engine"": "3.6L 3606CC H6 GAS SOHC Naturally Aspirated",
""Engine-Liter-Display"": "3.6L",
""Submodel"": "Carrera",
""Trim"": "Carrera Coupe 2-Door",
""Vehicle-Display-Name"": "Porsche 911 1997 Carrera",
""make"": "Porsche",
""model"": "911",
""year"": "1997",
""ymm_id"": "73920444"
},
"-NN9Njdh3JCxl-q25w6Y": {
""Body"": "Convertible",
""Engine"": "3.2L 3179CC H6 GAS DOHC Naturally Aspirated",
""Engine-Liter-Display"": "3.2L",
""Submodel"": "Roadster S",
""Trim"": "Roadster S Convertible 2-Door",
""Vehicle-Display-Name"": "Porsche Boxster 2003 Roadster S",
""make"": "Porsche",
""model"": "Boxster",
""year"": "2003",
""ymm_id"": "73920554"
},
Here is screen shot when I have it display the full json file being stored in the global VehicleYear variable.
Here is the screen shot when I am using the block code listed above trying to filter out just the year