Subject | Re: [IBO] Stay on newly inserted record |
---|---|
Author | Salvatore Besso |
Post date | 2005-02-28T10:30:07Z |
hello Lester,
the primary key is automatically managed in the database via a trigger:
CREATE TRIGGER BI_ANAGRAPHICS FOR Anagraphics
ACTIVE BEFORE INSERT POSITION 0
AS
BEGIN
IF (NEW.ID_Anagraphic IS NULL) THEN
NEW.ID_Anagraphic = GEN_ID(GEN_ID_Anagraphic, 1);
END ^
Do you mean that to stay on the new row the PK creation should be managed by IBO
(that actually knows nothing about it)?
Regards
Salvatore
the primary key is automatically managed in the database via a trigger:
CREATE TRIGGER BI_ANAGRAPHICS FOR Anagraphics
ACTIVE BEFORE INSERT POSITION 0
AS
BEGIN
IF (NEW.ID_Anagraphic IS NULL) THEN
NEW.ID_Anagraphic = GEN_ID(GEN_ID_Anagraphic, 1);
END ^
Do you mean that to stay on the new row the PK creation should be managed by IBO
(that actually knows nothing about it)?
Regards
Salvatore