Subject | Help with generators |
---|---|
Author | conner763f@hotmail.com |
Post date | 2001-07-12T17:49:53Z |
Hello, I'm a new user of Interbase, and I have this problem:
I created a database with a primary key (ID) and a field (name),
created the generator and the trigger (I used as a model
employee.gdb).
Now, when I access the database with a frontend like IBAccess or
IB_WISQL, and try to add a record, insert something into Name, and
then post it, I receive "ID is a required field". The same happens
using employee.gdb and bugtrack.gdb, an example I found on BCB5 Dev
Guide.
The trigger should fire before the insert and insert the new value
right?
I tried to code a simple CBuilder program, setting the field ID
property "required" to false (I use IBObjects), but I got the same
error message, it seems that I'm not able to fire the trigger.
Any help?
I created a database with a primary key (ID) and a field (name),
created the generator and the trigger (I used as a model
employee.gdb).
Now, when I access the database with a frontend like IBAccess or
IB_WISQL, and try to add a record, insert something into Name, and
then post it, I receive "ID is a required field". The same happens
using employee.gdb and bugtrack.gdb, an example I found on BCB5 Dev
Guide.
The trigger should fire before the insert and insert the new value
right?
I tried to code a simple CBuilder program, setting the field ID
property "required" to false (I use IBObjects), but I got the same
error message, it seems that I'm not able to fire the trigger.
Any help?