So basically i would like to have a custom printing process from my IG, that prints data based on the selected Saved Report from the built in report list. (no, the built in printing method, does not cut it)
So im using this built in process for printing:
apex_region.export_data (
p_format => 'csv',
p_page_id => :APP_PAGE_ID,
p_region_id => v_region_id,
p_component_id => ?????);
The problem is that i cant get the component id to print the data, if i get rid of the component parameter it works fine, but it only prints the primary riport.
I tried to get the value via dynamic action JS code, but im not expert in JS so i failed badly.
You can get the component id from the APEX view apex_appl_page_ig_rpts.
A simple example: