PeopleSoft PeopleTools Tips & Techniques

Similar documents
Microsoft Visual Studio 2010

Implementation and. Oracle VM. Administration Guide. Oracle Press ORACLG. Mc Grauv Hill. Edward Whalen

Architect Exam Guide. OCM EE 6 Enterprise. (Exams IZO-807,1ZO-865 & IZO-866) Oracle Press ORACLG. Paul R* Allen and Joseph J.

Deep Dive. Cloud Control 12c. Oracle Enterprise Manager ORACLG. Oracle Press. Michael New Edward Whalen Matthew Burke. London Madrid Mexico City Milan

World Wide Web PROGRAMMING THE PEARSON EIGHTH EDITION. University of Colorado at Colorado Springs

PeopleSoft Applications Portal 9.1 PeopleBook: Portal and Site Administration

Complete. The. Reference. Christopher Adamson. Mc Grauu. LlLIJBB. New York Chicago. San Francisco Lisbon London Madrid Mexico City

PYTHON. p ykos vtawynivis. Second eciitiovl. CO Ve, WESLEY J. CHUN

ECLIPSE MODELING PROJECT

[Contents. Sharing. sqlplus. Storage 6. System Support Processes 15 Operating System Files 16. Synonyms. SQL*Developer

FrontPage 98: The Complete Reference

LabVIEW Graphical Programming

Oracle Real Application Clusters Handbook

CompTIA" Cloud Essentials Certification Study Guide. (Exam CLO-001) ITpreneurs

PeopleTools 8.55: Mobile Application Platform

Developing Applications with Java EE 6 on WebLogic Server 12c

COPYRIGHTED MATERIAL

Programming HD DVD and Blu-ray Diso The HD Cookbook

Programming. In Ada JOHN BARNES TT ADDISON-WESLEY

This course is designed for web developers that want to learn HTML5, CSS3, JavaScript and jquery.

PeopleSoft Applications Portal and WorkCenter Pages

PeopleSoft Spotlight Series Page Composer. Copyright 2017, Oracle and/or its affiliates. All rights reserved.

Contents at a Glance. vii

LPIC-l/CompTIA. Certification. Lmux+ ONE. ALL a IN. (Exams LPIC-1/LX0-101 & LXO-102) Robb H. Tracy EXAM GUIDE. Graw Hill

Full Stack Developer (FSD) JAVA

Developer's HTML5. Cookbook. AAddison-Wesley. Chuck Hudson. Tom Leadbetter. Upper Saddle River, NJ Boston Indianapolis San Francisco

Microsoft. Inside Microsoft. SharePoint Ted Pattison. Andrew Connell. Scot Hillier. David Mann

Writing Servlets and JSPs p. 1 Writing a Servlet p. 1 Writing a JSP p. 7 Compiling a Servlet p. 10 Packaging Servlets and JSPs p.

Oracle Fusion Middleware 11g: Build Applications with ADF Accel

The Unified Modeling Language User Guide

Plug-in PHP

Receiving PeopleSoft Message (PeopleTools 8.17) through the Oracle AS PeopleSoft Adapter. An Oracle White Paper September 2008

Fit for Developing Software

шив Mobile Application Security Himanshu Dwivedi Chris Clark David Thiel Mc Grauu Hill

\ Smart Client 0" Deploymentwith v^ ClickOnce

IN PRACTICE. Daniele Bochicchio Stefano Mostarda Marco De Sanctis. Includes 106 practical techniques MANNING

Oracle APEX 18.1 New Features

COURSE DETAILS: CORE AND ADVANCE JAVA Core Java

Xcode 6 Start to Finish

IBM Rational Application Developer for WebSphere Software, Version 7.0

1Z PeopleSoft Application Developer II - Application Engine & Integration Exam Summary Syllabus Questions

Oracle WebLogic Server 11g: Administration Essentials

Type of Classes Nested Classes Inner Classes Local and Anonymous Inner Classes

Building Effective ASP.NET MVC 5.x Web Applications using Visual Studio 2013

20486-Developing ASP.NET MVC 4 Web Applications

"Charting the Course... WebSphere Portal 8 Development using Rational Application Developer 8.5. Course Summary

Quality Code. Software Testing Principles, Practices, and Patterns. Stephen Vance. AAddison-Wesley

Table of Contents. Introduction... xxi

Alfresco Developer Guide

Java.. servlets and. murach's TRAINING & REFERENCE 2ND EDITION. Joel Murach Andrea Steelman. IlB MIKE MURACH & ASSOCIATES, INC.

Full Stack Web Developer

CHAPTER 1: GETTING STARTED WITH ASP.NET 4 1

BEAWebLogic. Portal. Overview

Essentials of Database Management

JAVASCRIPT FOR PROGRAMMERS

Programming Wireless Devices with the Java 2 Platform, Micro Edition

THIS IS ONLY SAMPLE RESUME - DO NOT COPY AND PASTE INTO YOUR RESUME. WE ARE NOT RESPONSIBLE Name: xxxxxx

Oracle Fusion Middleware 11g: Build Applications with ADF I

Pro ASP.NET MVC 2 Framework

CompTIA A+s. Guide to 802: Managing. and Troubleshooting PCs. Mike Meyers' (Exam ) Fourth Edition. Mike Meyers.

PeopleSoft Applications Portal 9.1 PeopleBook: Content Management System

CTS. Specialist. Certified Technology. Sven Laurik EXAM GUIDE. Mc Graw Hill. Chicago San Francisco Lisbon. New York. London Madrid Mexico City Milan

Introduction. Part I: jquery API 1. Chapter 1: Introduction to jquery 3

1 Copyright 2013, Oracle and/or its affiliates. All rights reserved.

Domain-Specific. Languages. Martin Fowler. AAddison-Wesley. Sydney Tokyo. With Rebecca Parsons

DATABASE SYSTEM CONCEPTS

1: ASP.NET AND JQUERY

Oracle Developer Day

PeopleSoft Internet Architecture

IBM Rational Developer for System z Version 7.5

SAS 9.2 Foundation Services. Administrator s Guide

Oracle SOA Suite 12c: Build Composite Applications. About this course. Course type Essentials. Duration 5 Days

More Advanced PeopleTools Techniques for PeopleSoft Enterprise. Larry Grey Grey Sparling Solutions

X100 ARCHITECTURE REFERENCES:

Contents. Acknowledgments

Full Stack Developer (FSD) Dot Net

Adobe ColdFusion 11 Enterprise Edition

Oracle SOA Suite 12c: Build Composite Applications

Using Oracle Site Studio Designer 12c (12.2.1)

Oracle ADF: The technology behind project fusion. Lynn Munsinger Principal Product Manager Application Development Tools Oracle Corporation

Intelligence on Demand. Elixir Report Migration Guide

Open Source Library Developer & IT Pro

1 CUSTOM TAG FUNDAMENTALS PREFACE... xiii. ACKNOWLEDGMENTS... xix. Using Custom Tags The JSP File 5. Defining Custom Tags The TLD 6

Introduction to Worklight Integration IBM Corporation

Objects First with Java

PeopleTools 8.53: Feed Publishing Framework

Oracle Service Cloud Integration for Developers Ed 1

Java The Complete Reference Tenth Edition Complete Reference Series

Acknowledgments... xix

ebusiness Suite goes SOA

PROCE55 Mobile: Web API App. Web API.

PeopleTools 8.54: Integration Broker Testing Utilities and Tools

JAVA COURSES. Empowering Innovation. DN InfoTech Pvt. Ltd. H-151, Sector 63, Noida, UP

ECLIPSE RICH CLIENT PLATFORM

An Introduction to Search Engines and Web Navigation

P a g e 1. Danish Tecnological Institute. Developer Collection Online Course k Developer Collection

ORACLE FUSION MIDDLEWARE MAPVIEWER

J2EE Development. Course Detail: Audience. Duration. Course Abstract. Course Objectives. Course Topics. Class Format.

Bring the Java World and Web Services into Your Portal. An Oracle White Paper September 2005

MASTERS COURSE IN FULL STACK WEB APPLICATION DEVELOPMENT W W W. W E B S T A C K A C A D E M Y. C O M

Transcription:

ORACLE Oracle Press PeopleSoft PeopleTools Tips & Techniques Jim J. Marion Mc Graw Hill New York Chicago San Francisco Lisbon London Madrid Mexico City Milan New Delhi San Juan Seoul Singapore Sydney Toronto

Objects Acknowledgments Introduction xvii xix PARTI Core PeopleTools Concepts 1 Application Classes 3 Our First Application Class 4 Creating an Application Package and Class 4 Coding the Application Class 5 Testing the Application Class Code 6 Expanding the Application Class 11 Inheritance 13 Features of Application Classes 17 Dynamic Execution 17 Construction 17 Statefu I 17 Access Control 19 Putting It All Together: The Logging Framework Example 21 Log Levels 22 The Logger Interface 25 The Logger Classes 25 Testing the Framework 31 Dynamic Logger Configuration 32 Factory Test Program 36 Misuses of Application Classes 38 Runtime Context-Sensitive Variables 38 Indiscriminate Usage 38 Conclusion 39

X PeopleSoft PeopleTools Tips & Techniques 2 The File Attachment API 41 Adding Attachments to Transactions 42 Investigating the Target Transaction 42 Creating the Attachment Storage Record 49 Adding the FILE_ATTACH_SBR Subrecord 53 Adding Attachment Fields and Buttons to the Transaction Page 53 Writing PeopleCode for the Attachment Buttons. 59 Customizing File Attachment Behavior 65 4 Moving to Level 1 77 Modifying the Page...,. 77 Adding the PeopfeCode 81 Adding Multiple Attachments per Transaction 85 Processing Attachments 85 Accessing Attachments 86 Storing Attachments 87 Implementing File Attachment Validation 87 Filename Validation 87 Conclusion File Contents Validation 89 89 3 Approval Workflow Engine 91 Workflow-Enabling Transactions 92 Creating Supporting Definitions 93 Configuring the AWE Metadata 102 Modifying the Transaction 108 Testing the Approval 126 Providing Custom Descriptions for the Approval Status Monitor 129 Allowing Ad Hoc Access 132 Creating an Event Handler Iterator 136 Web Service-Enabling Approvals 138 Conclusion 4 Pagelet Wizard 141 Pagelets Defined 142 Creating a Pagelet 143 Components of a Pagelet Wizard Pagelet 148 Pagelet Data Types 148 Setup for the Custom Data Type Example 148 Coding the Custom Data Type 149 Registering the Data Type 168 Creating a Test Pagelet 168 Pagelet Transformers 177 XSL Templates 180 Display Formats 180 Conclusion Notes 140 183 183

Contents xi PART II Extend the User Interface 5 Understanding and Creating iscripts 187 iscripts Defined 188 Our First iscript 189 Coding the iscript 189 Testing the iscript 190 Modifying the iscript 191 A Bookmarklet to Call an iscript 192 Writing the SetTraceSQL iscript 193 Creating a Bookmarklet 194 Desktop Integration 197 Creating an iscript to Serve Calendar Content 198 Building a Parameter Cache 200 Modifying the Transaction 203 Serving File Attachments 209 iscripts as Data Sources 210 Flex Requirements 211 Say Hello to Flex 211 Direct Reports DisplayShelf 220 Conclusion 227 Notes 227 6 JavaScript for the PeopleSoft Developer 229 A Static JavaScript Example 230 A Dynamic JavaScript Example 233 Creating the Derived/Work Record for Dynamic HTML 234 Adding PeopleCode for the HTML Area 234 Creating an HTML Definition 235 Inspecting PeopleSoft's User Interface with Firebug 236 Using Firebug's Console 236 Using Firebug to Enhance the Trace Bookmarklet 237 Styling an Element 239 JavaScript Libraries 240 Serving JavaScript Libraries 241 Using jquery 243 Making Global User Interface Changes 245 Identifying Common Definitions 245 Minimizing the Impact 247 Coding the Solution 247 Using jquery Plug-ins 254 Thickbox 254 WEBLIB_APTJSL iscript Code 260 Performance Issues 261 Conclusion 261 Notes 261

Xli PeopleSoft PeopleTools Tips & Techniques 7 AJAX and PeopleSoft 263 Hello AJAX 264 Creating the AJAX Request Handler 264 Ajaxifying a Page 264 Adding Animation 266 Ajaxifying the Direct Reports DisplayShelf 268 Modifying the Flex Source 269 Modifying the Direct Reports Service 270 Creating a New HTML AJAX Service 271 Modifying the Container Page 273 A Configurable User Interface 275 Using a Metadata Repository 275 Modifying the Bootstrap Code 285 Testing the Custom Scripts Component 291 Highlight Active Field Revisited 291 Changing Search Operators 293 Fiddler 298 Conclusion 301 Notes 302 8 Creating Custom Tools 303 The Toolbar Button Metadata Repository 304 Setting Up the Repository Tables 304 Creating the Toolbar Maintenance Page 308 Defining the Toolbar's HTML 311 Attaching the Toolbar to Pages 312 Defining a Custom Script for the Toolbar 312 Adding the Trace Toolbar Button 314 Modifying the Bootstrap Code 316 Separating Common Code from Bootstrap Code 316 Adding New URL-Generation Functions 317 Writing the New Common Code 318 Launching Another Component 324 Creating an iscript to Get CREF Information 324 Adding the Edit CREF Toolbar Button 325 Viewing Query Results 328 Creating a Query to Get a Page's Permission Lists 328 Adding the Query Toolbar Button 329 Leaving the Portal 333 Conclusion 334

Contents XHI PART III Java 9 Extending PeopleCode with Java 337 Java Overview 338 Why Java? 338 Why Not C++ or.net or...? 339 Java and PeopleCode 101 339 Java Strings 339 Java Arrays 347 Java Collections 349 Writing a Meta-HTML Processor 350 Implementing %lmage 350 Implementing %JavaScript 353 Implementing %CenerateQueryContentURL 356 Complete Code for the Meta-HTML Processor 361 Using Third-Party Libraries 364 Apache Commons 365 Apache Velocity 368 UsingJSON 373 Conclusion 385 Notes 385 10 A Logging Framework for PeopleCode 387 Investigating Problems 388 Delivered Logging Tools 388 The log4j Java Logging Framework 389 Hello log4j 389 Tracing log4j 392 Configuring log4j 393 Improving Logging Performance 397 Avoiding Logger Reconfiguration 397 Using log4j in the Process Scheduler 398 An Integrated Logging Framework 398 Creating the Level Class 399 Creating the Logger Class 400 The LogManager Class 403 I og4j Metadata 410 Testing APT.LOC4J 411 Conclusion 413 Notes 413

xiv PeopleSoft PeopleTools Tips & Techniques 11 Writing Your Own Java 415 Your Java Build Environment 416 Your First Java Class 416 Creating the Source Files 416 Deploying Java 420 Creating the Test Program 426 Using PeopleCode Objects in Java 426 Configuring Your Development Environment 426 Using PeopleCode System Variables 427 Accessing Data 429 PeopleSoft Database log4j Appender 436 Creating the PL/SQL Autonomous Transaction 437 Writing the Java 441 Testing the Appender 448 Static Configuration 449 PeopleSoft Database Velocity Template Data Source 450 Creating the Template Metadata Repository 450 Creating the Velocity Repository Java Class 453 Testing the PSDBResourceLoader 460 Multithreading 461 Conclusion 461 Notes 462 12 Creating Real-Time Integrations 463 Integration Technologies 464 Setting Up for Database Integration 464 Creating a Custom JDBC Target Connector 466 Creating the JDBCTargetConnector Class 466 Predeployment Testing 482 Deploying the Connector 492 Configuring Integrations 492 Configuring the Gateway 493 Creating a Node 494 Transforming Messages 495 Creating a Routing 499 Testing the Integrated Connector 501 Troubleshooting Custom Connectors 502 Conclusion 504 Notes 504

Contents XV 13 Java on the Web Server 505 Extending the PeopleSoft Web Server with JSP 506 Using Servlet Filters 507 Investigating iscript Caching Behavior 508 Creating an HTTP Header Servlet Filter 509 Testing the Servlet Filter 513 Deploying the Servlet Filter 515 Conclusion 516 Notes 517 14 Creating Mobile Applications for PeopleSoft 519 Providing Web Services 520 Enabling a Component Interface as a Web Service 520 Testing the WSDL URL 528 Going Mobile with JDeveloper 528 Creating a Fusion Web Application 529 Creating the Data Control 532 Creating the View 536 Designing the Search Page 540 Testing the Search Page 553 Shortening the Application's URL 555 Requiring Authentication 556 Conclusion 557 Notes 558 PART IV Best Practices 15 Test-Driven Development 561 Introduction to Test-Driven Development 562 The TDD Approach 562 Some TDD Lingo 563 A TDD Framework 564 Test Driving the Meta-HTML Processor 564 Writing a Test 564 Running the Test 566 Making the Test Pass 569 Running the Test Again 569 Refactoring 570 Repeating the Cycle 573 Conclusion 578 Notes 578

XVI PeopleSoft PeopleTools Tips & Techniques 16 PeopleCode Language Arts 579 Composition over Inheritance 580 Facades 581 Factories 582 Inversion of Control 583 Enumerated Types 591 Language Diversity 593 Notes 594 Index 595