how to make an automatic increase with prefix

imagenweb

New Member
how to make an automatic increase with prefix

example

Cot-0001
Cot-0002
Cot-0003
etc..

image attached to explain
 

Attachments

  • autoincrement.png
    autoincrement.png
    82.1 KB · Views: 193
Easiest way to do this would be to use a 'calc' element which does this:

PHP:
return sprintf("Cot-%03d", (int)'{yourtable___id}');

Set "Calc on save only" to Yes.

-- hugh
 
Actually, come to think of it, as per our live chat just now, that probably won't work. I'll have another think, and get back to you.

-- hugh
 
We are in need of some funding.
More details.

Thank you.

Members online

No members online now.
Back
Top