And, in php, you suggest:
$grid->sql->sequence(“EMPLOYEES_INC.nextVal”); //sequence name
$grid->render_table(“EMPLOYEES”,“EMPLOYEE_ID”,“FIRST_NAME,LAST_NAME”);
I’ve tried to translate that in Java, but the connector does NOT have a “sql.sequence” parameter,
i.e. the following gives compile errors on the “c.sql.sequence” line:
Connection conn = ( new DataBaseConnection()).getConnection();
FormConnector c = new FormConnector(conn, DBType.Oracle);
c.sql.sequence(“TIPOGIUNTA_SEQ.nextVal”);
c.render_table(“TIPI_GIUNTE”, “TIPOGIUNTA_ID”, “DEFINIZIONE”);
But shouldn’t it be auto-generating the id parameter from the sequence ???
It is the different issue, when loading data to the form it expects to receive the id parameter.
For example you can use
form.load("some.php")
you need to use
form.load("some.php?id=123");
which will select record with id = 123, and will load it in form