Dear Friends
We had created a Form in Oracle Apex using wizard . In the form there is a field name as DOCNO. for which written a script . from the interactive report whenever we open the form and press apply button it always trigger and the docno changes to next. where as we want only during insert it should create not during modify. kindly suggest.
PROCESS -> After Submit
BEGIN
select nvl(max(DOCNO),0)+1 into:P102_DOCNO FROM Department;
:P102_ADD_DATE:=TO_CHAR(SYSDATE, 'DD-MON-YYYY HH24:MI:SS');
:P102_CREATED_BY:=V('APP_USER');
END;
Sanjay