Professional Documents
Culture Documents
Component Interface PeopleSoft
Component Interface 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
• Properties - fields
• Collections - Scroll
Standard properties
Test in interactive mode.
• Retrieve history items.
• Test the standard, custom, and collection
methods.
Testing the Component
Interface
Programming CI in PeopleCode
Generating a PeopleCode Template
Generate PeopleCode template
for CI
• Open the desired component interface definition
in Application Designer.
• Insert the component interface into a project.
• Save the project.
• Open the PeopleCode editor.
• You can associate component interface
PeopleCode with a record, a component, an
application message, or Application Engine.
• Select the component interface from the project
workspace.
• Drag and drop the object from the project into
the PeopleCode editor.
• Make any necessary changes to the PeopleCode
in the PeopleCode editor window.
Sample PeopleCode
•
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;