Auto increment number in a string field with format: "TSA 22-0001

Andre8
Giga Guru

I would like to auto increment a field when a new record is being created with a format of TSA 22-0001

2 ACCEPTED SOLUTIONS

Saurav11
Kilo Patron
Kilo Patron

Hello,

 

Please do the below:-

 

Please go to Number Maintenance

 

Saurav11_0-1665762296888.png

 

Then over there create a new record with the below configuration, just change the table name to yours and save it.

 

Saurav11_1-1665762443486.png

 

So now when you create a new record you will have it as prefilled with the format:-

 

Saurav11_2-1665762678258.png

 

Please mark answer correct/helpful based on Impact.

View solution in original post

I see so your table is extended by task table? Then you may need not use the other field, instead in the number field itself configure dictionary and go to related list label and just chnage the label of the number field for this table

 

Saurav11_0-1665768469989.png

 

Please mark answer correct based on Impact.

View solution in original post

10 REPLIES 10

Saurav11
Kilo Patron
Kilo Patron

Hello,

 

Please do the below:-

 

Please go to Number Maintenance

 

Saurav11_0-1665762296888.png

 

Then over there create a new record with the below configuration, just change the table name to yours and save it.

 

Saurav11_1-1665762443486.png

 

So now when you create a new record you will have it as prefilled with the format:-

 

Saurav11_2-1665762678258.png

 

Please mark answer correct/helpful based on Impact.

sujata sakhare
Tera Contributor

1.navigate to number maintenance.

2.create new record change your table name.

3.write in number field TSA 22-0001.

4.save it..

It will automatically increment the number..while creating records.

 

Thanks.

Thanks, is there a way to do this for a string field? a field other than the default number field?

Saurav11
Kilo Patron
Kilo Patron

Hello,

 

If you want to do for a string field open the dictionary of the field and in the default value check dynamic default and fill the reference value with get next padded number and save it:-

 

Saurav11_0-1665764300012.png

Then that field will have the format

 

Saurav11_1-1665764393441.png

 

Please mark my answer as correct based on Impact.