diff --git a/item/item_type_plugin_item_template.sql b/item/item_type_plugin_item_template.sql index c622b8f..da5cb42 100644 --- a/item/item_type_plugin_item_template.sql +++ b/item/item_type_plugin_item_template.sql @@ -50,7 +50,17 @@ wwv_flow_api.create_plugin( ' l_html_string VARCHAR2(2000);', ' l_element_item_id VARCHAR2(200);', ' --', -'BEGIN', +'BEGIN', +' -- pass debug information to APEX framework', +' if apex_application.g_debug then', +' apex_plugin_util.debug_page_item (', +' p_plugin => p_plugin,', +' p_page_item => p_item,', +' p_value => p_value,', +' p_is_readonly => p_is_readonly,', +' p_is_printer_friendly => p_is_printer_friendly );', +' end if;', +' --', ' -- printer friendly display', ' IF p_is_printer_friendly THEN', ' apex_plugin_util.print_display_only(p_item_name => p_item.name,', diff --git a/item/render_item.sql b/item/render_item.sql index a7d49a5..5bbeeeb 100644 --- a/item/render_item.sql +++ b/item/render_item.sql @@ -14,7 +14,17 @@ FUNCTION render_item(p_item IN apex_plugin.t_page_item, l_html_string VARCHAR2(2000); l_element_item_id VARCHAR2(200); -- -BEGIN +BEGIN + -- pass debug information to APEX framework + if apex_application.g_debug then + apex_plugin_util.debug_page_item ( + p_plugin => p_plugin, + p_page_item => p_item, + p_value => p_value, + p_is_readonly => p_is_readonly, + p_is_printer_friendly => p_is_printer_friendly ); + end if; + -- -- printer friendly display IF p_is_printer_friendly THEN apex_plugin_util.print_display_only(p_item_name => p_item.name, @@ -75,4 +85,4 @@ BEGIN l_result.is_navigable := TRUE; RETURN l_result; -- -END render_item; \ No newline at end of file +END render_item;