Oracle APEX 21.1.7 is used with an Interactive Report. APEX_ITEM.DATE_POPUP2 is implemented to select a date per row, with values sourced from a collection on both pages. Execution raises an error on one page, while the same implementation with collection-based values works correctly on another page.
APEX_ITEM.DATE_POPUP2(
p_idx => 5,
p_value => d001,
p_date_format => 'DD-mon-YYYY',
p_item_id => 'f02_' || seq_id,
p_default_value => sysdate,
p_size => 10,
p_attributes => 'onChange="handleRow(this,'|| seq_id ||');" class="REG-clearance_date"'
) AS BAD_CLEARANCE_DATE,
Uncaught TypeError: apex.widget.datepicker is not a function
at <anonymous>:2:25
at <anonymous>:2:476
at b (desktop_all.min.js?v=21.1.7:2:839)
at Pe (desktop_all.min.js?v=21.1.7:2:48536)
at S.fn.init.append (desktop_all.min.js?v=21.1.7:2:49887)
at S.fn.init.<anonymous> (desktop_all.min.js?v=21.1.7:2:50979)
at $ (desktop_all.min.js?v=21.1.7:2:32392)
at S.fn.init.html (desktop_all.min.js?v=21.1.7:2:50657)
at Object.success [as callback] (widget.interactiveReport.min.js?v=21.1.7:1:25182)
at desktop_all.min.js?v=21.1.7:13:9848