The apex_collection.create_collection_from_query_b2 API offers the option to use bind variables in the query. The p_names/p_values parameters require apex_application_global.vc_arr2. In prior releases, we used apex_util.string_to_table to pass in delimited name/value pairs but this is now marked as deprecated.
I thought apex_string.split would be a drop-in replacement for apex_util.string_to_table but the SPLIT procedure returns apex_t_varchar2 so that doesn't work.
Any ideas? Should a CAST function be used to translate between the object type and PL/SQL table type?