Experts... Help, please

I have a table block with two fields.
1 = SERIAL_NUM WHO
2 = NOM_ELEMENT

as this scheme
-------------------------------------------------
SERIAL NUMBER | NAME OF THE ELEMENT
-------------------------------------------------
1. PAPER
2. PEN
3. MARKER
4. HIGHLIGHTER

Serial number is a display element and cursor can not settle there, but the other field is text element.
I want that I enter a value field the serial number field must obtain a serial number for the line.
as I entered PAPER in the field of serial number nom_element should get 1 for this first line.
as I enter PEN in the field of serial number nom_element should get 2 for this second row.
as I enter the MARKER in the field of serial number nom_element must get 3 for this third row.
In short, it must generate the serial number for the lines automatically.

When-validate-record

: series: =: system.cursor_record;

Kind regards
Wael Amar

Tags: Oracle Development

Similar Questions

Maybe you are looking for