Currently, when using a relational database, for instance MySQL, this can currently be done as follows:
In the database, create a table:
CREATE TABLE my_seq (
val INT PRIMARY KEY AUTO_INCREMENT NOT NULL
);
In Form Builder, create a database service seq-insert that runs INSERT INTO my_seq VALUES (). Create an action seq-insert that runs the seq-insert service on form creation.
Still in Form Builder, create a database service seq-read that runs SELECT max(val) val FROM my_seq. Create an action seq-read that runs the seq-read service on form creation and populate the field with /response/row/val.
This RFE calls for supporting this out-of-the-box so form authors can simply designate a field as being auto-incremented, without having to create anything at the database level, or having to create services and actions.
Currently, when using a relational database, for instance MySQL, this can currently be done as follows:
seq-insert
that runsINSERT INTO my_seq VALUES ()
. Create an actionseq-insert
that runs theseq-insert
service on form creation.seq-read
that runsSELECT max(val) val FROM my_seq
. Create an actionseq-read
that runs theseq-read
service on form creation and populate the field with/response/row/val
.This RFE calls for supporting this out-of-the-box so form authors can simply designate a field as being auto-incremented, without having to create anything at the database level, or having to create services and actions.