Reputation: 187
I have a class in my PARSE database as "Categories" with column name "category". The "category" column contains some values say like "sports","fun" etc. Now i need to retrieve all the values from "category" column.So that I could show the values in a listbox in my windows 8 app.I checked the PARSE.com .NET Guide and used the follwing code
ParseQuery<ParseObject> query = ParseObject.GetQuery("category");
.Now how to get all the values of the category class and populate it in listbox?Hope I explained my question
Upvotes: 0
Views: 284
Reputation: 1
Try the following code:
ParseQuery<ParseObject> query = ParseObject.GetQuery("Categories");
IEnumerable<ParseObject> parseObjects = query.FindAsync();
Upvotes: 0
Reputation: 16874
Try this:
ParseQuery<ParseObject> query = ParseObject.GetQuery("Categories");
ParseObject categories = await query.GetAsync("categoriesID");
var categoryList = categories.Get<IList<string>>("category");
Upvotes: 1