Friday, 21 September 2012

Importing And Using Plug-In

                                                    Plug-Ins allow for the Application Express framework to be readily extended with custom item types, region types, application processes and Dynamic Actions. Once defined, plug-in based components are created and maintained very much like standard Application Express components. Plug-ins enable developers to create highly customized components to enhance the functionality, appearance and user friendliness of their applications.
                                                   In this topic, you import the slider plug-in and then use it for the Salary page item in your form.
    Click the Shared Components icon in the upper right area of the window..
    Under User Interface, click Plug-ins.
    You want to import the file with the slider plugin. Click Import.
    Click Browse....
    Navigate to the /home/oracle/Desktop/solutions/apexp2_lab directory and select the item_type_plugin_com_oracle_slider.sql file and click Open.
    Click Next.
    Click Next.
    Make sure your Project Tasks Application is selected for Install Into Application and click Install Plug-in.
    The Plug-in was installed successfully. You want to edit your page to use the plug-in. Click the Edit Page 2 icon.
    Double-click the P2_SALARY page item.
    Change Display As to Slider (Plug-in).
    Click the Settings subtab.
    This section is specific to the Slider Plug-in. Set the Maximum Value to 50000 and the Step to 100 and click Apply Changes.
    Click Run.
    Notice that you now see the Slider for the Salary page item. Move the slider to a slightly bigger value. The salary will change as you slide it.
    Click the Application button in the Developer Toolbar. In the next topic, you create a tabular form.

No comments:

Post a Comment