0

我在第一次加载文件上传时遇到问题。这根本不加载第一个选项。我正在测试https://apex.oracle.com/pls/apex/f?p=65673:3用户和密码测试。我创建了一个空白页面,其中包含一个 file_browse 字段、P3_ARQUIVO 和一个用于显示临时文件加载结果的 IR 区域。在 :P3_ARQUIVO 上将存储类型配置为 apex_application_temp_files。由于会话没有捕获 file_browse 字段的值,我将提交创建过程更改为在带有 created_by 参数的表上插入多个加载操作。这工作正常。但是文件浏览的问题,它不加载第一个动作。

有人可以帮忙吗?

下面的这个脚本仅用于分析和审查。它工作正常,创建按钮动态动作:

declare
    CURSOR cursorArquivos is 
    select filename AS FILENAME,mime_Type AS MIME_TYPE, last_updated as LAST_UPDATED, blob_content as BLOB_CONTENT 
from apex_application_files
where CREATED_BY = :APP_USER; 
    linhaArquivos cursorArquivos%rowtype;
begin



      OPEN cursorArquivos;
         LOOP
          FETCH cursorArquivos INTO linhaArquivos;
           EXIT WHEN cursorArquivos%NOTFOUND ;
             insert into TESTE (CAMPOA, CAMPOB, CAMPOG, CAMPOH) values (linhaArquivos.filename, linhaArquivos.mime_Type,linhaArquivos.LAST_UPDATED, linhaArquivos.blob_content);
          END LOOP ;

       CLOSE cursorArquivos;
       delete from apex_application_files
where CREATED_BY = :APP_USER;

     COMMIT;

     EXCEPTION WHEN NO_DATA_FOUND THEN
         NULL;
end;
4

0 回答 0