我有交互式网格:
SELECT INVOICE_ID,
LINE_NUMBER,
LINE_TYPE_LOOKUP_CODE,
DESCRIPTION,
QUANTITY_INVOICED,
UNIT_PRICE,
AMOUNT, '...' FROM APPS.SBS_AP_INVOICE_LINES_ALL
WHERE INVOICE_ID = :P23_INVOICE_ID
并且我有要插入的自定义pl sql代码:
DECLARE
P_ORG_ID NUMBER;
P_SET_BOOKS NUMBER;
BEGIN
--ORG ID
SELECT ORG_ID
INTO P_ORG_ID FROM APPS.SBS_AP_INVOICES_ALL
WHERE INVOICE_ID = :INVOICE_ID;
--SET BOOKS ID
SELECT SET_OF_BOOKS_ID
INTO P_SET_BOOKS FROM APPS.SBS_AP_INVOICES_ALL
WHERE INVOICE_ID = :INVOICE_ID;
case :APEX$ROW_STATUS
when 'C' then
insert into APPS.SBS_AP_INVOICE_LINES_ALL (
INVOICE_ID,
LINE_NUMBER,
LINE_TYPE_LOOKUP_CODE,
DESCRIPTION,
QUANTITY_INVOICED,
UNIT_PRICE,
AMOUNT, ORG_ID, SET_OF_BOOKS_ID, ACCOUNTING_DATE,
CREATION_DATE, LAST_UPDATE_DATE, PROCESS_FLAG
)
values (
:INVOICE_ID ,
:LINE_NUMBER,
:LINE_TYPE_LOOKUP_CODE,
:DESCRIPTION,
:QUANTITY_INVOICED,
:UNIT_PRICE,
:AMOUNT, P_ORG_ID, P_SET_BOOKS, SYSDATE, SYSDATE, SYSDATE, 'N'
)
returning rowid into :ROWID;
end case;
END;
当我插入一条记录时,我收到以下消息:
Ajax调用返回了服务器错误ORA-01403:未找到有关的数据。
数据已插入,但是要可视化新记录,我必须刷新页面。
有人知道为什么要发送消息以及如何解决吗?