How to change default value of 0 to start with 1

0
I have a simple entity with an integer field default set to zero (0), How can I force the integer to ignore the (0) and start with 1,2,3,4 and so on?       Please help.
asked
1 answers
0

Hey Coby! 

If I understand what you need is to increase that number every time you create an object.

For that probably you should use the autonumber attribute that will be increase everytime.

image.png

You need to take into account that if you remove an object the autonumber doesn't care and the number will continue increasing. If you want to check that behaviour, my recommendation is to use an integer attribute and create an eventhandler to handle the calculation of the attribute.

image.png

 

Kind regards,

Emilio

answered