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 create an apex collection to store and loop through the values

NewApexCoderMay 29 2013 — edited May 30 2013
I couldn't find any simple example to do this
Apex 4.2

I need to create an apex collection. I have a query that returns multiple roles for a user. I need to check to see if one of my item values is within the collection but am not sure how to do so. So far I have:

begin
APEX_COLLECTION.CREATE_COLLECTION (
p_collection_name => 'ALL_ROLES');

select count(granted_role) into count from dba_role_privs where upper(grantee) = upper(:APP_USER);

end;

How would I store the query results in the collection?
This post has been answered by Anton Scheffer on May 29 2013
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 27 2013
Added on May 29 2013
10 comments
2,732 views