Showing posts with label Component Interface. Show all posts
Showing posts with label Component Interface. Show all posts

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.

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

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.

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. 

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 (PeopleCode, Java, C/C++, or Component Object Model [COM]). 

Which are standard properties when a Component Interface (CI) is created?

InteractiveMode, GetHistoryItems, and EditHistoryItems

What is component Interface meant for?

 It is an integration tool which is used to integrate peoplesoft component from one application to another application.The application can be another peoplesoft application or third party application (c/c++,java).

In data upload using CI, How to enable it to run next row of data when error occur. For example, 10 transactions required to upload to job record, error occur at 3rd row data, How to make it execute 4th, 5th row data?

This can be achieved by adding the try catch block to catch the exception in the peoplecode. You can catch the exception and do desired processing or log the error. 

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.

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

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.          

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 

Catching error message in the component Interface?

       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;

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 

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.
 
 rem Establishing Session;
&objSession = GetSession();

rem Get CI;
&CI = &objSession.GetcompIntfc(CompIntfc.INTERFACE_NAME);

rem Populate create keys;
&CI.KEY_FILED_NAME = ‘NEW’;


If not &CI.Create () Then
Else
 rem Populate other fields;
End-if;

 rem Populate the other fields;

rem Save CI;
If not &CI.Save () Then
Else

End-if;

How do you provide security for the component interface?

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. 

What are the main elements in the component Interface ?

The main elements of a CI are

1. CI Name
2. CI Keys
   a. Get Keys
   b. Find Keys
   c. Create Keys
3. Properties
4. Collections
5. Methods
  a. Standard Methods
  b. User defined Methods

What delivered role / permission gives access to all the delivered CIs?

You can use the delivered permission list ALLPAGES.

What underlying tables define security access to Component Interfaces?

The association between a permission list (CLASSID) and a component interface (BCNAME) is stored in the PeopleTools table PSAUTHBUSCOMP.

My PeopleCode didn't update the value of a field. Why not?

Check that the field is actually in your component interface. Also make sure that the field properties are not set to Read Only Access. (double click on the field in the component interface).