Create a custom module with auto-increment field


I am trying to create a custom module with an auto-incremental field. I read many posts with directions but still I cannot get it working properly.

Kindly, can you guide me to get it done?

Thanks in advance.


You can create a auto increment field into table of particular module. This can not be created by studio.
It is auto increment so you should put it as readonly in editview.

Case module has - case_number as auto increment field.

There is a plugin for it.

Thanks for your quick reply.