Subject | TIBOTable and Generators |
---|---|
Author | Don Gollahon |
Post date | 2001-12-18T01:51:41Z |
I can't insert a record into a table using TIBOTable because it says it
needs a value for the key field. I have a generator/trigger setup for that
field so I shouldn't have to enter it.
Trigger:
begin
if (new.id is null) then
new.id = gen_id(partnerinfo_id, 1);
end
ID is the only key field. I'm using TIBOTable because this is an app that
I've converted from Paradox tables and I use the IndexName property. It
wouldn't be that hard to change it but I just wondered why the generator
didn't work.
The ID field is not accessible by the user (except to view it). There is no
code on the object to manipulate anything for insert/delete/edit.
Thanks.
--
Don Gollahon
(dlgllhn@...)
needs a value for the key field. I have a generator/trigger setup for that
field so I shouldn't have to enter it.
Trigger:
begin
if (new.id is null) then
new.id = gen_id(partnerinfo_id, 1);
end
ID is the only key field. I'm using TIBOTable because this is an app that
I've converted from Paradox tables and I use the IndexName property. It
wouldn't be that hard to change it but I just wondered why the generator
didn't work.
The ID field is not accessible by the user (except to view it). There is no
code on the object to manipulate anything for insert/delete/edit.
Thanks.
--
Don Gollahon
(dlgllhn@...)