(1) Presumed sequence number
I see no other way to reliably display the probable next number than to create the record itself. Otherwise it would never be
reliable, but at most
likely.

Displaying a presumed sequence number that is different after the data record has been created can lead to subsequent errors and problems in the business process. I personally would not want to take that risk.
(2) Ticketnumbers starting at 10000
(a) MySQL solution
Code: Select all
ALTER TABLE table_name AUTO_INCREMENT = 10000;
Be careful!
(b) Possible AppGini solutions
(1/2) What about adding a new calculated field (integer, readonly) with SQL formula (untested)...
Code: Select all
SELECT (10000+%PKFIELD%) FROM %TABLENAME% WHERE %PKFIELD%='%ID%'
(2/2) You can also add an additional varchar field (readonly, calculated field) and combine a ticketnumber from various fragments by using concat, concat_ws and format options (MySQL commands). Example TCKT-DE-00357-00000001
Kind regards,
<js />
My AppGini Blog:
https://appgini.bizzworxx.de/blog
You can help us helping you:
Please always put code fragments inside
[code]...[/code]
blocks for better readability
AppGini 25.10 + all AppGini Helper tools