Component Interface


Introduction:
  1.  Component interfaces expose a PeopleSoft component for synchronous access from another application (PeopleCode, Java, C/C++, or Component Object Model [COM]).
  2. A component interface maps to one, and only one component.
  3. A component interface has only one component.
  4. A component has multiple component interfaces.

Architecture:
Ø  Every component interface has the following main attributes:
o    Name.
o    Keys: Property to retrieve and create an instance.
o    Properties and collections (fields and records).
o    Methods.
Ø  Keys:
o    Get Key: Search key of search record of under lying component.
o    Find Key: Search key and Alternate Search Key of search record of under lying component.
o    Create Key: Search key of search record of under lying component in ADD mode.
Ø  Properties:
o    Standard Properties are assigned automatically when the CI is created and can be set to true or false.  Examples include InteractiveMode, GetHistoryItems, and EditHistoryItems.
o    User-defined properties map to record fields on the component.
Ø  Collections:
o   Contains fields and subordinate scrolls as defined in the underlying component.
Ø  Methods:
o    Standard methods are those available for all CIs such as Find, Get, Save, and Cancel.
o    User-Defined methods provide added functionality to the CI.
 Creating New Component Interface:
We will create a component interface through Application Designer.

 In application designer press crtl+n, then select component interface from list and press ok.



Select the component by entering the component name.


Press yes to default the properties based on component.



 Now component interface is created.


 After creating the CI we can test it.


Before use the CI you need to provide the security in permission list level.(in permission list->component interface tab add CI and provide full access to that CI).


 Now you can test the CI using CI Tester.

 You can use the CI generated code by drag & drop the CI in any peoplecode event.

No comments:

Post a Comment