# General goals I accomplished in the third week of RestaurantRoulette
### More specific arraylists for the different attributes of the restaurants
Last week I had set up arraylists for the different values that belong to a restaurant such as:
- price
- alias
- name
- yelp url
- and a couple of more values
But a big blocker I was having was the fact that the arraylists were coming back null, so after a bit of troubleshooting with some of my peers and my manager Kenny, the problem was solved and all the information is being stored in the right places and no longer returning null.
***Why this matters moving forward:***
This is what the drop down menus will be attached to AND this means that if I need more data from json, I now know how to grab data correctly
### Made a "Surprise Me" button
In order to allow some users to go fully random with only the zip code being the determining factor, I added a surpise me button that picks a **random int i** and grabs the data from each of the restaurant values arraylists at **index i**, then all the values come together to display a truly random restaurant
### Made a functioning Restaurant page
I wanted to add a fully functioning surprise randomizer from the button to the details being displayed. Towards the end of this week I focused very heavily on translating the data retrieved from when the user hits the surprise me button into the restaurant page...
the result was that the user can see all the details of the restaurant including the
- image
- name
- number
- url
# Current blockers
### Unable to correctly save Resataurant in background
After displaying the random restaurant the user has the option to click the check mark or the x button.
The checkmark should be able to save the restaurant in the user's history.
The X button will simply redirect the user to the home page so they can make a new search.
**My blocker:** When I click the checkmark I keep receiving the error: Unable to encode an unsaved ParseFile
### Spinners are not linking to the arraylists
After getting the arraylists to work, I simply planned on setting the options to the arraylists but my app crashes when I attempt this.
Possible solutions:
- changing the arraylist types as they might be incompatible
# Goals for the next week
- Be able to save in background correctly and fix my image file
- Fix how the arraylists link to the spinner options
- Find an item similar to a spinner that'll allow me to choose multiple options at once, I found a bullet point list but that would take up to much space on the page