Re: Creating a Sequence in Developer 2000 version 2 - Form Builder

From: Valeri Sorokine <vsorokin_at_dd.ru>
Date: Wed, 02 Jun 1999 18:17:03 +0400
Message-ID: <37553CDF.3465D84A_at_dd.ru>


You can use :sequence.your_seq_name.nextval as field's Initial Value also, but I prefer PRE-INSERT trigger.

Hope this helps.

Breno de Avellar Gomes wrote:
>
> Hello Evelyn,
>
> I had same problem. One possible solution is to define a WHEN-CREATE-RECORD
> trigger at block level and use something like this:
> DECLARE
> SEQ_ID NUMBER;
> BEGIN
> SELECT SEQEIME.NEXTVAL INTO SEQ_ID FROM DUAL;
> :BLOCK_NAME.ID := SEQ_ID;
> .............. other code .......................
> END;
>
> It is not the best approach, but it works fine.

<snip>

-- 
Valeri Sorokine
ProSoft, Russia, Moscow, Information Systems Division
Phone: +7 (095) 234 0636 (6 lines) FAX: +7 (095) 234 0640
E-mail: vsorokin_at_dd.ru OR vsorokin_at_prosoft.ru
http://www.dd.ru
Received on Wed Jun 02 1999 - 16:17:03 CEST

Original text of this message