1

I know about how to insert in custom table in parse.com database but i don't know about it how to update. i confuse in the how to get all object value from the table. so you have any idea about it.

Thanks in Advances.

1 Answer 1

2

You could try to retrieve the object you want to update and then save it edited like this:

ParseQuery<ParseObject> query = ParseQuery.getQuery("User");
query.whereEqualTo("firstName", "Dan");
query.findInBackground(new FindCallback<ParseObject>() {
    public void done(List<ParseObject> list, ParseException e) {
        if (e == null) {
            ParseObject person = list.get(0);
            person.put("firstName", "Johan");
            person.saveInBackground();
        } else {
            Log.d("score", "Error: " + e.getMessage());
        }
    }
 });

For more examples you could read the chapter for updating objects in Parse.com documentation here https://www.parse.com/docs/android/guide#objects-updating-objects

Sign up to request clarification or add additional context in comments.

13 Comments

Sorry but its not work in my side. i read whole documentation but i not get any idea about it. and also how to get objectId.
it's not necessary to get the objectId, take a look at my example above - you could get the ParseObject by some property, for example "firstName" and then edit it and save it again
i given name there Country its parse database field. and i have multiple record.
What's given in getQuery("user"). it's user is your class name??
the parameter in getQuery() is the name of the table from which you want to get an object. It is just an example with a table (or class) "User" which has a column called "firstName"
|

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.