Hi,
I am hitting a strange problem when using API APEX_ITEM.POPUPKEY_FROM_QUERY.
I am dynamically creating items basing on certain configurations that depend on a SELECT list where a dynamic action is defined with a refresh region (the region containing the dynamic items).
The first time you enter the page and nothing is selected, the dynamic items are not shown, which is OK. Then I select a configuration and the dynamic items are correctly "created" and displayed. Some of these items are defined as APEX_ITEM. POPUPKEY_FROM_QUERY.
If I click on one of the icons of these items to open the pop-up list, I get an empty window.
If I exit from the page and I open it again, then I click on the icon, the pop-up window correctly displays its contents.
This happens in Apex 22.1.6 (on the premises) and Apex 22.2.0 (on apex.oracle.com), both with Firefox and Chrome.
You can see yourself the problem in
https://apex.oracle.com/pls/apex/r/fc/batch-manager/
sign in as
test/testtest
click on "gestione report", then click on "eseguire un report", then pick the value "GE04 ..." from the select list then click on the icon on the second row, an empty pop-up windows should appear, then close it, exit from the page clicking on the previous level of the breadcrumb, then open the page again, this time if you click on the icon, a list of values should appear.
When you click on the icon, javascript function genList0_f03_0() is called. It seems that for some reason this function is not working properly the first time it's invoked, but there are no javascript errors logged, so, as far as I can see, the function exists and it runs, it just doesn't do what it is supposed to do, but it begins to work correctly as soon as you re-enter the page, including when you pick a different configuration and therefore you change the list of dynamic items.
Thanks
Flavio