Peoplesoft Interview Questions - Component Interface
Peoplesoft Interview Questions - Component Interface
Peoplesoft Interview Questions - Component Interface
• Keys
• Methods
Get keys: - These are mapped to the fields marked as scrh in the component’s search
record. Automatically “Search key” fields in search record become Get keys.
Find keys: - 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: - It is generated from the key fields for the search record. If Add search
record is present then its key fields are taken. We cannot change it.
4) What the steps that you need to do in people code to invoke Component Interface?
&Session = GetSession();
&CI = &Session.GetcompIntfc(CompIntfc.INTERFACE_NAME)
&CI.KEY_FILED_NAME = ‘NEW’
Else
End-if;
Else
End-if;
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 messge.
Function CheckErrorCodes()
&PSMessages = &Session.PSMessages;
&ErrorCount = &PSMessages.Count;
&ErrorText = &PSMessages.Item(&i).Text;
&ErrorType = &PSMessages.Item(&i).Type;
End-For;
End-Function;
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.
Findkeyinfocollection
EditHistory Items
InteractiveMode.
COLL_JOB – Collection
&COLL_JOBCol = &CI_JOB_DATA.COLL_JOB;
&COLL_JOB_JRCol = &COLL_JOBItm.COLL_JOB_JR;
Get History Items and Edit History items property to should be set to true.
Get History Items alone: - Update display all - modes will be used.