0

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

2 Answers 2

1

Try this:

ParseQuery<ParseObject> query = ParseObject.GetQuery("Categories");
ParseObject categories = await query.GetAsync("categoriesID");
var categoryList = categories.Get<IList<string>>("category");
Sign up to request clarification or add additional context in comments.

1 Comment

Thanks Timothy and I did like this ' ParseQuery<ParseObject> query = ParseObject.GetQuery("Categories"); IEnumerable<ParseObject> res = await query.FindAsync(); List<string> list = new List<string>(); foreach (var i in res) { var s = i.Get<string>("category"); list.Add(s); }'
0

Try the following code:

ParseQuery<ParseObject> query = ParseObject.GetQuery("Categories");
IEnumerable<ParseObject> parseObjects = query.FindAsync();

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.