Hello! Is it possible to find max value in the column? Like using aggregation in mongodb?
Regards
Kira
Hello! Is it possible to find max value in the column? Like using aggregation in mongodb?
Regards
Kira
Hi Kira,
Currently we do not have support for the max value function. This (and many other “aggregation” functions) are on our roadmap though. Until it is available, the best option is to either pre-calculate the max in custom business logic on the server in the beforeCreate/beforeUpdate event handlers.
Regards,
Mark
Thank you. Mark! Its interesting idea. So that is how I can not to load the phone for processing the data. This action will do on the server.
Regards
Kira
Hello! I am trying to make a Before Create Handler. I have read the documentation and also have watched the video “Developing custom business logic” from your youtube chanel. I have done all like Mark said in the video.
But, when i call the method, which create the object, the handler doesnt work, but the new object adds.
If u see the debugger, there is no even Thread (beforeCreate) or smth else…
Regards
Kira
http://support.backendless.com/public/attachments/6940957ab025768653ebe8410f17cba2.PNG</img>http://support.backendless.com/public/attachments/21945f307c607fe236b3e47dac2ebd6f.PNG</img>http://support.backendless.com/public/attachments/52b7ce0fcb0b4dde61c7755a00dd0dbb.PNG</img>
Hello, Mark !
I have the problem. Could you please see my comment below.
Regards,
Kira.
Hi Kira!
Could you show how you create new data object?
Hello, Kate!
Here is the method
public void setDay(final int id_day,String date, double calories,double proteins, double fats, double carbohydrates, double water){
Days day = new Days();
day.setId_user(shareUserId);
day.setId_day(id_day);
day.setDate_day(date);
day.setCalories(calories);
day.setProteins(proteins);
day.setFats(fats);
day.setCarbohydrates(carbohydrates);
Backendless.Persistence.save(day, new AsyncCallback<Days>() {
public void handleResponse(Days response) {
Log.d("test", "SAVED day " + id_day);
}
public void handleFault(BackendlessFault fault) {
Log.d("test", "error" + fault.toString());
}
});
}
Hi Kira,
Please try downloading the latest build of the library for Android from:
It has a fix for the problem you’re experiencing.
Regards,
Mark
Hi, Mark!
Thank you very much !! All is working.