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