SlideShare a Scribd company logo
1 of 18
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.
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

What's hot

Fluid UI, Tips, Info
Fluid UI, Tips, InfoFluid UI, Tips, Info
Fluid UI, Tips, InfoAnoop Savio
 
Run report from menu Personalization كيفية تشغيل تقرير أو ما شابة من خلال شا...
Run report from menu  Personalization كيفية تشغيل تقرير أو ما شابة من خلال شا...Run report from menu  Personalization كيفية تشغيل تقرير أو ما شابة من خلال شا...
Run report from menu Personalization كيفية تشغيل تقرير أو ما شابة من خلال شا...Ahmed Elshayeb
 
Oracle HRMS Payroll Table Overview
Oracle HRMS Payroll Table OverviewOracle HRMS Payroll Table Overview
Oracle HRMS Payroll Table OverviewChris Martin
 
Query Worker Contracts Details Oracle Fusion Cloud
Query Worker Contracts Details Oracle Fusion CloudQuery Worker Contracts Details Oracle Fusion Cloud
Query Worker Contracts Details Oracle Fusion CloudFeras Ahmad
 
Welcome to people soft payroll for north america
Welcome to people soft payroll for north americaWelcome to people soft payroll for north america
Welcome to people soft payroll for north americameghamystic
 
PeopleSoft Approval Workflow Engine
PeopleSoft Approval Workflow EnginePeopleSoft Approval Workflow Engine
PeopleSoft Approval Workflow EngineEmtec Inc.
 
Mastering Oracle ADF Bindings
Mastering Oracle ADF BindingsMastering Oracle ADF Bindings
Mastering Oracle ADF BindingsEuegene Fedorenko
 
Select All Record From Tools Menu On Find Receipts For Matching Form
Select All Record From Tools Menu On Find Receipts For Matching FormSelect All Record From Tools Menu On Find Receipts For Matching Form
Select All Record From Tools Menu On Find Receipts For Matching FormAhmed Elshayeb
 
Steps on how to restrict sit s
Steps on how to restrict sit sSteps on how to restrict sit s
Steps on how to restrict sit sFeras Ahmad
 
Oracle Framework Personalization
Oracle Framework PersonalizationOracle Framework Personalization
Oracle Framework PersonalizationEdi Yanto
 
N vision
N visionN vision
N visionsri44
 
Oracle EBS R12 Payroll user manual
Oracle EBS R12 Payroll user manualOracle EBS R12 Payroll user manual
Oracle EBS R12 Payroll user manualFeras Ahmad
 
Oracle Personalization How To Restricting users from assigning items to diffe...
Oracle Personalization How To Restricting users from assigning items to diffe...Oracle Personalization How To Restricting users from assigning items to diffe...
Oracle Personalization How To Restricting users from assigning items to diffe...Ahmed Elshayeb
 

What's hot (20)

Fluid UI, Tips, Info
Fluid UI, Tips, InfoFluid UI, Tips, Info
Fluid UI, Tips, Info
 
People soft basics
People soft basicsPeople soft basics
People soft basics
 
Run report from menu Personalization كيفية تشغيل تقرير أو ما شابة من خلال شا...
Run report from menu  Personalization كيفية تشغيل تقرير أو ما شابة من خلال شا...Run report from menu  Personalization كيفية تشغيل تقرير أو ما شابة من خلال شا...
Run report from menu Personalization كيفية تشغيل تقرير أو ما شابة من خلال شا...
 
Peoplesoft technical consultant interview questions
Peoplesoft technical consultant interview questionsPeoplesoft technical consultant interview questions
Peoplesoft technical consultant interview questions
 
Oracle HRMS Payroll Table Overview
Oracle HRMS Payroll Table OverviewOracle HRMS Payroll Table Overview
Oracle HRMS Payroll Table Overview
 
Query Worker Contracts Details Oracle Fusion Cloud
Query Worker Contracts Details Oracle Fusion CloudQuery Worker Contracts Details Oracle Fusion Cloud
Query Worker Contracts Details Oracle Fusion Cloud
 
Welcome to people soft payroll for north america
Welcome to people soft payroll for north americaWelcome to people soft payroll for north america
Welcome to people soft payroll for north america
 
Oaf personalization examples
Oaf personalization examplesOaf personalization examples
Oaf personalization examples
 
PeopleSoft Approval Workflow Engine
PeopleSoft Approval Workflow EnginePeopleSoft Approval Workflow Engine
PeopleSoft Approval Workflow Engine
 
Oracle forms personalization
Oracle forms personalizationOracle forms personalization
Oracle forms personalization
 
Oaf personaliztion examples
Oaf personaliztion examplesOaf personaliztion examples
Oaf personaliztion examples
 
Mastering Oracle ADF Bindings
Mastering Oracle ADF BindingsMastering Oracle ADF Bindings
Mastering Oracle ADF Bindings
 
React js
React jsReact js
React js
 
Select All Record From Tools Menu On Find Receipts For Matching Form
Select All Record From Tools Menu On Find Receipts For Matching FormSelect All Record From Tools Menu On Find Receipts For Matching Form
Select All Record From Tools Menu On Find Receipts For Matching Form
 
Reactjs
Reactjs Reactjs
Reactjs
 
Steps on how to restrict sit s
Steps on how to restrict sit sSteps on how to restrict sit s
Steps on how to restrict sit s
 
Oracle Framework Personalization
Oracle Framework PersonalizationOracle Framework Personalization
Oracle Framework Personalization
 
N vision
N visionN vision
N vision
 
Oracle EBS R12 Payroll user manual
Oracle EBS R12 Payroll user manualOracle EBS R12 Payroll user manual
Oracle EBS R12 Payroll user manual
 
Oracle Personalization How To Restricting users from assigning items to diffe...
Oracle Personalization How To Restricting users from assigning items to diffe...Oracle Personalization How To Restricting users from assigning items to diffe...
Oracle Personalization How To Restricting users from assigning items to diffe...
 

Viewers also liked

App designer2 in peoplesoft
App designer2 in peoplesoftApp designer2 in peoplesoft
App designer2 in peoplesoftVenkat Jyesta
 
PeopleSoft Integration broker Performance Tunning
PeopleSoft Integration broker Performance TunningPeopleSoft Integration broker Performance Tunning
PeopleSoft Integration broker Performance TunningInSync Conference
 
Community Planning Events; how to organise a successful one
Community Planning Events; how to organise a successful oneCommunity Planning Events; how to organise a successful one
Community Planning Events; how to organise a successful oneNick Wates
 
News
News News
News jain
 
PeopleSoft Roadmap
PeopleSoft RoadmapPeopleSoft Roadmap
PeopleSoft RoadmapNERUG
 
Three tier Architecture of ASP_Net
Three tier Architecture of ASP_NetThree tier Architecture of ASP_Net
Three tier Architecture of ASP_NetBiswadip Goswami
 
Presentation2
Presentation2Presentation2
Presentation2JAYAARC
 
Peoplesoft PIA architecture
Peoplesoft PIA architecturePeoplesoft PIA architecture
Peoplesoft PIA architectureAmit rai Raaz
 
1 event tourism
1 event tourism1 event tourism
1 event tourismJun Obong
 
XMLPublisher
XMLPublisherXMLPublisher
XMLPublisherJAYAARC
 
PeopleSoft 9.1 New Features
PeopleSoft 9.1 New FeaturesPeopleSoft 9.1 New Features
PeopleSoft 9.1 New Featurespeoplesoft91
 
People soft base benefits
People soft base benefitsPeople soft base benefits
People soft base benefitsmeghamystic
 
Bi publisher starter guide to develop first report
Bi publisher starter guide to develop first reportBi publisher starter guide to develop first report
Bi publisher starter guide to develop first reportketulp
 

Viewers also liked (19)

Ppt Of Peoplesoft
Ppt Of PeoplesoftPpt Of Peoplesoft
Ppt Of Peoplesoft
 
App designer2 in peoplesoft
App designer2 in peoplesoftApp designer2 in peoplesoft
App designer2 in peoplesoft
 
PeopleSoft Integration broker Performance Tunning
PeopleSoft Integration broker Performance TunningPeopleSoft Integration broker Performance Tunning
PeopleSoft Integration broker Performance Tunning
 
Oracle & PeopleSoft
Oracle & PeopleSoftOracle & PeopleSoft
Oracle & PeopleSoft
 
Community Planning Events; how to organise a successful one
Community Planning Events; how to organise a successful oneCommunity Planning Events; how to organise a successful one
Community Planning Events; how to organise a successful one
 
News
News News
News
 
PeopleSoft Roadmap
PeopleSoft RoadmapPeopleSoft Roadmap
PeopleSoft Roadmap
 
Three tier Architecture of ASP_Net
Three tier Architecture of ASP_NetThree tier Architecture of ASP_Net
Three tier Architecture of ASP_Net
 
Setids
SetidsSetids
Setids
 
PPT1
PPT1PPT1
PPT1
 
SDLC
SDLC SDLC
SDLC
 
Devi
DeviDevi
Devi
 
Presentation2
Presentation2Presentation2
Presentation2
 
Peoplesoft PIA architecture
Peoplesoft PIA architecturePeoplesoft PIA architecture
Peoplesoft PIA architecture
 
1 event tourism
1 event tourism1 event tourism
1 event tourism
 
XMLPublisher
XMLPublisherXMLPublisher
XMLPublisher
 
PeopleSoft 9.1 New Features
PeopleSoft 9.1 New FeaturesPeopleSoft 9.1 New Features
PeopleSoft 9.1 New Features
 
People soft base benefits
People soft base benefitsPeople soft base benefits
People soft base benefits
 
Bi publisher starter guide to develop first report
Bi publisher starter guide to develop first reportBi publisher starter guide to develop first report
Bi publisher starter guide to develop first report
 

Similar to People code events 1

Rc085 010d-vaadin7
Rc085 010d-vaadin7Rc085 010d-vaadin7
Rc085 010d-vaadin7Cosmina Ivan
 
Practical Dynamic Actions - Intro
Practical Dynamic Actions - IntroPractical Dynamic Actions - Intro
Practical Dynamic Actions - IntroJorge Rimblas
 
Flows - what you should know before implementing
Flows - what you should know before implementingFlows - what you should know before implementing
Flows - what you should know before implementingDoria Hamelryk
 
An end-to-end experience of Windows Phone 7 development (Part 1)
An end-to-end experience of Windows Phone 7 development (Part 1)An end-to-end experience of Windows Phone 7 development (Part 1)
An end-to-end experience of Windows Phone 7 development (Part 1)rudigrobler
 
Ui path certificate question set 1
Ui path certificate question set 1Ui path certificate question set 1
Ui path certificate question set 1Majid Hashmi
 
Fr net programmermanual-en
Fr net programmermanual-enFr net programmermanual-en
Fr net programmermanual-enMorenita Batista
 
...and thus your forms automagically disappeared
...and thus your forms automagically disappeared...and thus your forms automagically disappeared
...and thus your forms automagically disappearedLuc Bors
 
Developing Android Apps
Developing Android AppsDeveloping Android Apps
Developing Android AppsClaire Lee
 
ASP.NET 05 - Exception Handling And Validation Controls
ASP.NET 05 - Exception Handling And Validation ControlsASP.NET 05 - Exception Handling And Validation Controls
ASP.NET 05 - Exception Handling And Validation ControlsRandy Connolly
 
JavaScript and DOM Pattern Implementation
JavaScript and DOM Pattern ImplementationJavaScript and DOM Pattern Implementation
JavaScript and DOM Pattern Implementationdavejohnson
 
Windows Store app using XAML and C#: Enterprise Product Development
Windows Store app using XAML and C#: Enterprise Product Development Windows Store app using XAML and C#: Enterprise Product Development
Windows Store app using XAML and C#: Enterprise Product Development Mahmoud Hamed Mahmoud
 
Monitoring, troubleshooting,
Monitoring, troubleshooting,Monitoring, troubleshooting,
Monitoring, troubleshooting,aspnet123
 

Similar to People code events 1 (20)

Bronx study jam 2
Bronx study jam 2Bronx study jam 2
Bronx study jam 2
 
Rc085 010d-vaadin7
Rc085 010d-vaadin7Rc085 010d-vaadin7
Rc085 010d-vaadin7
 
Practical Dynamic Actions - Intro
Practical Dynamic Actions - IntroPractical Dynamic Actions - Intro
Practical Dynamic Actions - Intro
 
Flows - what you should know before implementing
Flows - what you should know before implementingFlows - what you should know before implementing
Flows - what you should know before implementing
 
Exception handling
Exception handlingException handling
Exception handling
 
An end-to-end experience of Windows Phone 7 development (Part 1)
An end-to-end experience of Windows Phone 7 development (Part 1)An end-to-end experience of Windows Phone 7 development (Part 1)
An end-to-end experience of Windows Phone 7 development (Part 1)
 
Ui path certificate question set 1
Ui path certificate question set 1Ui path certificate question set 1
Ui path certificate question set 1
 
NET_Training.pptx
NET_Training.pptxNET_Training.pptx
NET_Training.pptx
 
70562 (1)
70562 (1)70562 (1)
70562 (1)
 
Fr net programmermanual-en
Fr net programmermanual-enFr net programmermanual-en
Fr net programmermanual-en
 
...and thus your forms automagically disappeared
...and thus your forms automagically disappeared...and thus your forms automagically disappeared
...and thus your forms automagically disappeared
 
Developing Android Apps
Developing Android AppsDeveloping Android Apps
Developing Android Apps
 
ASP.NET 05 - Exception Handling And Validation Controls
ASP.NET 05 - Exception Handling And Validation ControlsASP.NET 05 - Exception Handling And Validation Controls
ASP.NET 05 - Exception Handling And Validation Controls
 
JavaScript and DOM Pattern Implementation
JavaScript and DOM Pattern ImplementationJavaScript and DOM Pattern Implementation
JavaScript and DOM Pattern Implementation
 
Dojo1.0_Tutorials
Dojo1.0_TutorialsDojo1.0_Tutorials
Dojo1.0_Tutorials
 
Dojo1.0_Tutorials
Dojo1.0_TutorialsDojo1.0_Tutorials
Dojo1.0_Tutorials
 
Setting up an odi agent
Setting up an odi agentSetting up an odi agent
Setting up an odi agent
 
Windows Store app using XAML and C#: Enterprise Product Development
Windows Store app using XAML and C#: Enterprise Product Development Windows Store app using XAML and C#: Enterprise Product Development
Windows Store app using XAML and C#: Enterprise Product Development
 
2nd--mac ver
2nd--mac ver2nd--mac ver
2nd--mac ver
 
Monitoring, troubleshooting,
Monitoring, troubleshooting,Monitoring, troubleshooting,
Monitoring, troubleshooting,
 

Recently uploaded

Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Zilliz
 
Navigating Identity and Access Management in the Modern Enterprise
Navigating Identity and Access Management in the Modern EnterpriseNavigating Identity and Access Management in the Modern Enterprise
Navigating Identity and Access Management in the Modern EnterpriseWSO2
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontologyjohnbeverley2021
 
WSO2 Micro Integrator for Enterprise Integration in a Decentralized, Microser...
WSO2 Micro Integrator for Enterprise Integration in a Decentralized, Microser...WSO2 Micro Integrator for Enterprise Integration in a Decentralized, Microser...
WSO2 Micro Integrator for Enterprise Integration in a Decentralized, Microser...WSO2
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FMESafe Software
 
Quantum Leap in Next-Generation Computing
Quantum Leap in Next-Generation ComputingQuantum Leap in Next-Generation Computing
Quantum Leap in Next-Generation ComputingWSO2
 
The Zero-ETL Approach: Enhancing Data Agility and Insight
The Zero-ETL Approach: Enhancing Data Agility and InsightThe Zero-ETL Approach: Enhancing Data Agility and Insight
The Zero-ETL Approach: Enhancing Data Agility and InsightSafe Software
 
Modernizing Legacy Systems Using Ballerina
Modernizing Legacy Systems Using BallerinaModernizing Legacy Systems Using Ballerina
Modernizing Legacy Systems Using BallerinaWSO2
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MIND CTI
 
AI in Action: Real World Use Cases by Anitaraj
AI in Action: Real World Use Cases by AnitarajAI in Action: Real World Use Cases by Anitaraj
AI in Action: Real World Use Cases by AnitarajAnitaRaj43
 
Design and Development of a Provenance Capture Platform for Data Science
Design and Development of a Provenance Capture Platform for Data ScienceDesign and Development of a Provenance Capture Platform for Data Science
Design and Development of a Provenance Capture Platform for Data SciencePaolo Missier
 
TEST BANK For Principles of Anatomy and Physiology, 16th Edition by Gerard J....
TEST BANK For Principles of Anatomy and Physiology, 16th Edition by Gerard J....TEST BANK For Principles of Anatomy and Physiology, 16th Edition by Gerard J....
TEST BANK For Principles of Anatomy and Physiology, 16th Edition by Gerard J....rightmanforbloodline
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDropbox
 
Simplifying Mobile A11y Presentation.pptx
Simplifying Mobile A11y Presentation.pptxSimplifying Mobile A11y Presentation.pptx
Simplifying Mobile A11y Presentation.pptxMarkSteadman7
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Jeffrey Haguewood
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...DianaGray10
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistandanishmna97
 
Less Is More: Utilizing Ballerina to Architect a Cloud Data Platform
Less Is More: Utilizing Ballerina to Architect a Cloud Data PlatformLess Is More: Utilizing Ballerina to Architect a Cloud Data Platform
Less Is More: Utilizing Ballerina to Architect a Cloud Data PlatformWSO2
 
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)Samir Dash
 

Recently uploaded (20)

Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)
 
Navigating Identity and Access Management in the Modern Enterprise
Navigating Identity and Access Management in the Modern EnterpriseNavigating Identity and Access Management in the Modern Enterprise
Navigating Identity and Access Management in the Modern Enterprise
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontology
 
WSO2 Micro Integrator for Enterprise Integration in a Decentralized, Microser...
WSO2 Micro Integrator for Enterprise Integration in a Decentralized, Microser...WSO2 Micro Integrator for Enterprise Integration in a Decentralized, Microser...
WSO2 Micro Integrator for Enterprise Integration in a Decentralized, Microser...
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Quantum Leap in Next-Generation Computing
Quantum Leap in Next-Generation ComputingQuantum Leap in Next-Generation Computing
Quantum Leap in Next-Generation Computing
 
The Zero-ETL Approach: Enhancing Data Agility and Insight
The Zero-ETL Approach: Enhancing Data Agility and InsightThe Zero-ETL Approach: Enhancing Data Agility and Insight
The Zero-ETL Approach: Enhancing Data Agility and Insight
 
Modernizing Legacy Systems Using Ballerina
Modernizing Legacy Systems Using BallerinaModernizing Legacy Systems Using Ballerina
Modernizing Legacy Systems Using Ballerina
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
AI in Action: Real World Use Cases by Anitaraj
AI in Action: Real World Use Cases by AnitarajAI in Action: Real World Use Cases by Anitaraj
AI in Action: Real World Use Cases by Anitaraj
 
Design and Development of a Provenance Capture Platform for Data Science
Design and Development of a Provenance Capture Platform for Data ScienceDesign and Development of a Provenance Capture Platform for Data Science
Design and Development of a Provenance Capture Platform for Data Science
 
TEST BANK For Principles of Anatomy and Physiology, 16th Edition by Gerard J....
TEST BANK For Principles of Anatomy and Physiology, 16th Edition by Gerard J....TEST BANK For Principles of Anatomy and Physiology, 16th Edition by Gerard J....
TEST BANK For Principles of Anatomy and Physiology, 16th Edition by Gerard J....
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
Simplifying Mobile A11y Presentation.pptx
Simplifying Mobile A11y Presentation.pptxSimplifying Mobile A11y Presentation.pptx
Simplifying Mobile A11y Presentation.pptx
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..
 
Less Is More: Utilizing Ballerina to Architect a Cloud Data Platform
Less Is More: Utilizing Ballerina to Architect a Cloud Data PlatformLess Is More: Utilizing Ballerina to Architect a Cloud Data Platform
Less Is More: Utilizing Ballerina to Architect a Cloud Data Platform
 
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)
 

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.
  • 16.
  • 17.
  • 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.