I am having an issue with Oracle ApEx Collections and unsure why I am not seeing the results that I thought I would.
Firstly, I am using Oracle ApEx v3.0
I basically have the following setup as described in this example with regards to preserving checkboxes from Joel Kallman, i.e.:
http://joelkallman.blogspot.com.au/2008_03_01_archive.html
Th describe my scenario, I resent the user with a list of records by where they select any number of checkboxes, using Joel's example, the records selected are stored within the apex collection 'EMP_COLLECTION'.
Now all this seems to be storing correctly within the 'EMP_COLLECTION' but when I attempt to access these stored values from within the collection, within the PL/SQL region that is a jQuery UI dialog, I can't seem to obtain the values.
Now the page has not been submitted at this point. So when the user selects a number of checkboxes that are being ajax stored in the backend into the 'EMP_COLLECTION', the user then presses a button that calls a javascript function that basically performs a .dialog('open')
call, which all works fine.
This then calls my PL/SQL region block where in the Region Header
, I have defined the following:
<div id="dialog-1up-br" title="Requests - No Email Address"><img src="#WORKSPACE_IMAGES#info.gif" height="30" width="30"/>
Please Note: You are receiving this notification as a valid email address is not available for: <br/><br/>
My region source for this PL/SQL Region block is:
BEGIN
htp.p('<ul>');
FOR i_rec IN ( SELECT a.c001 staff_id
FROM apex_collections a
WHERE a.collection_name = 'EMP_COLLECTION') LOOP
htp.p('<li>'||i_rec.staff_id ||'</li>');
END LOOP;
htp.p('</ul>');
END;
So based on this info above, when my jQuery UI Dialog box appears based on this PL/SQL Region, my region header info appears correctly but nothing appears below it, based on my region source PL/SQL?
Is it because I have not actually submitted my page as I can see my collection within my session variables and it has the correct info?