resetting serial number [message #317067] |
Tue, 29 April 2008 06:59  |
*munnabhai*
Messages: 157 Registered: March 2008 Location: Riyadh
|
Senior Member |
|
|
I have one column SL_No i have created sequence and its working fine starts from 1.2.3.4 so n so
whenever im inserting record in a new form the sequence will start fromt he next number example 5.6.7.
i want this sequence will restart from 1.2.3.4 everytime when new record instance.
how can i do this?
Regards
|
|
|
|
Re: resetting serial number [message #317190 is a reply to message #317067] |
Tue, 29 April 2008 20:41  |
 |
djmartin
Messages: 10181 Registered: March 2005 Location: Surges Bay TAS Australia
|
Senior Member Account Moderator |
|
|
Have you considered using the block property 'current_record' in the block level 'pre-insert' trigger to populate 'sno' when the user saves their data. What do you want to do with the value in 'sno' when the user updates a set of records and inserts one in the middle?
David
|
|
|