Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
Tips and Techniques for
PeopleSoft PeopleTools
Developers
Jim Marion
PeopleTools Expert
Oracle OpenWorld Bookstore
Visit the Oracle OpenWorld Bookstore for a fabulous selection of books
on many of the conference topics and more!
Bookstore location: Moscone South, East Bridge
All Books at 20% Discount
Meet the authors 1:00 PM – 1:30 PM
Wednesday and Thursday
3
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
The following is intended to outline our general product direction. It is intended for information purposes only, and may not be incorporated into any contract.
It is not a commitment to deliver any material, code, or functionality, and should not be relied upon in making purchasing decisions. The development, release, and timing of any features or functionality described for Oracle’s products remains at the sole discretion of Oracle.
4
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
Program Agenda
PeopleTools 8.53 news that did NOT make the top of
the hour
App Classes
TDD and PSUnit
Writing Better Code
5
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
PeopleTools Under
Appreciated New Features
6
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
jQuery Now Delivered!
News that did NOT make the top of the hour
8.53 HTML definitions
– PT_JQUERY_1_6_2_JS
– PT_JQUERY_UI_1_8_17_JS
9.2 HTML definitions
– FIN_MBL_LIB_JQM%JS
Note: Multiple inclusions of PT jQuery are not safe (pagelets).
See http://jjmpsj.blogspot.com/2013/06/using-peopletools-853version-of-jquery.html for resolution
7
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
New UX Tools
News that did NOT make the top of the hour
PeopleTools > Portal > Branding
– Branding Objects
Upload images (not PNG), CSS, HTML (JavaScript)
Creates App Designer managed definitions
– Accessible from iScripts
WEBLIB_PTBR.ISCRIPT1.FieldFormula.IScript_GET_JS?ID=…
WEBLIB_PTBR.ISCRIPT1.FieldFormula.IScript_GET_CSS?ID=…
WEBLIB_PTBR.ISCRIPT1.FieldFormula.IScript_GET_IMAGE?ID=…
8
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
New UX Tool Use Cases
News that did NOT make the top of the hour
Pagelet Wizard
– JavaScripts, images, and stylesheets in pagelets
– Images for pagelet icons
– Images for navigation collections
Pagelet Wizard Pitfalls
– Requires full iScript URL with remote pagelets
– URL site name may differ between dev/test/qa, etc, but part of a relative
URL
9
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
Path Construction (Java 7’s Non-blocking IO)
News that did NOT make the top of the hour
REM ** file path construction;
Local JavaObject &pathsClass = GetJavaClass("java.nio.file.Paths");
Local string &fileBase = GetEnv("TMP");
Local JavaObject &testPath = &pathsClass.get(&fileBase,
CreateJavaObject("java.lang.String[]", "testfile.txt"));
REM ** prints /tmp/testfile.txt or c:\windows\temp\testfile.txt;
MessageBox(0, "", 0, 0, "Path to test: " | &testPath.toString());
11
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
Path Exists (Java 7’s Non-blocking IO)
News that did NOT make the top of the hour
REM ** file exists;
REM ** ++ NOTE: Use PeopleCode FileExists for files ++
Local JavaObject &filesClass = GetJavaClass("java.nio.file.Files");
Local JavaObject &linkOptions =
CreateJavaObject("java.nio.file.LinkOption[]");
Local boolean &exists = &filesClass.exists(&testPath,
&linkOptions);
MessageBox(0, "", 0, 0, "Test value should be false: " | &exists);
12
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
Move File Part I (Java 7’s Non-blocking IO)
News that did NOT make the top of the hour
REM ** create file -- not part of NIO, but necessary for example;
Local File &testFile = GetFile(&testPath.toString(), "A", "A",
%FilePath_Absolute);