Component Interface in Peoplesoft
Component Interface in Peoplesoft
What is a CI ?
How it works ?
Why use CI ?
CI Architecture
How to create a CI ?
Setting CI security
Testing a CI
Sample PeopleCode
Building APIs
Runtime considerations
What is a Component
Interface ?
Component
Component interfaces
Collections - Scroll
Standard properties
InteractiveMode, GetHistoryItems,
and EditHistoryItems
Enabling and Disabling
Standard Methods
Creating User-Defined
Methods
Setting Component
Interface Security
Open the Permission list
Component Interface
Validating the
Component Interface
Validation ensures that a component
interface definition has not deviated
from its source component
To validate a component interface
Open the component interface in
Application Designer
Select Tools, Validate for Consistency
Keys that no longer synchronize
with their associated components are
marked with an X icon
Testing the
Component
Interface
Component Interface Tester
template
&oSession = %Session;
&oSession.PSMessagesMode = 1;
&oHcompinterface =
&oSession.GetCompIntfc(CompIntfc.HCOMPINTERFACE);
If &oHcompinterface = Null Then
errorHandler();
Exit;
End-If;
&oHcompinterface.InteractiveMode = False;
&oHcompinterface.GetHistoryItems = True;
&oHcompinterface.EditHistoryItems = False;
If Not &oHcompinterface.Get() Then
errorHandler();
Exit;
End-If;
rem <*> = &oHcompinterface.EMPLID;
rem &oHcompinterface.EMPLID = <*>;
rem <*> = &oHcompinterface.NAME;
rem &oHcompinterface.NAME = <*>;
Sample PeopleCode
template
rem &oHskillsetCollection = &oHcompinterface.HSKILLSET;
rem For &<*> = 1 To &oHskillsetCollection.Count
rem &oHskillset = &oHskillsetCollection.Item(&<*>);
rem <*> = &oHskillset.HSKILLSET;
rem &oHskillset.HSKILLSET = <*>;
rem <*> = &oHskillset.RATING_SCALE;
rem &oHskillset.RATING_SCALE = <*>;
rem End-For;