BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

ODAC - TOraTable and sequence issues....

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (SQL Servers)
View previous topic :: View next topic  
Author Message
Kurt Bilde
Guest





PostPosted: Wed Apr 07, 2004 5:21 pm    Post subject: ODAC - TOraTable and sequence issues.... Reply with quote



Hi !

Using ODAC 4.50.2.20 for Delphi 7.

I'm having problems with retrieving the value of the KeyField right
after the post with TOraTable e.g..:

dmMySam.taFagbeskrivelse.Post;
IKlonRunNr := dmMySam.taFagbeskrivelseFAGBESKRIVELSE_ID.value;

The Sequence Mode is set to smPost.

I've tried with dmMySam.taFagbeskrivelse.RefreshRecord; e.g.:

dmMySam.taFagbeskrivelse.Post;
dmMySam.taFagbeskrivelse.RefreshRecord;
IKlonRunNr := dmMySam.taFagbeskrivelseFAGBESKRIVELSE_ID.value;

But without any luck.

I've created a Sequence like this:
CREATE SEQUENCE FAGBESKRIVELSE_ID_SEQ
START WITH 1
INCREMENT BY 1
MAXVALUE 999999
MINVALUE 1
NOCACHE
NOORDER;

and the table looks like this:

/* Table: FAGBESKRIVELSE */
CREATE TABLE FAGBESKRIVELSE (
FAGBESKRIVELSE_ID NUMBER(6, 0) CONSTRAINT
FAGBESKRIVELSE_ID_PK PRIMARY KEY,
PERIODESTART_ID NUMBER(3, 0) ,
PERIODESLUT_ID NUMBER(3, 0) ,
STATUS_ID NUMBER(3, 0) ,
WEBSTATUS_ID NUMBER(3, 0) );

Can anyone see why I doesn't get the Sequence value back just after
posting?????

If some have any comments on my approach on the Sequence or have any
hint they are highly appreciated

tia

-Kurt

Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (SQL Servers) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.