PeopleCode

  Home  Management  PeopleCode


“PeopleCode guideline for job interview preparation. Explore list of PeopleCode frequently asked questions(FAQs) asked in number of PeopleCode interviews. Post your comments as your suggestions, questions and answers on any PeopleCode Interview Question or answer. Ask PeopleCode Question, your question will be answered by our fellow friends.”



19 PeopleCode Questions And Answers

2⟩ What is Component Processor?

The Component Processor is the PeopleTools runtime engine that controls processing of an application from the time that a user requests a component from an application menu until the database is updated and processing of the component is complete.

 207 views

3⟩ Explain few peoplecode functions you worked with?

Component Buffer consists of rows of buffer fields that hold data for the records associated with the page including primary scrolls, derived work records etc.

I have worked with fieldedit ,fieldchange, dosave(), dosavenow(),SQLexec() and savepostchg......

 189 views

4⟩ Can you explain about component Buffer?

When you open any page in a component, the system retrieves all of the data records for the entire component and stores them in one set of record buffers, organized by scroll level and then by page level. This component buffer consists of rows of buffer fields that hold data for the various records that are associated with page controls, including the primary records; related display records, derived work records, and translate table records.

PeopleCode frequently must refer to data in the Component Buffer, that is, the area in memory that stores data for the currently active component.

There are two methods of specifying a piece of data in the Component Buffer from within PeopleCode:

-------- Contextual references, which refer to data relative to the location of the currently executing PeopleCode program.

-------- References using scroll path syntax, which provide a complete, or absolute, path through the Component Buffer to the referenced component.

The component buffer contain current active component data it is temporary memory area .

 204 views

8⟩ Tell me Where can we write the peoplecode?

1.Record field level

2.Page people code

3.Component level people code

4.Component record people code

5.Component record field people code

6.menu item people code

7.Application engine people code

8.Component interface people code

9.Messaging people code

10.Application package people code

 179 views

11⟩ Explain the advantage and disadvantage of sqlexe in peoplecode?

By using SQLExec function we can do the manipulation to the database. we can write insert,update,delete sql commands.But drawback while selecting the data using sqlexec, it will return only one at a time.another drawback, if the name of the records changed, then you have to make the changes in the code as the query will in the quotes inside sqlexec

 221 views

15⟩ Tell me What is the diff between component level peoplecode and record level peoplecode?

Record Level peoplecode:

The peoplecode written on the Recoed level Peoplecode will affect all the Components in which that particular record is used, and if we want to execute the record peoplecode for particular Component then we would need to add following code in before existing peoplecode

If %component = component.<Component Name> [statement_list_1]

[Else

[statement_list_2]]

End-If;

Component Level Peoplecode:

The component level Peoplecode works only for that particular component and if any record in the component is referenced by component level peoplecode then it would not effect any other component where same record is used as it was doing in above case.

Sequence: first Record level peoplecode will fire and then Component level peoplecode.

As far as sequence is concerned

 198 views

16⟩ Tell me few peoplecode functions?

Component Buffer consists of rows of buffer fields that hold data for the reocrds associated with the page including primary scrolls, derived work records etc.

 191 views

17⟩ How to comment out a piece of the peoplecode in a program?

REM can be used to comment a single line, but it will be processed by the comp. processor;

Single and multiple line commenting:

/* PeopleCode stmts

------ ------ ------ ----

*/

Nested Comments:

<*

/* PC Stmts ...... ..... ..... */

/* ...... Some info on code ...... */

/* More comments */

*>

 177 views

18⟩ Tell me What is the difference between SQl Object and SQl Exec?

SQL Object is a peopletool definition which can be created using app designer as well as using peoplecode command CREATESQL( ) , it is mainly used for reuseablility of the sql statements. so whenever this statement is required no need to hard code, just create an sql object of the same and use where ever it is required.

sqlexec is a peoplesoft delivered function used to retrive only one row and u can update multiple rows of data. It directly interacts with the database.

 166 views