Creating controls and binding with PeopleSoft SDOs

Use JavaServer Faces controls to bind PeopleSoft SDOs.

After the SDO data objects are created for the Faces JSP page, they are ready to be bound with JSF controls. The easiest way to create the UI is by dragging and dropping the SDO data object from the "Page Data" view.

SDO Data Objects Created for Different Types of Mediators

For each WPAI mediator, one or two SDO data objects are created. Please refer to the table below to find out how many SDO data objects will be created:

SDO Mediator Type Action Number of SDO Data Objects Created
PeopleSoft record retrieve with or without filter criteria 2
update or create 2
PeopleSoft record list retrieve with or without filter criteria 2
When there are two SDO data objects, one is for the parameters and the other is for the results. You can drag and drop them from the Page Data view to the Faces JSP page to create and bind with UI controls.

It is not always necessary to create UI for the parameters data object when it already contains initial values, which are calculated from the metadata. An example is when in the PeopleSoft wizards you have already configured filter criteria for the record or record list mediators, in which case the parameters SDO data object will be populated with the data in the filter criteria. On the other hand, you can still create an input form for the parameters SDO data object to populate it with data collected from the users and override the initial values.

Creating JSF UI by Dragging and Dropping the SDO Data Objects

  1. In the Page Data view, expand the top level data node corresponding to the SDO mediator, to reveal the SDO data objects.
  2. Drag and drop the SDO data object to the Faces JSP page and release at the desired location. A dialog box will appear that allows you to choose the following:
    • If you dropped an SDO that represents input parameters to the function, then select the radio button labeled "Creating a new record."
    • If you dropped an SDO that represents output parameters from the function, click the radio button labeled "Display an existing record."
  3. Based on the corresponding SDO data object field's data type, determine what type of controls to create. For instance, for a boolean type a check box control is more suitable than a text input field.
  4. Click "OK" to confirm the UI creation.
Related concepts
SAP data access
Siebel data access
Related tasks
Adding Siebel service data objects

(C) Copyright IBM Corporation 2002, 2005. All Rights Reserved.