在自定义应用程序中使用Apex核心功能

时间:2018-01-08 15:43:09

标签: oracle-apex oracle-apex-5 oracle-apex-5.1

我想在自定义应用程序中使用Oracle Apex 5.1 IDE查询生成器。跟踪URL调用时,看起来下面调用了以下对象。有没有人知道是否有可以从Apex IDE导出并导入自定义应用程序的查询生成器组件,或者是否有办法根据下面的URL复制功能?感谢任何想法/帮助 - 谢谢!

申请:4500 页面:1002

.0.0.1:8080/apex/f?p=4500:1002:2195359818348::NO::: 
.0.0.1:8080/i/app_ui/css/Core.min.css?v=5.1.3.00.05
.0.0.1:8080/i/app_ui/css/Theme-Standard.min.css?v=5.1.3.00.05 
.0.0.1:8080/i/css/apex_builder.min.css?v=5.1.3.00.05
.0.0.1:8080/i/css/apex_ui.min.css?v=5.1.3.00.05"
.0.0.1:8080/i/apex_ui/css/Core.min.css?v=5.1.3.00.05
.0.0.1:8080/i/apex_ui/css/Theme-Standard.min.css?v=5.1.3.00.05
.0.0.1:8080/i/libraries/jquery/2.2.3/jquery-2.2.3.min.js?v=5.1.3.00.05
.0.0.1:8080/i/libraries/apex/minified/desktop.min.js?v=5.1.3.00.05
.0.0.1:8080/apex/wwv_flow.js_messages?p_app_id=4500^&p_lang=en^&p_version=5.1.3.00.05-474390
.0.0.1:8080/i/libraries/apex/minified/legacy.min.js?v=5.1.3.00.05
.0.0.1:8080/i/apex_ui/js/minified/builder_all.min.js?v=5.1.3.00.05
.0.0.1:8080/i/qb/drag.png
.0.0.1:8080/i/green_arrow_up.gif
.0.0.1:8080/i/green_arrow_down.gif" 
.0.0.1:8080/i/delete.gif
.0.0.1:8080/i/qb/qb_core.js?v=5.1.3.00.05
.0.0.1:8080/apex/f?p=4500:0:2195359818348:APPLICATION_PROCESS=qb_get_saved_query" 
.0.0.1:8080/apex/f?p=4500:1002:2195359818348::NO:::
.0.0.1:8080/i/libraries/apex/minified/interactiveGrid.min.js?v=5.1.3.00.05" -H "Referer: .0.0.1:8080/apex/f?p=4500:1002:2195359818348::NO:::" 

2 个答案:

答案 0 :(得分:0)

简答:否。答案很长:具有/apex/f?p=4500格式的URL是对名为P的PL / SQL过程的调用,该过程是专有的Oracle代码。

SQL> describe apex_050100.p
PROCEDURE apex_050100.p
 Argument Name                  Type                    In/Out Default?
 ------------------------------ ----------------------- ------ --------
 N                              VARCHAR2                IN     DEFAULT
 P_MIME_TYPE                    VARCHAR2                IN     DEFAULT
 P_INLINE                       VARCHAR2                IN     DEFAULT

所以示例中的网址

 .0.0.1:8080/apex/f?p=4500:0:2195359818348:APPLICATION_PROCESS=qb_get_saved_query"

调用程序

apex_050100.p('4500:0:2195359818348:APPLICATION_PROCESS=qb_get_saved_query"'

如果你试图获得程序的定义,你会看到它被包装(加密):

SQL> select dbms_metadata.get_ddl('PROCEDURE', 'P', 'APEX_050100') from dual;


DBMS_METADATA.GET_DDL('PROCEDURE','P','APEX_050100')
--------------------------------------------------------------------------------

  CREATE OR REPLACE NONEDITIONABLE PROCEDURE "APEX_050100"."P" wrapped
a000000
1
abcd
....
abcd
abcd
abcd
abcd
7
1df 148
PySktRSwPuir/a3q2cinKtaJ5KMwg2Npr+UVfC/PwT+VGYOsXY9cjpuK37IUBcgap0GspV2o
MBYc5D8Lun4oGFvBS5Hf2UeKq7q7LRFW5iiIL0fINltI/pTE9hZLXfCbZ/AJCjYi3TZiKjma
iOTy6fHxRrvCGsOwyB2/+gzkUcgh7IVl0RtVj5m85uztTMFUQ7KCkwUc5ib83xbcrJW8gKQh
e8ZEyd5ySMbZOpbSxrVeV0xk3kEgyZRtvC0hKsgYfVf3LSINDCZ8EThYZyQvhfGVvER+v2cK
XT2ohnKs0RfogrIdhtrJEhp8E0/aB2wX1g== 
....

答案 1 :(得分:0)

您可以将应用程序从APEX_INSTALLATION_ARCHIVE \ apex \ builder \ f4500.sql导入到您自己的工作区中,然后检查第1002页。