You are on page 1of 3

COMPONENT INTERFACE 1) What is Component Interface meant for?

It enables synchronous access to a PeopleSoft component from another application (third party application like Java, C++,COM etc) including all business rules and data. 2. What are the main elements (attributes) in the Component Interface? Main elements of Component Interface: Component Interface name Keys Properties and collections Methods 3. What are the standard properties when a Component Interface is created? Standard properties of CI are: Interactive mode Get History Items Edit History Item 4. Can we map more than one component at a time from the CI ? No, A Component Interface can be mapped to only one component, but one component can be mapped to multiple CIs. 5. Explain what are the various steps that describe the People Code logic while implementing a Component Interface? 1. 2. 3. 4. 5. 6. Establish a user session Get the Component Interface Populate the Create Keys CREATE an Instance of the CI Populate the required fields Save the CI .

6. 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. 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. 7. Which KEYS are mapped as find keys for a Component Interface? Search key and alternate search key. 8. How do you login in correction mode in the Component Interface? Get History Items and Edit History items property should be set to true.

9. If you are PS developer then in what scenarios Component Interface will have advantages over component? A component exposes your pages to PeopleSoft only. Moreover it helps us to define common properties for a set of related pages. A Component Interface is a set of application programming interfaces (APIs) that you can use to access and modify PeopleSoft database information programmatically. PeopleSoft Component Interfaces expose a PeopleSoft component (a set of pages grouped for a business purpose) for synchronous access from another application (People Code, Java, C/C++, or Component Object Model [COM]). 10. What happens when a Component Interface is created on component that has add Action enabled? Create method and create keys are created. The create method will not be present if the Add mode for the Component is not enabled. 11. Can we create get and find keys manually? No, these keys are created based on the search record definition for the underlying component. 12) 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. 13) 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 14) 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. 15) Difference between Get keys, find keys and Create Keys? Get keys: - These are mapped to the fields marked as scrh in the components search record. Automaticall y Search key fields in search record become Get keys.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. We cannot change it.

16) 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 messge. 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; 17) Explain the inheritance principle? Inheritance is the process of basing one class on another. In this process, a baseclass provides methods, properties, and other members to a derived class. The advantage of inheritance is that you can write and maintain code once it is in the base class and reuse it over and over in the derived classes. 18) With reference to the Component Interface Tester which of the following is NOT TRUE? GetExisting option is equivalent to opening a record in Update/Display Mode only 19) Which of the following is NOT TRUE in Component Interface (CI) Architecture? A component interface can be mapped to multiple PeopleSoft components 20) Which of the following are TRUE when a Component Interface (CI) is created on component that has Add action enabled? Get keys, Create keys and Find keys gets created automaticallyThe Create method is created alongwith the other Standard methods for the CI