Académique Documents
Professionnel Documents
Culture Documents
SQR Debugger
Send email request to EIStar@cc.admin.unt.edu Include the UNT decal of your computer workstation, please.
Agenda
What
is a Component Interface? Why would I want to use a CI? Component Interface Architecture Programming CI in PeopleCode Using the Excel to CI Utility
What is a CI?
A component interface (CI) enables exposure of a PeopleSoft component (a set of pages grouped together for a business purpose) for synchronous access from another application -- such as PeopleCode, Java, C/C++, COM, or XML.
What is a CI?
Component interfaces can be viewed as "black boxes" that encapsulate PeopleSoft data and business processes, and hide the details of the underlying page and data.
What is a CI?
A
CI maps to one, and only one, PeopleSoft component. CIs are created in Application Designer. Record fields on the component are mapped to the keys and properties of the CI. Methods are used to find, create, modify, or delete data.
Lets suppose that we need a way to add email addresses for employees in a batch mode.
PeopleCode behind the EMAIL_ADDRESSES record does some editing (SaveEdit event) Back
Doing a straight SQL insert or update would not validate the email address formatallowing bad data into the database. Using a CI, the underlying edits would be performed!
(get keys, create keys, and find keys) Properties and collections (fields and records) Methods
Name
Each CI requires a unique name that is specified when the CI is created. The calling program uses the name of the CI to access properties and methods.
Keys
Keys
are special properties containing values that retrieve an instance (get keys) or a list of instances (find keys) of the CI. Get and find keys are based on the search record definition for the underlying component. Create keys are included for components that have the Add action enabled.
Keys
Properties
Standard
properties are assigned automatically when the CI is created and can be set to true or false. Examples include InteractiveMode, GetHistoryItems, and EditHistoryItems. User-defined properties map to record fields on the component. You have control over which user-defined properties are included in the CI.
Properties
Collections
A
special type of property that corresponds to a scroll. Contains fields and subordinate scrolls as defined in the underlying component.
Underlying Component
Methods
A
function that performs a specific task on a CI at runtime. Standard methods are those available for all CIs such as Find, Get, Save, and Cancel. User-defined methods provide added functionality to the CI. These methods are functions that are made accessible through the CI. Each function maps to a user-defined method.
Methods
Programming CI in PeopleCode
PeopleCode events and functions that relate exclusively to GUI and online processing cannot be used by CI. These include:
Search
dialog processing Menu PeopleCode and pop-up menus Transfers between components DoSave() and DoSaveNow()
Programming CI in PeopleCode
Application
Designer can generate a template in the form of boilerplate PeopleCode that you can adapt to your purposes. Application Designer also provides a built-in function that allows you to test the CI.
to upload data from Microsoft Excel into a PeopleSoft database. A template is used to create worksheets that are specific to the business logic that you need to use when you are uploading data.
Visual Basic and a DOM (Document Object Model) structure to submit data to a CI where all necessary PeopleCode events and field-level edits occur. Based on results from saving the CI, another DOM is created that returns success, warnings, and/or errors to the Excel document. Records in error can be corrected and resubmitted.
Workshop Tomorrow
For more information on this topic, sign up for one of the workshops to be held tomorrow 9:00 am 12:00 pm (full) 1:00 pm 4:00 pm (2 spots available) RP - EIS Training Room 1
The
End