SlideShare a Scribd company logo
8
Most read
11
Most read
18
Most read
People Code
Events
People Code Events Introduction
Business logic is coded into PeopleSoft applications by means of
People Code events
People code events are Broadly categorized into four Parts
Record Field Events
Component Record Field Events
Component Record Events
Component Events
Page Events
Menue Items
Page Event
Activate Event
The Activate event is fired every time the page is activated. This means when the page is first
brought up by the end-user, or if a end-user tabs between different pages in a component.
Every page has its own Activate event.
The main purpose of the Activate event is to segregate the PeopleCode that is related to a
specific page from the rest of your application's PeopleCode. PeopleCode related to page display
or page processing, such as enabling a field or hiding a scroll, is best put in this event. Also, you
can use this event for security validation: if an user doesn't have clearance to view a page in a
component, you would put the code for hiding it in this event.
Note. The Activate event isn't associated with a specific row and record at the point of
execution. This means you can't use functions such as GetRecord, GetRow, and so on, that
rely on context, without specifying more context.
• Activate PeopleCode can only be associated with pages.
• This event is only valid for pages that are defined as Standard or Secondary. This event is not
supported for subpages.
Record Level Events
FieldChange Event
FieldChange PeopleCode is used to recalculate page field values, change the appearance of page
controls, or perform other processing that results from a field change other than data validation.
• Do not use Error or Warning statements in FieldChange PeopleCode: these statements cause a
runtime error that forces the end-user to cancel the page without saving changes.
• FieldChange PeopleCode can be associated with record fields and component record fields.
FieldDefault Event
The FieldDefault PeopleCode event allows you to programmatically set fields to default values
when they are initially displayed.
You must attach FieldDefault PeopleCode to the specific field that is being defaulted.
FieldDefault PeopleCode can be associated with record fields and component record fields.
Note. An Error or Warning issued from FieldDefault PeopleCode will cause a runtime error and force
cancellation of the component
FieldDefault PeopleCode can be associated with record fields and component record fields.
FieldEdit Event
FieldEdit PeopleCode is used to validate the contents of a field, supplementing the standard system
edits. If the data does not pass the validation, the PeopleCode program should display a message
using the Error statement, which redisplays the page, showing an error message and turning the field
red.
• The FieldEdit event fires on the specific field and row that just changed.
• FieldEdit PeopleCode can be associated with record fields and component record fields.
FieldFormula Event
FieldFormula PeopleCode fires in many different contexts and triggers PeopleCode on every field on
every row in the component buffer, it can seriously degrade the performance of your application. In
recent PeopleSoft applications, the RowInit and FieldChange events are used rather than
FieldFormula.
FieldFormula Event
FieldFormula PeopleCode fires in many different contexts and triggers PeopleCode on every field
on every row in the component buffer, it can seriously degrade the performance of your application.
In recent PeopleSoft applications, the RowInit and FieldChange events are used rather than
FieldFormula.
FieldFormula PeopleCode is only associated with record fields.! Do not use Field Formula People Code in your components. Use it only to store external PeopleCode
functions in FUNLIB_ record definitions.
PrePopup Event
The PrePopup event fires just before the display of a pop-up
menuuse.PrePopup PeopleCode to control the appearance of
the Pop-up menu.
.
RowDelete Event
The RowDelete event fires whenever a end-user attempts to
delete a row of data from a page scroll. You can use RowDelete
PeopleCode to prevent the deletion of a row (using an Error or
Warning statement) or to perform any other processing
contingent on row deletion.
RowInit Event
The RowDelete event fires whenever a end-user attempts to
delete a row of data from a page scroll. You can use RowDelete
PeopleCode to prevent the deletion of a row (using an Error or
Warning statement) or to perform any other processing
contingent on row deletion.
• The RowDelete event triggers PeopleCode on any field on the
row of data that is being flagged as deleted.
RowInsert Event
When the end-user adds a row of data, the Component Processor generates a RowInsert event. You should
use RowInsert PeopleCode for processing specific to the insertion of new rows. Do not put PeopleCode in
RowInsert that already exists in RowInit, because a RowInit event always fires after the RowInsert event,
which will cause your code to be run twice.
•The RowInsert triggers PeopleCode on any field on the inserted row of data.
Do not use a Warning or Error in RowInsert: this will cause a runtime error and force cancellation of the
component
•You can prevent the end-user from inserting rows into a scroll area by checking the No Row Insert box in the
scroll bar's Page Field Properties; however, you can't prevent row insertion conditionally.
.
Note. RowInsert does not trigger PeopleCode on Derived/Work fields.
RowInsert PeopleCode can be associated with record fields and component records
RowSelect Event
The RowSelect event fires at the beginning of the Component Build process in any of the Update action modes
(Update, Update/Display All, Correction). RowSelect PeopleCode is used to filter out rows of data as they are
being read into the component buffer. This event also occurs after a ScrollSelect or related function is executed
Note. In RowSelect PeopleCode, you can only refer to record fields on the record that is currently being
processed.
Note. This event, and all it's associated PeopleCode, will not fire if run from a Component Interface.
•RowSelect PeopleCode can be associated with record fields and component records.
SaveEdit Event
The SaveEdit event fires whenever the end-user attempts to save the component. You can use
SaveEdit PeopleCode to validate the consistency of data in component fields. Whenever a
validation involves more than one component field, you should use SaveEdit PeopleCode. If a
validation involves only one page field, you should use FieldEdit PeopleCode.
•SaveEdit is not field-specific: it triggers associated PeopleCode on every row of data in the
component buffers, except rows flagged as deleted
•SaveEdit PeopleCode can be associated with record fields and components
SavePostChange Event
After the Component Processor updates the database, it fires the SavePostChange event. You
can use SavePostChange PeopleCode to update tables not in your component using the
SQLExec built-in function.
An Error or Warning in SavePostChange PeopleCode will cause a runtime error, forcing the end-
user to cancel the component without saving changes. Avoid Errors and Warnings in the this
event
Caution! Never issue a SQL Commit or a Rollback manually from within a SQLExec function. Let
the Component Processor issue these SQL commands.
•SavePostChange PeopleCode can be associated with record fields, components and component
records
SavePreChange Event
The SavePreChange event fires after SaveEdit completes without errors. SavePreChange
PeopleCode gives you one last chance to manipulate data before the system updates the
database; for instance, you could use SavePreChange PeopleCode to set sequential high-level
keys. If SavePreChange runs successfully, a WorkFlow event is generated, then the Component
Processor issues appropriate INSERT, UPDATE, and/or DELETE SQL commands.
•SavePreChange PeopleCode is not field-specific: it triggers PeopleCode on all fields and on all
rows of data in the component buffer.
•SavePreChange PeopleCode can be associated with record fields, components and component
records.
SearchInit Event
The SearchInit event is generated just before a search dialog, add dialog, or data entry dialog is
displayed. SearchInit triggers associated PeopleCode in the search key fields of the search
record. This allows you to control processing before the end-user enters values for search keys
in the dialog. In some cases you wish to set the value of the search dialog fields
programmatically.EMPLID = %EmployeeId;
Gray (EMPLID);
AllowEmplIdChg(true);
Note. This event, and all it's associated PeopleCode, will not fire if run from a Component Interface.
SearchInit PeopleCode can be associated with record fields and component search records.
SearchSave Event
SearchSave PeopleCode is executed for all search key fields on a search dialog, add dialog, or
data entry dialog after the end-user clicks Search. This allows you to control processing after
search key values are entered, but before the search based on these keys is executed. A typical
use of this feature is to provide cross-field edits for selecting a minimum set of key information. It
is also used to force the user to enter a value in at least one field, even if it's a partial value to
help narrow a search for tables with many rows.
Note. SearchSave does not fire when values are selected from the search list. If you need to validate data
entered in the search dialog, use the Component PreBuild event to do so.
Note. This event, and all it's associated PeopleCode, will not fire if run from a Component Interface
SearchSave PeopleCode can be associated with record fields and component search records.
Workflow Event
Workflow PeopleCode executes immediately after SavePreChange and before the database
update that precedes SavePostChange. The main purpose of the Workflow event is to segregate
PeopleCode related to Workflow from the rest of your application's PeopleCode. Only PeopleCode
related to Workflow (such as TriggerBusinessEvent) should be in Workflow programs. Your
program should deal with Workflow only after any SavePreChange processing is complete.
•Workflow PeopleCode is not field-specific: it triggers PeopleCode on all fields and on all rows of
data in the component buffer.
•WorkFlow PeopleCode can be associated with record fields and components.
People code events 1
People code events 1
PostBuild Event
The PostBuild event fires after all the other component build events have fired. This event is often used to
hide or unhide pages. It's also used to set component variables.
PostBuild PeopleCode is only associated with components.
PreBuild Event
• used to set component variables.
• The PreBuild event is also used to validate data entered in the search dialog, after a prompt list is displayed.

More Related Content

PPTX
Application engine
PPTX
Diabetes Mellitus
PPTX
Hypertension
PPTX
Republic Act No. 11313 Safe Spaces Act (Bawal Bastos Law).pptx
PPTX
Power Point Presentation on Artificial Intelligence
PDF
Caça palavras - Bullying
PPTX
Application engine
Diabetes Mellitus
Hypertension
Republic Act No. 11313 Safe Spaces Act (Bawal Bastos Law).pptx
Power Point Presentation on Artificial Intelligence
Caça palavras - Bullying

What's hot (20)

PPTX
Component interface
PPTX
Peoplesoft Basic App designer
PPTX
Application package
PDF
People code events flowchart
PPT
PeopleSoft Interview Questions - Part 1
PPSX
Peoplesoft Query Overview
PPTX
SAP ALE Idoc
PDF
Ooabap notes with_programs
PDF
N vision
PDF
Peoplesoft technical consultant interview questions
PPTX
Oops abap fundamental
PPT
People soft basics
PPTX
Ale idoc training kit sap Anilkumar chowdary
PPTX
SAP Adobe forms
PDF
Table maintenance generator and its modifications
PPT
ABAP Object oriented concepts
PPT
People soft application-designer-practice-8.43
PPTX
SAP ABAP using OOPS - JH Softech
PPTX
IntegrationBroker
PDF
Oracle forms personalization
Component interface
Peoplesoft Basic App designer
Application package
People code events flowchart
PeopleSoft Interview Questions - Part 1
Peoplesoft Query Overview
SAP ALE Idoc
Ooabap notes with_programs
N vision
Peoplesoft technical consultant interview questions
Oops abap fundamental
People soft basics
Ale idoc training kit sap Anilkumar chowdary
SAP Adobe forms
Table maintenance generator and its modifications
ABAP Object oriented concepts
People soft application-designer-practice-8.43
SAP ABAP using OOPS - JH Softech
IntegrationBroker
Oracle forms personalization
Ad

Viewers also liked (19)

PPTX
Ppt Of Peoplesoft
PDF
App designer2 in peoplesoft
PPTX
PeopleSoft Integration broker Performance Tunning
PPT
Oracle & PeopleSoft
PDF
Community Planning Events; how to organise a successful one
PPTX
News
PDF
PeopleSoft Roadmap
PPT
Three tier Architecture of ASP_Net
PPT
Setids
PPT
PPT1
PPTX
Devi
PPTX
Presentation2
PDF
Peoplesoft PIA architecture
PPTX
1 event tourism
PPTX
XMLPublisher
PPT
PeopleSoft 9.1 New Features
PPTX
People soft base benefits
PDF
Bi publisher starter guide to develop first report
Ppt Of Peoplesoft
App designer2 in peoplesoft
PeopleSoft Integration broker Performance Tunning
Oracle & PeopleSoft
Community Planning Events; how to organise a successful one
News
PeopleSoft Roadmap
Three tier Architecture of ASP_Net
Setids
PPT1
Devi
Presentation2
Peoplesoft PIA architecture
1 event tourism
XMLPublisher
PeopleSoft 9.1 New Features
People soft base benefits
Bi publisher starter guide to develop first report
Ad

Similar to People code events 1 (20)

PPTX
Global Exception Handling Custom Error Connector In MuleSoft
PDF
Bronx study jam 2
PDF
Rc085 010d-vaadin7
PDF
Practical Dynamic Actions - Intro
PDF
Flows - what you should know before implementing
DOCX
Exception handling
PPTX
An end-to-end experience of Windows Phone 7 development (Part 1)
DOCX
Ui path certificate question set 1
PPTX
NET_Training.pptx
PDF
70562 (1)
PDF
Fr net programmermanual-en
PPTX
...and thus your forms automagically disappeared
PPTX
Developing Android Apps
PPT
ASP.NET 05 - Exception Handling And Validation Controls
PPT
JavaScript and DOM Pattern Implementation
PDF
Dojo1.0_Tutorials
PDF
Dojo1.0_Tutorials
DOCX
Setting up an odi agent
PPTX
Windows Store app using XAML and C#: Enterprise Product Development
PDF
2nd--mac ver
Global Exception Handling Custom Error Connector In MuleSoft
Bronx study jam 2
Rc085 010d-vaadin7
Practical Dynamic Actions - Intro
Flows - what you should know before implementing
Exception handling
An end-to-end experience of Windows Phone 7 development (Part 1)
Ui path certificate question set 1
NET_Training.pptx
70562 (1)
Fr net programmermanual-en
...and thus your forms automagically disappeared
Developing Android Apps
ASP.NET 05 - Exception Handling And Validation Controls
JavaScript and DOM Pattern Implementation
Dojo1.0_Tutorials
Dojo1.0_Tutorials
Setting up an odi agent
Windows Store app using XAML and C#: Enterprise Product Development
2nd--mac ver

Recently uploaded (20)

PPTX
cloud_computing_Infrastucture_as_cloud_p
PDF
ENT215_Completing-a-large-scale-migration-and-modernization-with-AWS.pdf
PPTX
TechTalks-8-2019-Service-Management-ITIL-Refresh-ITIL-4-Framework-Supports-Ou...
PPTX
SOPHOS-XG Firewall Administrator PPT.pptx
PPTX
Group 1 Presentation -Planning and Decision Making .pptx
PDF
A comparative analysis of optical character recognition models for extracting...
PDF
Transform Your ITIL® 4 & ITSM Strategy with AI in 2025.pdf
PDF
Zenith AI: Advanced Artificial Intelligence
PDF
A comparative study of natural language inference in Swahili using monolingua...
PDF
Univ-Connecticut-ChatGPT-Presentaion.pdf
PDF
WOOl fibre morphology and structure.pdf for textiles
PDF
gpt5_lecture_notes_comprehensive_20250812015547.pdf
PPTX
Chapter 5: Probability Theory and Statistics
PDF
Mushroom cultivation and it's methods.pdf
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PPTX
Tartificialntelligence_presentation.pptx
PDF
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
PPTX
OMC Textile Division Presentation 2021.pptx
PDF
Encapsulation theory and applications.pdf
PDF
Accuracy of neural networks in brain wave diagnosis of schizophrenia
cloud_computing_Infrastucture_as_cloud_p
ENT215_Completing-a-large-scale-migration-and-modernization-with-AWS.pdf
TechTalks-8-2019-Service-Management-ITIL-Refresh-ITIL-4-Framework-Supports-Ou...
SOPHOS-XG Firewall Administrator PPT.pptx
Group 1 Presentation -Planning and Decision Making .pptx
A comparative analysis of optical character recognition models for extracting...
Transform Your ITIL® 4 & ITSM Strategy with AI in 2025.pdf
Zenith AI: Advanced Artificial Intelligence
A comparative study of natural language inference in Swahili using monolingua...
Univ-Connecticut-ChatGPT-Presentaion.pdf
WOOl fibre morphology and structure.pdf for textiles
gpt5_lecture_notes_comprehensive_20250812015547.pdf
Chapter 5: Probability Theory and Statistics
Mushroom cultivation and it's methods.pdf
Building Integrated photovoltaic BIPV_UPV.pdf
Tartificialntelligence_presentation.pptx
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
OMC Textile Division Presentation 2021.pptx
Encapsulation theory and applications.pdf
Accuracy of neural networks in brain wave diagnosis of schizophrenia

People code events 1

  • 2. People Code Events Introduction Business logic is coded into PeopleSoft applications by means of People Code events People code events are Broadly categorized into four Parts Record Field Events Component Record Field Events Component Record Events Component Events Page Events Menue Items
  • 4. Activate Event The Activate event is fired every time the page is activated. This means when the page is first brought up by the end-user, or if a end-user tabs between different pages in a component. Every page has its own Activate event. The main purpose of the Activate event is to segregate the PeopleCode that is related to a specific page from the rest of your application's PeopleCode. PeopleCode related to page display or page processing, such as enabling a field or hiding a scroll, is best put in this event. Also, you can use this event for security validation: if an user doesn't have clearance to view a page in a component, you would put the code for hiding it in this event. Note. The Activate event isn't associated with a specific row and record at the point of execution. This means you can't use functions such as GetRecord, GetRow, and so on, that rely on context, without specifying more context. • Activate PeopleCode can only be associated with pages. • This event is only valid for pages that are defined as Standard or Secondary. This event is not supported for subpages.
  • 6. FieldChange Event FieldChange PeopleCode is used to recalculate page field values, change the appearance of page controls, or perform other processing that results from a field change other than data validation. • Do not use Error or Warning statements in FieldChange PeopleCode: these statements cause a runtime error that forces the end-user to cancel the page without saving changes. • FieldChange PeopleCode can be associated with record fields and component record fields.
  • 7. FieldDefault Event The FieldDefault PeopleCode event allows you to programmatically set fields to default values when they are initially displayed. You must attach FieldDefault PeopleCode to the specific field that is being defaulted. FieldDefault PeopleCode can be associated with record fields and component record fields. Note. An Error or Warning issued from FieldDefault PeopleCode will cause a runtime error and force cancellation of the component FieldDefault PeopleCode can be associated with record fields and component record fields.
  • 8. FieldEdit Event FieldEdit PeopleCode is used to validate the contents of a field, supplementing the standard system edits. If the data does not pass the validation, the PeopleCode program should display a message using the Error statement, which redisplays the page, showing an error message and turning the field red. • The FieldEdit event fires on the specific field and row that just changed. • FieldEdit PeopleCode can be associated with record fields and component record fields. FieldFormula Event FieldFormula PeopleCode fires in many different contexts and triggers PeopleCode on every field on every row in the component buffer, it can seriously degrade the performance of your application. In recent PeopleSoft applications, the RowInit and FieldChange events are used rather than FieldFormula.
  • 9. FieldFormula Event FieldFormula PeopleCode fires in many different contexts and triggers PeopleCode on every field on every row in the component buffer, it can seriously degrade the performance of your application. In recent PeopleSoft applications, the RowInit and FieldChange events are used rather than FieldFormula. FieldFormula PeopleCode is only associated with record fields.! Do not use Field Formula People Code in your components. Use it only to store external PeopleCode functions in FUNLIB_ record definitions. PrePopup Event The PrePopup event fires just before the display of a pop-up menuuse.PrePopup PeopleCode to control the appearance of the Pop-up menu.
  • 10. . RowDelete Event The RowDelete event fires whenever a end-user attempts to delete a row of data from a page scroll. You can use RowDelete PeopleCode to prevent the deletion of a row (using an Error or Warning statement) or to perform any other processing contingent on row deletion. RowInit Event The RowDelete event fires whenever a end-user attempts to delete a row of data from a page scroll. You can use RowDelete PeopleCode to prevent the deletion of a row (using an Error or Warning statement) or to perform any other processing contingent on row deletion. • The RowDelete event triggers PeopleCode on any field on the row of data that is being flagged as deleted.
  • 11. RowInsert Event When the end-user adds a row of data, the Component Processor generates a RowInsert event. You should use RowInsert PeopleCode for processing specific to the insertion of new rows. Do not put PeopleCode in RowInsert that already exists in RowInit, because a RowInit event always fires after the RowInsert event, which will cause your code to be run twice. •The RowInsert triggers PeopleCode on any field on the inserted row of data. Do not use a Warning or Error in RowInsert: this will cause a runtime error and force cancellation of the component •You can prevent the end-user from inserting rows into a scroll area by checking the No Row Insert box in the scroll bar's Page Field Properties; however, you can't prevent row insertion conditionally. . Note. RowInsert does not trigger PeopleCode on Derived/Work fields. RowInsert PeopleCode can be associated with record fields and component records
  • 12. RowSelect Event The RowSelect event fires at the beginning of the Component Build process in any of the Update action modes (Update, Update/Display All, Correction). RowSelect PeopleCode is used to filter out rows of data as they are being read into the component buffer. This event also occurs after a ScrollSelect or related function is executed Note. In RowSelect PeopleCode, you can only refer to record fields on the record that is currently being processed. Note. This event, and all it's associated PeopleCode, will not fire if run from a Component Interface. •RowSelect PeopleCode can be associated with record fields and component records.
  • 13. SaveEdit Event The SaveEdit event fires whenever the end-user attempts to save the component. You can use SaveEdit PeopleCode to validate the consistency of data in component fields. Whenever a validation involves more than one component field, you should use SaveEdit PeopleCode. If a validation involves only one page field, you should use FieldEdit PeopleCode. •SaveEdit is not field-specific: it triggers associated PeopleCode on every row of data in the component buffers, except rows flagged as deleted •SaveEdit PeopleCode can be associated with record fields and components SavePostChange Event After the Component Processor updates the database, it fires the SavePostChange event. You can use SavePostChange PeopleCode to update tables not in your component using the SQLExec built-in function. An Error or Warning in SavePostChange PeopleCode will cause a runtime error, forcing the end- user to cancel the component without saving changes. Avoid Errors and Warnings in the this event Caution! Never issue a SQL Commit or a Rollback manually from within a SQLExec function. Let the Component Processor issue these SQL commands. •SavePostChange PeopleCode can be associated with record fields, components and component records
  • 14. SavePreChange Event The SavePreChange event fires after SaveEdit completes without errors. SavePreChange PeopleCode gives you one last chance to manipulate data before the system updates the database; for instance, you could use SavePreChange PeopleCode to set sequential high-level keys. If SavePreChange runs successfully, a WorkFlow event is generated, then the Component Processor issues appropriate INSERT, UPDATE, and/or DELETE SQL commands. •SavePreChange PeopleCode is not field-specific: it triggers PeopleCode on all fields and on all rows of data in the component buffer. •SavePreChange PeopleCode can be associated with record fields, components and component records. SearchInit Event The SearchInit event is generated just before a search dialog, add dialog, or data entry dialog is displayed. SearchInit triggers associated PeopleCode in the search key fields of the search record. This allows you to control processing before the end-user enters values for search keys in the dialog. In some cases you wish to set the value of the search dialog fields programmatically.EMPLID = %EmployeeId; Gray (EMPLID); AllowEmplIdChg(true); Note. This event, and all it's associated PeopleCode, will not fire if run from a Component Interface. SearchInit PeopleCode can be associated with record fields and component search records.
  • 15. SearchSave Event SearchSave PeopleCode is executed for all search key fields on a search dialog, add dialog, or data entry dialog after the end-user clicks Search. This allows you to control processing after search key values are entered, but before the search based on these keys is executed. A typical use of this feature is to provide cross-field edits for selecting a minimum set of key information. It is also used to force the user to enter a value in at least one field, even if it's a partial value to help narrow a search for tables with many rows. Note. SearchSave does not fire when values are selected from the search list. If you need to validate data entered in the search dialog, use the Component PreBuild event to do so. Note. This event, and all it's associated PeopleCode, will not fire if run from a Component Interface SearchSave PeopleCode can be associated with record fields and component search records. Workflow Event Workflow PeopleCode executes immediately after SavePreChange and before the database update that precedes SavePostChange. The main purpose of the Workflow event is to segregate PeopleCode related to Workflow from the rest of your application's PeopleCode. Only PeopleCode related to Workflow (such as TriggerBusinessEvent) should be in Workflow programs. Your program should deal with Workflow only after any SavePreChange processing is complete. •Workflow PeopleCode is not field-specific: it triggers PeopleCode on all fields and on all rows of data in the component buffer. •WorkFlow PeopleCode can be associated with record fields and components.
  • 18. PostBuild Event The PostBuild event fires after all the other component build events have fired. This event is often used to hide or unhide pages. It's also used to set component variables. PostBuild PeopleCode is only associated with components. PreBuild Event • used to set component variables. • The PreBuild event is also used to validate data entered in the search dialog, after a prompt list is displayed.