What is the difference between component level peoplecode and record level peoplecode?


Answer posted by Ramya on 2005-03-09 04:59:47: Component and Record level PeopleCode are executed when the control is passed to the associated Component and Component containing the record respectively. Since a single record might be associated with several different Components, It is posiible to trigger the same Record PeopleCode from several components while the component level code is associated with a unique component.

Showing Answers 1 - 11 of 11 Answers

Ramya

  • Mar 9th, 2005
 

Component and Record level PeopleCode are executed when the control is passed to the associated Component and Component containing the record respectively. Since a single record might be associated with several different Components, It is posiible to trigger the same Record PeopleCode from several components while the component level code is associated with a unique component.

Rv

  • May 17th, 2005
 

Good Answer Ramya

  Was this answer useful?  Yes

srinivasulu

  • Aug 19th, 2005
 

We can write any where but the difference is though you have written in record level ,if you write on component level , component level will be fired. 

  Was this answer useful?  Yes

Ravindra

  • Oct 17th, 2005
 

In the context of both the peoplecode. The record level peoplecode will be fire first then component level peoplecode.one record level peoplecode might be associated with several different Components, so that It is posiible to trigger the same Record PeopleCode from several components while the component level code is associated with a unique component.

praveen

  • Dec 30th, 2005
 

record level peoplecode  is associated with number of component,but

 component level peoplecode  is associated with in the same same component.

  Was this answer useful?  Yes

Boby Alex

  • Jan 10th, 2006
 

 Record level people code will be attached to the record, and anywhere we use the record , the peoplecode with it will be fired.

Component level peoplecode will be attached to the component and not to the record. So even if we reuse the record we will not have the peoplecode attached to it.  Hence writing peoplecode in component level is more efficient.  

vamshi

  • May 19th, 2006
 

For example

  Was this answer useful?  Yes

vamshi

  • May 19th, 2006
 

For Example,

You have written same code at component level as well as record level, then while executing the code, component level code was overridden by the record level code

  Was this answer useful?  Yes

arungati

  • Jun 18th, 2006
 

yep that means component level PC overrides the record level one..

  Was this answer useful?  Yes

Raj Durai

  • Jun 29th, 2006
 

Good Answer Ramya

  Was this answer useful?  Yes

Nataraj

  • Nov 9th, 2006
 

Record level peoplecode is generic peoplecode, will be used anywhere in peoplesoft  and component level is component specific peoplecode,this will used only for this component and component level peoplecode will be fired first . 

  Was this answer useful?  Yes

Narendar Reddy K.

  • Apr 26th, 2007
 

The record level peoplecode fired where ever the record is used or accessed as component record level people code is fired only when that particular component is accessed.

  Was this answer useful?  Yes

Component level peoplecode is used whenever we have certain validations to be triggered at CI level. That means if ever we want to access the same component from CI and we want all the online validations to be applied implicitly at the CI level then we can write the field validations at component code

  Was this answer useful?  Yes

ggiri

  • May 19th, 2010
 

Record level peoplecode will be fired in all the components to which it is attached. This code will be fired first.


ComponentRecord level peoplecode will be fired only while processing through a particular component to which it is attached.

For example:

Suppose you are using all the fields of record A in component A. And you need all the record peoplecode associated with that needs to be fired. In this case there will be no issues.

In second case, if you are not using a particular field of recordA in Component B and some record level code is associated with the nonused field will fire and ends in error. 

Eg: If some code is associated with RowInit or Rowinsert event of the recordfield is used, then the component will error out.

So, better use componentrecord peoplecode which is efficient and safer.  

  Was this answer useful?  Yes

mahendra

  • Sep 19th, 2014
 

If you write a pc at record level it will be executed where ever you used but if write pc in component that will be executed for the component only thats the reasons mostly we write pc at component level.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions