Skip to main content

Posts

Showing posts from October, 2020

Event Mapping Application Package

PeopleSoft has been increasingly adding new ways to modify it's software without intrusive customization. One was is Event Mapping. This allows code to be placed in a application package and change the behavior of pages. These "maps" are tied to components.  Here's a simple example.  1. Create a custom Application Package From Application Designer. Go to File -> New -> Application Package Save it and give it a name Right click on the package and select Insert App Class   Give the class a name Double click to enter PeopleCode Editor Create a class the extends PT_RCF:ServiceInterface An application class for event mapping must import and extend the PT_RCF:ServiceInterface class. In addition, it must define a single method named execute . In this example the class is named make_links_clickable import PT_RCF:*; class make_links_clickable extends PT_RCF:ServiceInterface    method execute(); end-class; Now create the method method execute    /+ Extends...

Application Package Application Class Coding

PeopleSoft is moving more and more to developing in application packages. Event Mapping uses application packages, REST services use application packages, Fluid pages use application packages, and work centers use application packages. So it is prudent that developers know how to code classes and methods. This blog is to help you get started. A Class An extensible program-code-template for creating objects. It's where you define initial values for state (member variables) and implementations of behavior (member methods).  Class Wikipedia It defines a set of properties and methods that are common to all objects of one type. It short, describes the contents of the objects that belong to it. Class simple English Wikipedia For example a class could be a mountain bicycle. It could have color fields, speed fields, break fields, tire fields, etc. A road bike could be related to the mountain bike class. A road bike would have similar fields to a mountain bike class but not exactly the same...