Skip to Main Content

APEX

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!

How to get current object(Item/Region) name for authorization?

Saeed HassanpourMay 11 2015 — edited Nov 30 2015

Dear,

I have an application and I’d set authorization on page,region,item and so on. A page of app has two regions "R1" , "R2" and the region "R1" has several items for example "ITEM_1","ITEM_2",...

In addition I have created a function "getAuth()" that to control authorization, now I have set Authorization Scheme for "R2"  and "ITEM_1","ITEM_2" in "R1".

Authorization schemes:
Scheme Type-- PL/SQL Function Returning Boolean
return  getAuth();

----------------------body in database
function getAuth()
Is
begin
--pseudo code--
if current_item = "ITEM_1" then true;
elsif  current_item = "ITEM_2" then false;
elsif current_region = "R2" then false;
end if;
End;
---------------------------------------------

How can I get current item like "v('APP_ID')" and use it in getAuth?

Regards,

Saeed

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 28 2015
Added on May 11 2015
14 comments
4,831 views