I would like to know how I can create a numeric field that autoincremente with each record in a cpersonalizado module built from scratch … Something similar as having Cases module.
Thanks in advance to those who respond and help me with this.
I wouldn’t recommend that module because it has problems when reaching the limits of 10000, after that it stopped counting at least for me, and noticing that after 10K records is not good.
I’ll try to find the tutorial where explains the best way to do this, is the same way that SuiteCRM uses for the “bugs” module, I had a bookmark in my browser but the SugarCRM Community change their forums a lot and all is lost now.
Basically the best way is to create an integer field and then set it to auto increment via sugardefs and after repair it this changes in the database. But then again, I don’t remember it very well and I’ll try to find the tutorial.