Hello,
when I create a new record on a table with a database sequence I get the following problem on an Oracle 8 database.
-
Within the Servoy ‘column info dialog > database sequence’ I told servoy the sequence name of the table: ‘bilder_seq’
-
On the Oracle database there is a trigger which runs after an insert and sets the pk: ‘get_bilder_seq’
-
When I create a new record within Servoy the PK column first gets pk 1000 for example.
After controller.saveData() I can see the new record in the database; but the pk of that record is 1001; not 1000. At that moment Servoy still things the pk value is 1000.
I did not found any solution within Servoy to fix this problem. If I try to set the pk column to ‘Database default’ (null) will be returned instead of 1000.
Would be nice to have a fix for that problem; now I post a query to get the pk of that new record, set the pk value into a global, get the record via relation and define further values of that record…
Greetings
Christoph