0% found this document useful (0 votes)
141 views

Component Interface - Peoplesoft Interview Questions

The document discusses component interfaces in PeopleSoft. It provides details on: 1. The main elements of a component interface include its name, keys, properties, collections, and methods. 2. The differences between get keys, find keys, and create keys relate to how they map to fields in the component's search record and whether they can be changed. 3. Security for a component interface is provided by adding permissions for standard methods like get, create, save, and cancel on the component interface tab in the permission list.

Uploaded by

alokkumarverma
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
141 views

Component Interface - Peoplesoft Interview Questions

The document discusses component interfaces in PeopleSoft. It provides details on: 1. The main elements of a component interface include its name, keys, properties, collections, and methods. 2. The differences between get keys, find keys, and create keys relate to how they map to fields in the component's search record and whether they can be changed. 3. Security for a component interface is provided by adding permissions for standard methods like get, create, save, and cancel on the component interface tab in the permission list.

Uploaded by

alokkumarverma
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

Component Interface - Peoplesoft Interview Questions

1) What are the main elements in the component Interface?

1. Main elements of component Interface


2. Component interface name
3. Keys
4. Properties and collections
5. Methods

2) Difference between Get keys, find keys and Create Keys?

 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.

3) How do you provide security for the component interface?

- Open the Permission list .


- On the Component Interface tab - Add row and select the newly created Component Interface
- Edit the permissions to give permission for the standard methods
- Get, Create, Save, cancel, find.

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;

Populate the other fields


If not &CI.Save () Then
Else
End-if;

5) How do you test Component Interface?

- Using the Component Interface tester


- Give values in the tester for options
- Get Existing, Create new, Find and perform the operation from the CI Tester

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;

For &i = 1 To &ErrorCount


&ErrorText = &PSMessages.Item(&i).Text;
&ErrorType = &PSMessages.Item(&i).Type;
End-For;
End-Function;

7) What is method? What are the different types of method?

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.

8) What are properties?

The Fields in the level 0 in the component are the properties of the component.

Standard properties User-Defined properties


Createkeyinfocollection Developer can further control the exposed
Getkeyinfocollection field properties.
Findkeyinfocollection
Property Info collection
GetHistoryItems (Update/Display mode or Correction mode)
EditHistory Items
InteractiveMode.

9) Traversing the Collections in the Component Interface?

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 =;

10) How do you login in correction mode in the Component Interface?


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.

You might also like