automatically calling same function

In suite Crm through which file or function we can call another function automatically. Or when creating new record and filled the information after saving it again go for creating new record it will refresh the entire structure as well as database so that in custom text filed it will display particular record with increment value. For Example : emp_id : emp-0001 after saving record the emp_id will increment and when it display the record and then we go for create another new record in my module it does not show the next value. I have click on home and select my module name, click on create then it will display new emp_id value.

take a look at this post https://suitecrm.com/forum/suitecrm-7-0-discussion/1841-how-to-add-a-autoincrement-field-for-account-and-contacts?start=30#27673 I think is what you need

best regards