Skip to Main Content

ORDS, SODA & JSON in the Database

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

APEX Listener 1.1 Important Changes to Note

Colm Divilly-OracleMar 2 2011 — edited Jun 19 2011
This post focuses on changes to existing functionality but is not a complete discussion of all changes in this release, please refer to the release notes [1] for further information.

h1. Flexible Parameter Passing

This release adds support for flexible parameter passing as described in Oracle Application Server mod_plsql User's Guide [2]. For example to invoke a procedure with the following signature:
procedure flexible_params 
     (name_array IN [array_type],
     value_array IN  [array_type]);
use a URL like the following:
http://host:port/apex/!scott.flexible_params?x=john&y=10&z=doe
h1. Resource Templates Parameter Syntax Change

In the 1.1 Early Adopter release parameters within the SQL and PL/SQL blocks were delimited with curly braces ({}). To be more consistent with SQL Plus and SQL Developer this has been changed to be delimited with a leading colon (:).

For example the following SQL in 1.1 Early Adopters Release
select 'Hello ' || {person} || ' from APEX' greeting from dual
must be changed to the following in the final 1.1 Release:
select 'Hello ' || :person || ' from APEX' greeting from dual
Note this only affects the SQL or PL/SQL parameters, the syntax for the URI Template in a resource template is unchanged, i.e. a URI Template like: hello?who={person} remains the same.

h1. Resource Templates Query Handler Response Format Change

In 1.1 Early Adopters Release the response for the following query:
select 'Hello ' || :person || ' from APEX' greeting from dual
would look like:
[
 {
  "greeting": "Hello World from APEX"
 }
]
This has changed to:
{
 "items": [
  {
   "greeting": "Hello World from APEX"
  }
 ]
}
The array of results is now wrapped in a JSON object with a single property named: {noformat}"items"{noformat} whose value is the array of results.

h2. References
[1] Apex Listener 1.1 Release Notes: http://download.oracle.com/otn/java/appexpress/1.1/docs/AELRN/E21069_01.pdf
[2] Oracle Application Server mod_plsql User's Guide: http://download.oracle.com/docs/cd/B14099_19/web.1012/b14010/concept.htm#sthref97

Edited by: Colm Divilly on Mar 2, 2011 1:39 AM

Comments

Processing
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Jul 17 2011
Added on Mar 2 2011
9 comments
941 views