PeopleCode Question:

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

PeopleCode Interview Question
PeopleCode Interview Question

Answer:

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


Previous QuestionNext Question
Tell me What is the difference between SQl Object and SQl Exec?Can you explain about component Buffer?