i wanna know how can i update the user property. i mean below is the code if i use it then it creates one more row in backendless (so now i user has 2 rows)
UserInformation userInformation = new UserInformation() ;
userInformation.setFullTimeStatus(“1”);
Backendless.Persistence.save( userInformation, new AsyncCallback<UserInformation>() {
public void handleResponse( UserInformation savedContact )
{
} @Override
public void handleFault( BackendlessFault fault )
{
Toast.makeText(E_AccountSetup_FullTime_CodeNumber.this, "eNTRY UPDATED FAILED "+fault.getMessage(), Toast.LENGTH_SHORT).show();
// an error has occurred, the error code can be retrieved with fault.getCode()
}
});
i want to update the fullTimeStatus property to 1 i.e when user push a button.
but instead it creates a whole new row with the fullTimeStatus property as 1. i mean it is updating the property but it creates a new row.
If i want to update property in my Users class which holds the email passowrd of user i simply go with this code and it works fine
user.setProperty( “isVerified”, 2 );
Backendless.UserService.update( user, new AsyncCallback<BackendlessUser>()
{
public void handleResponse( BackendlessUser user )
{
// user has been updated
}
public void handleFault( BackendlessFault fault )
{
// user update failed, to get the error code call fault.getCode()
}
});
is not there is any way to update the property simply . i mean the documentation method also generate new row