Can't update Parse Object

I've created an object previously that I'm now trying to update in an "edit" screen

The id of the object is correct (as it correctly queries earlier in the activity to update the text labels. This should save when a button is clicked.

ParseQuery<ParseObject> query = ParseQuery.getQuery("Product");
                    Intent i = getIntent();
                    String queryString = i.getStringExtra("id");
                    query.getInBackground(queryString, new GetCallback<ParseObject>() {
                        public void done(ParseObject editProduct, ParseException e) {
                            if (e == null) {
                                editProduct.put("productName", ProductName.getText().toString());
                                editProduct.put("ISDN", ISDN_text.getText().toString());
                                editProduct.put("expiry", expiry_date.getText().toString());
                                editProduct.put("type", spinnercategory.getSelectedItem().toString());
                                editProduct.put("quantity", quantity.getText().toString());
                                editProduct.put("username", "Admin");
                                editProduct.put("shoppingList", true);
                                editProduct.put("mainList", false);

This is lifted from the Parse Android developers guide, but doesn't appear to be working. Any suggestions


Figured it out. Sort of.

editProduct.put("expiry", expiry_date.getText().toString()); is the line that's breaking it. I'm trying to pass a string to what is defined as a date at the backend, which apparently cancels the whole save operation.

Commented this out in my solution for now until I can fix the issue with the date

Need Your Help

Turning RGB values into HSL values in a random Javascript

javascript css random rgb hsl

I have a random color overlay on the media-boxes of this site.

Understanding copyright field in the iTunes Connect app submission

ios app-store itunesconnect

I'm searching the Apple documentation to try to answer this question, but without success. Hope someone of could give me a "safe" reply...

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.