Peoplesoft - Component Interface: Prasad Raju. G
Peoplesoft - Component Interface: Prasad Raju. G
Peoplesoft - Component Interface: Prasad Raju. G
Prasad Raju. G
Component Interface
Component Interface
Component Interface
When you populate a Component Interface with data, the first thing you fill
out are its keys, as you would in a component. These can be keys for getting
an existing instance of the data or for creating a new instance of the data.
Component Interface
Component Interface
In most cases, component interfaces behave exactly the same as their online
counterparts (their associated components).
This means that PeopleCode events typically fire in the same order as the
online case, and so on.
However, there are several exceptions to this behavior that relate both to
PeopleCode processing and search dialog processing.
CI Elements
PeopleSoft Application
Component Component Interface
PeopleCode
Component
Keys
Search Keys External Application
API
PeopleCode
Methods COM (VB)
Functions
C/C++
Fields and Scrolls Properties and
Collections
Elements of CI
Components
- One or more pages performing a business transaction that a component
interface is associated with.
Component Interface
- Exposed aspect of a component. However, unlike components, component
interfaces are readily accessible by internal and external applications and
multiple component interfaces can reference the same component.
Attributes of CI
- Keys
- Methods
Keys for CI
User-Defined Properties
- User-defined properties come from a component interface’s associated component,
and must be added manually.
- They are the specific record fields that you choose to expose to an external system
with the component interface.
Standard Properties
- Standard properties are common across all component interfaces and are assigned
automatically when a component interface is created.
- Standard properties also exist for each collection within a component interface.
CI : Standard Properties
CreateKeyInfoCollection
- Returns a set of items that describes the Create keys.
GetKeyInfoCollection
- Returns a set of items that describes the Get keys.
FindKeyInfoCollection
- Returns a set of items that describes the Find keys.
PropertyInfoCollection
- Returns a set of items that describes properties.
Collection
- Count
Returns the number of items in a collection
DataRow
- ItemNum
Returns the position of the row within the collection of a DataRow.
Methods
As with component interface properties, there are two main types of methods:
user-defined methods and standard methods.
User-Defined Methods
- User-defined methods are those that you can create to meet the requirements of an
individual component interface.
- A method is simply a PeopleCode function that you wish to make accessible through
the component interface.
- Each method maps to a single PeopleCode function.
- Application developer can write their own methods. These methods are written as
Functions using ComponentInterface PeopleCode. For example, suppose you
wanted to be able to copy an instance of Component Interface data.
Standard Methods
Standard methods are those that are available on all component interfaces
created as default with CI.
- Create
Creates a new instance of a component interface ( add data in the component). Equivalent to
opening a new record in Add mode online. Returns “True” on success, and “False” on failure.
- Find
Performs a partial key search for a particular instance of a component interface. Returns “True”
on success, and “False” on failure.
- Get
Retrieves a particular instance of a component interface. Equivalent to opening a record in
Update/Display or Correction mode when online with a PeopleSoft application. Returns “True”
on success, and “False” on failure.
- Save
Saves an instance of a component interface. Equivalent to clicking the Save button in the online
system.
- Cancel
Backs out of the current component interface, canceling any changes made since the last
save.Equivalent to clicking the Return to Search button online.
CI : standard methods
CopyRowset
(from PeopleCode only)
- Enables you to copy rowsets created from the message data in your component
interface.
CopyRowsetDelta
(from PeopleCode only)
- Enables you to copy only the changes created from the message data in your
component interface.
InsertItem(Index)
- Inserts a new item. Equivalent to pressing F7 to insert a new row when online. It
takes the item number as a parameter, and follows the same conventions for
executing business rules (PeopleCode) as the online system.
Item(Index)
- Takes an item number as a parameter, and returns the specified row in the collection.
ItemByKeys(keys)
- Identifies and finds a specific item based on keys. The keys will vary according to
the design of the collection.
Component Interface
Accessing CI Properties
Accessing CI Properties
Creating a CI
Implementing CI
The following are the usual actions that you perform with a Component
Interface:
- Create a new instance of data
- Get an existing instance of data
- Retrieve a list of instances of data
Session Object
1. GetCompIntfc (name )
2. Set Keys
Find() 3.
7. Cancel() Pick a
component from
the collection
4. Get() or Create()
Read Properties
5. Write Properties
Invoke Methods
Save() 6.
26 | 12/07/21 © Copyright IBM Corporation 2008
IBM Global Business Services
CI: Security
Search Init, Search Save & Rowinit Peoplecode events are not fired for CI
Thank You