Tuesday, January 6, 2009

Role Of Component Processor In Peoplesoft

If I had to tell someone what the most important concept they need to understand as a PeopleSoft developer, I would quickly answer. It is the Component Processor and how it allocates Buffer space, how it places information in the buffer, and how to ensure that you maximize its use.
The PeopleSoft application is an extremely powerful and highly configurable product that runs many different applications. Every application that is accessed online through the PeopleSoft Internet Architecture is part of a component. When you navigate to a particular content reference or menu item to access a particular page, the Component Processor is what performs all of the activity including executing SQL, PeopleCode, loading the component/page, and filling the buffer with the necessary data that was requested. More importantly, all of these activities happen in a specific order.
It is this overall process that every PeopleSoft developer and analyst needs to understand thoroughly. If you understand how the component processor works and how it allocates buffer space, than debugging, performance tuning, designing, and developing your PeopleSoft applications will be simple for you. However, if you miss this concept or don’t fully understand it, your design and development process and your online performance will be inadequate. In addition, it will become more difficult for you to debug your applications without understanding the component processor.
The Component Processor is the core engine of the PeopleSoft PIA and is responsible for the following:
• Builds and displays the search page so the user can select a high level key to retrieve the data.
• Performs search processing, where it will retrieve and save the search key values that were selected for the component.
• Makes calls to the database to retrieve the metadata that is needed to build the component.
• Builds the component, including all of its pages, fields, PeopleCode programs, and data, creating buffers for the component data.
• Performs any additional processing for the component or the page. • Displays the component and waits for user action.
If you build PeopleSoft applications and write PeopleCode, than you must fully understand the component processor and how it allocated buffer space and places objects and data into the buffer. Every time you access a component, the component processor queries the database and moves relevant data from the database to the application server. The Component processor manages this data according to special rules. Therefore, your Component design has a crucial impact and it is extremely important to understand how the buffers are allocated and maintained by the component processor.
There is a lot more detail to discuss in regards to the component processor and the component buffer. Too much to place in a single blog/article.

PeopleSoft Homepage Greeting

Have you ever wanted to display the database and username on every page like Peoplesoft used to do in version 7.x?
Add the following peoplecode in the application package PT_BRANDING under brandingbase to display user name/database name on every page.
Replace all occurrences of
&Greeting = &Portal.Homepage.Greeting
with
&Greeting = &Portal.Homepage.Greeting / " " / %UserId / " " / "(" / %DbName / ")"