Dynamic Action Using PLSQL In Oracle Apex
Dynamic Action Using PLSQL In Oracle Apex
Topic Introduction: Here we will show the example of Dynamic Action Using PLSQL In Oracle Apex.
Example#1
DECLAREv_link NUMBER;v_existlink NUMBER;BEGINBEGINSELECT LINKIDINTO v_existlinkFROM GL_ACC_CODEWHERE USER_ACC_CODE = :P505_USER_ACC_CODE;EXCEPTIONWHEN NO_DATA_FOUND THEN NULL;WHEN OTHERS THEN NULL;END;IF :P505_SUBSIDIARY_STATUS IS NOT NULL AND :P505_LINKID IS NULLTHENSELECT NVL (MAX (TO_NUMBER (LINKID)), 0) + 1 VINTO v_linkFROM GL_ACC_CODE;:P505_LINKID := NVL (v_existlink, v_link);ELSE:P505_LINKID := NULL;END IF;EXCEPTIONWHEN NO_DATA_FOUND THEN NULL;WHEN OTHERS THEN NULL;END;
No comments