Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialJohn Gill
2,580 PointsRelating Users in Parse.com Extra Credit help!!!
can someone show or help me figure out how to do the extra credit for this part. I can't figure out how to get the extra data when you click on a friend and show it on a separate profile activity. HELP
2 Answers
Rodrigo Rocha
4,042 PointsHello Friends,
I had the same problem. To get success on the Extra Credit you must do this:
Declare and assign values to FirstName, LastName, Hometown and Website. Put this values to the ParseUser Object created using the put() method. This method takes two parameters, the key (that will be the name of the field in the class dashboard) and the value (the value that will be stored in this field).
Now you must remember that you can't use the put method for the Email, Username and Password, because this method creates the field in that class. This fields are already there.
I create final static strings to store the keys
```ParseUser newUser = new ParseUser();
newUser.put(ParseConstants.KEY_NAME, name);
newUser.put(ParseConstants.KEY_LASTNAME, lastName);
newUser.setUsername(username);
newUser.setPassword(password);
newUser.setEmail(email);
newUser.put(ParseConstants.KEY_WEBSITE, webSite);```
I hope that help you!
Thanks!
Dillon Auxier
3,065 PointsI am also in the same boat. If anyone has any guidance please throw something up. I was able to successfully add new fields to parse but that was about as far as I got.
John Gill
2,580 PointsI got an answer on another question about this! https://teamtreehouse.com/forum/passing-parse-data-from-list-item-click-to-new-activity
John Gill
2,580 PointsJohn Gill
2,580 PointsI don't want to move on until I figure this out! someones gotta know how!