Академический Документы
Профессиональный Документы
Культура Документы
12/22/12
PeopleSoft pages.
structures and component definitions in order to access the underlying data and business logic through component interfaces.
12/22/12
12/22/12
Architecture(Contd..)
Fundamental elements to the component interface architecture.
12/22/12
Elements of ComponentInterface
Every component interface has the following four main attributes 1)Name 2)Keys GetKeys Findkeys CreateKeys Generated in CI when the Use tab on the Component Properties dialog allows the Add action
12/22/12
Elements of ComponentInterface(contd)
3) Properties and collections (fields and records) Provide access to both component data and component interface settings.
Standard properties can be set to true or false. Examples : InteractiveMode, GetHistoryItems, EditHistoryItems.
12/22/12
Userdefined methods
User-defined properties map to record fields on the PeopleSoft component and are displayed in the PeopleSoft Application Designer.
4)Methods
12/22/12
Standard methods
Standard methods are those that are available for all component interfaces. 1.Cancel: Cancels any changes made since the last save. 2.Create: Creates new instance of CI
3.Find :Performs partial key search on the particular instance of the CI using search key at level zero. 4.Get :Retrieves a particular instance of CI.
5.Save : Saves an instance of the CI. 6.GetPropertyByName:Returns the value of the property specified by name. 7.SetPropertyName: Sets the value to the property specified by name.
12/22/12
Userdefined Methods
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
The Component Interface object, instantiated from a session object, is created at runtime as a way to access the data specified &oSession = %Session; by the Component Interface. &oSIdn1Ci = &oSession.GetCompIntfc(CompIntfc.S_IDN1_CI);
12/22/12
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 methods are functions that can be called to perform operations on a Component Interface.
12/22/12
12/22/12
A component interface is a PeopleTools object that you create in Application Designer. 12/22/12
12/22/12
Variables defined at Component and Global are only for Component Interface
12/22/12
Example
In this example, you are getting an existing instance of data for the EMPL_CHECK_CI
Component Interface, which is based on the EMPL_CHECKLIST component, for the Update/Display mode.
Local ApiObject &TESTSESSION; Local ApiObject &TESTCI; &TESTSESSION = GetSession(); &TESTSESSION.Connect(1, "EXISTING", "", "", 0); &TESTCI = &TESTSESSION.GetCompIntfc(COMPINTFC.EMPL_CHECK_CI); &TESTCI.EMPLID= "8001"; &TESTCI.Get(); /* Get checklist Code */ &CHECKLIST_CD = &TESTCI.CHECKLIST_CD; /* Set Effective date */
12/22/12
12/22/12
Setting Security(contd..)
2)Application Designer To make individual property =Read Only
12/22/12
12/22/12
In noninteractive mode, if you set a property, the property is not validated until you perform the save. However, in interactive mode the property is validated immediately.
Specify whether to get or edit history items. Selecting Get History Items retrieves history data Selecting Edit History Items enables editing and saving of history data. These options apply to effective-dated fields only
12/22/12
Runtime considerations
WinMessage Unavailable
You cannot use WinMessage in a component that will be used to build a component interface. Use MsgGet() instead.
Email from a Component Interface
To use a component interface to send email, use TriggerBusinessEvent People Code event, not SendMail.
Related Display
Benefits of CI
Access to all business logic
Data relationships
Data Integrity
12/22/12
Thank you
12/22/12