AutoIncrement property
AutoIncrement property for field on temporary table
Info
Notes based on BC27
AutoIncrement property for field on temporary table doesn’t work, however it still compiles. This does not work because the automatic increment mechanism is handled by SQL, and temporary tables are not stored in SQL.
Workaround
Full solution can be found here: dynamic-req-page
Remove the AutoIncrement property from the field.
In the OnInsert trigger find the last used entry no and increment it manually.
Important
The entry no will be incremented only in the temporary table scope