Databases Reference
In-Depth Information
The next thing that you'll need to do is create and compile an empty PL/SQL package in your
schema. This package will be used to develop the from/to date picker item plug-in and the other plug-
ins in this topic. The code for the empty package, pkg_apress_plugins , is as follows:
CREATE OR REPLACE PACKAGE pkg_apress_plugins AS
END pkg_apress_plugins;
/
CREATE OR REPLACE PACKAGE BODY pkg_apress_plugins as
END pkg_apress_plugins;
/
Note Storing the plug-in code in a package makes it easier/faster to develop. Once the plug-in is completed,
you can store the code directly in the plug-in or move to another package.
Create a page to see how the changes you make in the plug-in affect the page item. Here are the
steps to follow to do that:
1.
Create a new blank page. Number it as Page 10, and name it From/To
Date Picker.
2.
Create a new page item and select Plug-ins, as shown in Figure 3-4.
Figure 3-4.The Create Page Item wizard: Selecting the item type
 
Search WWH ::




Custom Search