Creating and Configuring Drop Zones
This topic provides an overview of drop zones on fluid pages and discusses how to:
Create configurable drop zones for subpages.
Note: Typically, as an Oracle customer, you can skip this step. PeopleSoft application teams have already added one or more configurable drop zones on selected fluid pages.
Create subpages for dynamic injection into drop zones.
Configure drop zones.
Configurable drop zones allow you to extend the fields that are displayed and processed on delivered fluid pages without customizing the component or fluid page definition. At design time, a placeholder subpage stub (PT_ERCSUBPAGE_STUB) is inserted into a related content group box on the fluid page definition. Typically, PeopleSoft application teams (PeopleSoft HCM, PeopleSoft FSCM, and so on), have identified which delivered fluid pages can be extended by customers and have already added one or more configurable drop zones on these fluid pages. Then, you create subpage definitions and associate your subpages to one or more drop zones. Finally, at runtime during the component build process, the configured subpage dynamically replaces the subpage stub. The records and fields defined on your subpage are loaded into the component buffer along with the records and fields from the main page definition.
The complete procedure for creating and configuring drop zones includes three tasks described within this topic:
(Optional) Creating configurable drop zones.
If you merely want to take advantage of the drop zones delivered with your PeopleSoft application, you can skip this step. Otherwise, if you want to create additional drop zones, see Creating Configurable Drop Zones for Dynamic Subpages.
Creating subpages for these drop zones.
Configuring a selected drop zone by associating a subpage to it.
Note that adding a related content group box on a fluid page creates a “drop zone.” These drop zones can be configured for two purposes:
Embedded related content only.
Embedded related content was introduced in PeopleTools 8.55. While the procedure for creating and configuring embedded related content has not changed, the group box itself is now also referred to as a drop zone. See Working with Embedded Related Content.
Dynamically injected subpages or embedded related content.
A related content group box created for dynamically injected subpages could be configured for embedded related content instead. However, both uses cannot coexist simultaneously. If a drop zone already configured with embedded related content is reconfigured with a subpage, then the embedded related content configuration is overridden. If a drop zone is already configured with a subpage, it will not be available for configuration with embedded related content.
Typically, PeopleSoft application teams have already added one or more configurable drop zones on selected fluid pages. However, in some cases, you may want to add drop zones to other fluid pages. To do so, you would follow the same steps used by PeopleSoft application development teams.
Note: Adding a drop zone to a page definition delivered by Oracle is considered a customization.
Guidelines for Creating Configurable Drop Zones for Dynamic Subpages
Adhere to the following guidelines when creating configurable drop zones for dynamic subpages:
Insert the PT_ERCSUBPAGE_STUB subpage stub (which is defined on the PeopleTools Options page).
Do not insert any other page controls within the related content group box.
If you add drop zones on subpages rather than on the main fluid page, then you must ensure that each drop zone that will be displayed on the main fluid page at runtime can be uniquely identified. The PeopleSoft system uses the combination of
occurs_lvl.RECORD_NAME.FIELD_NAME.Field_IDto identify each group box as a page record field. By associating each group box to a unique RECORD.FIELD, you will ensure that each can be uniquely identified.
Adding a Related Content Group Box for Dynamic Subpages
To add a related content group box for dynamic subpages:
Insert a group box on your fluid page in the general position you would like to display the content from the dynamic subpage.
Double-click the group box to open the Group Box Properties dialog box. Then, on the Fluid tab, set the Group Box Type to Related Content.
(Optional) Apply styling, if needed, to this group box that will only be rendered if a subpage is configured for this drop zone.
Select the Label tab and enter a descriptive label to identify this related content group box as a drop zone. This label is not rendered at runtime, but it will help at design time by:
Differentiating this drop zone from any others on the page.
Providing a label on the drop zone during fluid page preview.
Providing a label for the drop zone during the drop zone configuration task.
Associate a record field to this drop zone to ensure that it has a unique page field identifier.
Insert the PeopleTools-defined PT_ERCSUBPAGE_STUB subpage stub into the related content group box so that:
The upper left corner of the subpage is located within the group box.
The subpage is listed immediately after the group box on the Order tab for the page definition.
Important! If you insert multiple drop zones on the same page, always inspect and fix the order of group boxes and subpages on the Order tab.
Save your changes.
Considerations for Creating Dynamically Injected Subpages
Consider the following when creating subpages for dynamic injection into drop zones:
The records and fields defined on your subpage will be loaded into the component buffer along with the records and fields defined on the main page.
Multiple updatable tables are allowed at level 0.
Because your subpage is not physically added as a page control on the main page definition, you cannot perform a record name substitution (that is, identify a from record on the subpage and a to record from the main page).
Record field PeopleCode defined on your subpage will execute as part of the events in the component processor flow. If your implementation requires other scenarios or PeopleCode events, (for example, page Activate, PreBuild, PostBuild, component record, or component record field events), then you should use PeopleCode event mapping to avoid customizing delivered components and pages. See Mapping Application Class PeopleCode to Component Events for more information.
The fields from your subpage that are dynamically added to the component buffer at runtime are not available in the component’s search record.
Creating a Subpage Definition
To create a dynamic subpage definition:
In Application Designer, select File, New.
Select Page (Fluid) in the New Definition dialog box, and click OK.
Select PSL_SIMPLE_SBP to create a fluid subpage.
Click Choose and enter the page name in the Save As dialog box.
Indicate whether you’d like to save the PeopleCode associated with the layout page for your new page (Yes/No).
Note: Typically, click Yes to include any PeopleCode from the layout page.
Open the Page Properties dialog box.
On the Use tab, select Subpage to specify this as a fluid subpage.
Add page controls on your subpage definition.
Use the Configure Drop Zones component to search for, select, and configure components containing configurable drop zones.
Enter one or more search criteria or omit all criteria to return all components containing configurable drop zones.
Field or Control
Enter the definition name for the component as search criteria.
Enter the three-character market code as search criteria.
Enter the description as defined on the General tab of the Component Properties dialog box as search criteria.
Enter the definition name for an already configured subpage as search criteria.
|Object Owner ID||
Enter the object owner ID of the component as search criteria.
In the search results, click a row to configure the available drop zones for that component.
Field or Control
Displays the name of the main fluid page that contains a configurable drop zone or a subpage with a drop zone.
Note: The configurable drop zone may actually reside on a subpage that has been included in the main fluid page.
Displays the tab order number for the drop zone from the Order tab of the page definition (page or subpage) where the related content group box is physically defined.
Displays the label for the drop zone, which is derived from these values in descending order of precedence:
Important! If Dummy Name is displayed as the name of the drop zone, then the PT_ERCSUBPAGE_STUB subpage is positioned incorrectly on the page definition. In particular, check the Order tab.
|Used By Related Content||
Indicates that this drop zone has been configured for embedded related content. Reconfiguring it with a subpage overrides the embedded related content configuration.
Select a fluid subpage to associate with the drop zone.
To remove a subpage configuration, clear the Subpage Name field and save your changes.
Indicates that an existing subpage configuration has been changed.