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!

Get APP_COMPONENT_ID for a given component

Pavel_pJun 22 2017 — edited Jun 26 2017

Hi all,

since APEX 5 we have three nice variables available in authorization schemes

:APP_COMPONENT_TYPE,:APP_COMPONENT_ID, :APP_COMPONENT_NAME

which is what I've always wanted, so we can create just one very precise authorization scheme and just pass (for instance) :app_user and :app_component_id into the authorization function. The problem is that I have no idea where to comfortably and efficiently find COMPONENT_IDs. Let's say I have a page with region (any type) and a button. Where can I get their IDs? I can add debug messages into the authorization scheme like this

begin

  apex_debug.message('Evaluating component: %s %s %s',:app_component_type,:app_component_id, :app_component_name);

 

  return my_auth_pkg.user_is_authorized(:app_user,:app_component_id);

end;

apply it to my components and later check the debug trace, but this seems to be quite cumbersome.

Thanks a lot,

Pavel

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 24 2017
Added on Jun 22 2017
7 comments
3,057 views