20231212 - 서브밋 프로세싱 PL/SQL 에러 처리

1. 에러 메세지 수신용 아이템 생성



2. PL/SQL 실행 에러 메세지 창




3. PL/SQL 코드


declare
  e_error exception;
begin

  IF nvl(:P314_C002_CHK, 'N') = 'N' and nvl(:P314_C006_CHK, 'N') = 'N'
and nvl(:P314_C010_CHK, 'N') = 'N' and nvl(:P314_C014_CHK, 'N') = 'N'
and nvl(:P314_C018_CHK, 'N') = 'N' THEN
    apex_util.set_session_state('P314_ERROR', '체크된 처리할 대상이 없습니다.');
    raise e_error;
  END IF;
end;


4. 확인




참고

https://www.foxinfotech.org/oracle-apex-display-custom-error-messages-from-pl-sql-process

댓글 없음:

댓글 쓰기

20250315 - 글로벌 변수 Global Variables

G_USER Specifies the currently logged in user. G_FLOW_ID Specifies the ID of the currently running application. G_FLOW_STEP_ID Specifi...