Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Oracle Apex Create Record using Query

SANPATJun 30 2022

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

This post has been answered by fac586 on Jun 30 2022
Jump to Answer

Comments

Post Details

Added on Jun 30 2022
3 comments
350 views