Component Interface - Peoplesoft Interview Questions

1) What are the main elements in the component Interface? 1. 2. 3. 4. 5. Main elements of component Interface Component interface name Keys Properties and collections 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: 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. 2. We cannot change it.  1. 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

Function CheckErrorCodes() &PSMessages = &Session. For &i = 1 to &COLL_JOBCol. 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. User-Defined methods: User-defined methods are those that you can create to meet the requirements of an individual component interface.KEYPROP_EFFDT =. &COLL_JOBCol = &CI_JOB_DATA. For &i = 1 To &ErrorCount &ErrorText = &PSMessages. End-Function. For &J = 1 to &COLL_JOB_JRCol. &COLL_JOB_JRCol = &COLL_JOBItm. End-For. Standard methods and user-defined methods: 1.Count &COLL_JOB_JRItm = &COLL_JOB_JRCol. Error text and Error type can be printed in the log message for any other action in to the log message.Count &COLL_JOBItm = &COLL_JOBCol.Count.COLL_JOB_JR. 8) What are properties? The Fields in the level 0 in the component are the properties of the component. Apart from the Standard methods there are Standard methods available for the use with any collection.Text. 10) How do you login in correction mode in the Component Interface? . Save. &COLL_JOB_JRItm.Type. &ErrorType = &PSMessages.Item (&i). Create methods return false.COLL_JOB.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.Item(&i). &ErrorCount = &PSMessages.PSMessages.Item(&i).Item (&j). Standard properties User-Defined properties Createkeyinfocollection Developer can further control the exposed Getkeyinfocollection field properties. Standard methods: Automatically generated upon the creation of a new component Interface in Application. 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.

Get History Items alone: .modes will be used.Get History Items and Edit History items property to should be set to true.Update display all . .