create "before event handler" on Data Table in Backendless Android?

I need to implement “Auto increment api”.
I have added a “before” event handler for one of Data Table.
I have also downloaded the generated code.
CodeRunner works but I don’t know exactly which files to include in …/classes?
I am using Android studio 2.1. I’m unable to find “Project compiler output” so that it can be changed to …/classes.

Hi Ketan,

You should investigate “About Event Handlers” and maybe some following doc pages. Hope it will be helpful for you.

Regards,
Slava

Hi Vyacheslav Vdovichenko,

I’d like to have a column with auto increment unique value. Could you plz point me to some tutorial or sm useful steps to achieve same?

Hi Ketan,

There are no auto-increment columns in Backendless. In order to do that, you will have to store the last value somewhere, I suggest the Atomic Counters.

Also you can watch video tutorial about business logic:

Here is a relevant tutorial, which describes you how to compile and run custom server code: https://www.youtube.com/watch?v=9hEoqC44CCo

Thanks @Kate Maksimenko and Sergey Chupov I’ll take a look at it.

Thanks Backendless Support Team. I’ve finally achieved with all of yours help :slight_smile: