Component Interface - Peoplesoft Interview Questions
Component Interface - Peoplesoft Interview Questions
Get keys:
1. These are mapped to the fields marked as Scrh in the component’s search record.
2. Automatically “Search key” fields in search record become Get keys.
3. We cannot change it.
Find keys:
1. These are mapped to fields marked as Alt or Srch in the component search record. You may
remove Find keys that you do not wish to make available for searching.
Create Keys:
1. It is generated from the key fields for the search record. If Add search record is present then
its key fields are taken.
2. We cannot change it.
4) What the steps that you need to do in people code to invoke Component Interface?
- Establish a user section
- Get the component interface definition
- Populate the create keys
- Create an instance of the component interface
- Populate the required fields
- Save the component Interface.
&Session = GetSession();
&CI = &Session.GetcompIntfc(CompIntfc.INTERFACE_NAME)
&CI.KEY_FILED_NAME = ‘NEW’
If not &CI.Create () Then
Else
Populate other fields
End-if;
6) Catching error message in the component Interface? Or Use of PSMessages in the CI?
This function needs to be called when ever methods like Find, Save, Create methods return false.
Error text and Error type can be printed in the log message for any other action in to the log message.
Function CheckErrorCodes()
&PSMessages = &Session.PSMessages;
&ErrorCount = &PSMessages.Count;
Methods: A method is an object that performs a very specific function on a component interface at
run-time.
Standard methods and user-defined methods:
1. Standard methods: Automatically generated upon the creation of a new component Interface in
Application.
Apart from the Standard methods there are Standard methods available for the use with any
collection.
User-Defined methods: User-defined methods are those that you can create to meet the
requirements of an individual component interface.
The Fields in the level 0 in the component are the properties of the component.
COLL_JOB – Collection
Coll_JOBItm – Row in the collection.
&COLL_JOBCol = &CI_JOB_DATA.COLL_JOB;
For &i = 1 to &COLL_JOBCol.Count
&COLL_JOBItm = &COLL_JOBCol.Item (&i);
&COLL_JOB_JRCol = &COLL_JOBItm.COLL_JOB_JR;
For &J = 1 to &COLL_JOB_JRCol.Count
&COLL_JOB_JRItm = &COLL_JOB_JRCol.Item (&j);
&COLL_JOB_JRItm.KEYPROP_EFFDT =;