This topic is locked
[SOLVED]

remove autoincrement for a keyfield

2/3/2024 12:11:22 PM
PHPRunner General questions
francesco author

I want to remove attribute autoincrement for a field that is a key column, because i want to give a different rule based on year. Do I have to use phpmyadmin for that?

admin 2/3/2024

Yes, you need to use phpMyAdmin or similar software in order to do that.

francesco author 2/3/2024

thank you, another question: If I want to insert a custom auto-Increment logic for that field, what is the best event for that, Before record Added or Custom ADD?
what is you advice?

admin 2/3/2024

I think that BeforeAdd is an easier option in this case.

francesco author 2/3/2024

I've found that Before record Added bypass autoincrement for keyfield, so I'm able to insert custom autoincrement code without remove attribute.
Thank you!