Databases Reference
In-Depth Information
Creating the Render Function
Just like the other plug-ins, this plug-in will store its PL/SQL code in the pkg_apress_plugins package. To
start, get the region plug-in render function template and paste it into pkg_apress_plugins spec. Name
the render function as f_render_rss_reader. Your pkg_apress_plugins package specification should now
look like Figure 5-17.
Hint To get the render function spec template, click render function label and view the help file.
Figure 5-17. pkg_apress_plugins.f_render_rss_reader Package Spec
The next thing you'll need to do is register the render function with the plug-in. Edit the plug-in and
scroll down to the Callbacks region. Set the Render Function Name to
pkg_apress_plugins.f_render_rss_reader, as shown in Figure 5-18.
Figure 5-18. Region plug-in callbacks
Modify the package body for pkg_apress_plugins and add the following code at the bottom of code.
341 …
342
343 FUNCTION f_render_rss_reader(
344 p_region IN apex_plugin.t_region,
 
Search WWH ::




Custom Search