Beruflich Dokumente
Kultur Dokumente
1.0
D65529
D61562GC10
February 2010
Student Guide
Rel 8.50 Ed1
Enterprise PeopleTools
XML Publisher for PeopleSoft
Contents
Lesson 1
Course Overview ............................................................................................................................................. 1
Agenda ............................................................................................................................................................... 2
Lesson 3
Setting Up XML Publisher ........................................................................................................................... 19
Defining Properties and Fonts ......................................................................................................................... 20
Setting Up XML Publisher Permissions ......................................................................................................... 26
Setting Up Report Manager ............................................................................................................................. 30
Defining Report Categories ............................................................................................................................. 33
Downloading Design Plug-ins ......................................................................................................................... 35
Activity 1: Setting Up XML Publisher ............................................................................................................ 37
Lesson 4
Creating and Registering Data Sources ...................................................................................................... 43
Describing Data Sources ................................................................................................................................. 44
Creating Query-Based Data Sources ............................................................................................................... 47
Activity 2: Creating Query Data Source ......................................................................................................... 52
Creating XML File Data Source ..................................................................................................................... 58
Registering XML File Data Sources ............................................................................................................... 60
Activity 3: Registering XML File Data Source ............................................................................................... 62
Lesson 5
Creating Templates ....................................................................................................................................... 67
Describing Template Types ............................................................................................................................. 68
Creating RTF Templates ................................................................................................................................. 70
Activity 4: Creating RTF Template ................................................................................................................. 78
Using Table Wizard ......................................................................................................................................... 83
Activity 5: Designing RTF Template with a Table ......................................................................................... 86
iii
Contents
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Working with PDF Templates ......................................................................................................................... 91
Lesson 6
Defining XML Publisher Reports ................................................................................................................ 95
Creating a Report Definitions .......................................................................................................................... 96
Associating Templates .................................................................................................................................. 100
Defining Report Output ................................................................................................................................. 103
Setting Report Properties ............................................................................................................................... 106
Setting Report Viewing Security ................................................................................................................... 107
Lesson 7
Running and Viewing Query-Based XML Publisher Reports ................................................................ 139
Running Reports in Query Report Viewer .................................................................................................... 140
Scheduling PS Query Reports ....................................................................................................................... 142
Locating and Viewing XML Publisher Reports ............................................................................................ 149
Activity 9: Running Query Reports ............................................................................................................... 155
Using Reporting Console .............................................................................................................................. 161
Activity 10: Setting Up and Using Reporting Console ................................................................................. 167
Lesson 8
Implementing Sub-Templates and Template Translations ..................................................................... 175
Creating Reusable Sub-Template Definitions ............................................................................................... 176
Activity 11: Adding a Sub-Template ............................................................................................................ 181
Using Content Library ................................................................................................................................... 185
Activity 12: Registering Sub-Template ......................................................................................................... 187
Maintaining Template Translations ............................................................................................................... 192
Activity 13: Using Translations .................................................................................................................... 199
Lesson 9
Using Additional RTF Techniques ............................................................................................................ 207
Using Connected Query Data Source ............................................................................................................ 208
Activity 14: Creating a Template Using Connected Query Data Source ...................................................... 216
Using Time Zones ......................................................................................................................................... 223
Activity 15: Creating a Report with Time Zones .......................................................................................... 227
Using Drilling URL Query ............................................................................................................................ 233
Activity 16: Creating an XML Publisher Report with a Query Drilling URL .............................................. 236
iv
Contents
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Lesson 10
Running Reports Using PeopleCode .......................................................................................................... 245
Running Reports Using PeopleCode ............................................................................................................. 246
Activity 17: Running Reports from PeopleCode .......................................................................................... 258
Running Reports from Application Engine ................................................................................................... 263
Activity 18: Creating Application Engine Program ...................................................................................... 270
Creating Application Engine to Create File and Run Report ........................................................................ 276
Activity 19: Running XMLP Report from Application Engine .................................................................... 281
Appendix A
Supplemental Information .......................................................................................................................... 297
Contents ......................................................................................................................................................... 297
XMLP Tables ................................................................................................................................................ 297
Migrating XMLP Definitions ........................................................................................................................ 299
Cleaning Up XML Publisher Metadata ......................................................................................................... 300
v
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Lesson 1
Course Overview
Note. The appearance of the page shots in the guide may not always match the training environment. This is
Objectives
By the end of this course, you will be able to:
• Create templates.
Slide 3
1
Course Overview Lesson 1
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Agenda
Day One
On day one, we will provide an overview of XML Publisher and discuss these topics:
Slide 4
2
Lesson 1 Course Overview
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Agenda (continued)
Day 2
On day two, we discuss these topics:
Slide 5
3
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Lesson 2
Technology Overview
Objectives
Slide 7
5
Technology Overview Lesson 2
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
XML Publisher
XML Publisher (XMLP):
• Is a standalone Java-based reporting technology that streamlines report and form generation.
• Provides the ability to design and create report layouts in Microsoft Word and Adobe Acrobat.
Slide 8
Student Notes
• Empowering business users to leverage application data to create correspondence using desktop tools.
• Enabling government form templates to be downloaded and published with application data.
6
Lesson 2 Technology Overview
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Student Notes
Data Logic
Power users can create data using PS Query and Connected Queries, all other types of data extraction logic
should be handled and maintained by development teams. The only requirement for the data is that is must be
well formed XML.
Layout Template
XML Publisher provides the ability to design and create report layout templates using common desktop
applications and renders XML data based on those templates. With a single template, it can generate reports
in many formats (PDF, RTF, Excel, HTML, and so on) in many languages. This approach to reporting can
dramatically reduce report maintenance, enabling power business users to adjust report templates without
involvement of Information Technology resources.
7
Technology Overview Lesson 2
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Translation
For RTF templates, a template translation feature is available. The Template Translation feature is based upon
standard Localization Interchange File Format (XLIFF) .xlf file processing. Each report template or sub-
template file can have related translation XLIFF files. These XLIFF files include translation units for each
content element to be translated.
8
Lesson 2 Technology Overview
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Reporting Tools
PeopleSoft offers a wide-variety of reporting tools, which tool you use depends on the data and format. This
table lists some considerations:
SQR Using Application Engine for data logic and XML Publisher for publishing,
you can take advantage of bursting capabilities.
Slide 10
Student Notes
Reporting Options
XML Publisher provides an additional reporting tool option for PeopleSoft Enterprise users. This does not
mean that existing reports need to be rewritten, but that you should use XML Publisher for new custom
reports to take advantage of the flexibility and reduced maintenance, as well as the bursting capabilities.
• General Ledger - an alternative to Crystal for reports containing chartfields, no customization is required
after chart of accounts configuration.
9
Technology Overview Lesson 2
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Student Notes
10
Lesson 2 Technology Overview
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Phases
XML Publisher implementation can be divided into the following phases:
Student Notes
11
Technology Overview Lesson 2
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
3. (Optional) Register translation XLIFF files for report templates and Content Library sub-templates.
12
Lesson 2 Technology Overview
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Bursting
Bursting can be used for security and for distribution. This is an example of distributing paychecks by
employee or department:
Student Notes
Bursting
Bursting is an optional advanced feature that is only available when reports are run through Process Scheduler
and is not intended for real-time online viewing. It is typically used when you are repeating the generation of
a templated report layout many times for multiple like sets of data. For example, generating a batch run on
paychecks. With bursting, you can generate individual report files resulting in separate secured output. For
example, generating a file for each employee and department.
13
Technology Overview Lesson 2
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Translations
Translation files allow you to use the same RTF template and translate the data based on specified criteria:
Student Notes
Template Translation
The Template Translation feature is based upon standard Localization Interchange File Format (XLIFF) .xlf
file processing. Each report template or sub-template file can have related translation XLIFF files. These
XLIFF files include translation units for each content element to be translated. The translatable units include
all the fixed verbiage of the template excluding any values supplied by the data source.
14
Lesson 2 Technology Overview
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Development Information
Use the Enterprise PeopleTools 8.50 PeopleBook: XML Publisher for PeopleSoft Enterprise to find
development information, including:
Slide 15
Student Notes
Development Information
This table lists the locations of additional information in the Enterprise PeopleTools 8.50 PeopleBook: XML
Publisher for PeopleSoft Enterprise:
15
Technology Overview Lesson 2
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Getting Started with XML This chapter provides an overview of XML Publisher and discusses XML
Publisher Publisher phases.
You can access related material by clicking the Help link in the top-right corner of the application page. This
link automatically takes you to the relevant information in the appropriate PeopleBook.
16
Lesson 2 Technology Overview
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Development Information
Use the Oracle Business Intelligence Publisher User's Guide, Release 10.1.3.2 to find information including:
Slide 16
Student Notes
Additional Resources
This table describes the additional PeopleBooks that contain information about PeopleSoft Application
Designer and application development using PeopleTools:
17
Technology Overview Lesson 2
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Setting Runtime Properties This chapter includes information on how to set properties in a configuration
file and a list of properties.
Creating RTF Templates This chapter includes information for creating your RTF templates,
including:
• Designing the template layout
• Adding markup to the template layout
• Defining headers and footers
Creating PDF Templates This chapter includes information for creating your PDF templates,
including:
• Designing the layout
• Adding markup to the layout
• Adding page numbers and page breaks
• Performing calculations
18
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Lesson 3
Objectives
Slide 18
19
Setting Up XML Publisher Lesson 3
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
• System Properties
• Non-system Properties
Non-system or functional properties are set in PeopleSoft Pure Internet Architecture or through PeopleCode
(setRuntimeProperties).
Slide 19
Student Notes
System properties and fonts System properties and fonts xdo.cfg file
Global properties Global properties are shared by all Reporting Tools, XML Publisher,
reports and override the xdo engine Setup, Global Properties
default property values.
Report properties Properties are defined in the report Reporting Tools, XML Publisher,
definition and override global Report Definition, Properties
properties for a single report.
Runtime properties Override report properties. Runtime properties are set at runtime
through
ReportDefn.SetRuntimeProperties
PeopleCode API
20
Lesson 3 Setting Up XML Publisher
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
• xslt-parser
• xslt-scalable
• system-temp-dir
• fonts
Slide 20
Student Notes
Note. If this property is not set, a warning will be displayed in the log: WARNING: 'system-temp-dir' property
is not defined in xdo.cfg and the default directory that will be used is the domain/files/xmlp directory. Consult
your system administrator for the right location.
21
Setting Up XML Publisher Lesson 3
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
<config version="1.0.0" xmlns="http://xmlns.oracle.com/oxp/config/">
<properties>
<!-- System level properties -->
<property name="xslt-xdoparser">true</property>
<property name="xslt-scalable">true</property>
<property name="system-cachepage-size">50</property>
<property name="system-temp-dir"></property>
</properties>
<!--<fonts>-->
<!--<font family="3 of 9 Barcode" style="normal"
For example, to specify a separate xdo.cfg file for application server domain P8488041, change the
[PS_HOME]/appserv/P8488041/psappsrv.cfg file as indicated below and put the new xdo.cfg into the
[PS_HOME]/appserv/P8488041 directory.
22
Lesson 3 Setting Up XML Publisher
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Copying Fonts
XMLP Core engine uses default fonts when the corresponding fonts are not available on the system for a
particular report template. The engine looks for these fonts under PS_HOME\JRE\lib\fonts folder.
The default fonts are included in BI Publisher Desktop and need to be copied to the JRE directory. The fonts
Slide 21
Student Notes
Copying Fonts
The following files need to be copied to the PS_HOME/JRE/LIB folder:
• ALBANWTJ.ttf
• ALBANWTK.ttf
• ALBANWTS.ttf
• ALBANWTT.ttf
• ALBANYWT.ttf
23
Setting Up XML Publisher Lesson 3
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Global Properties
The following property groups are available:
• PDF Output
• FO Processing
• PDF Security
• PDF Template
• RTF Output
• RTF Template
Slide 22
Student Notes
See Oracle Business Intelligence Publisher User's Guide, Setting Runtime Properties
24
Lesson 3 Setting Up XML Publisher
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
To allow editing of PDF reports, the properties for the property group PDF Security should be set as follows:
Property Value
pdf-encryption-level 0
pdf-no-changing-the-document False
25
Setting Up XML Publisher Lesson 3
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Slide 23
Student Notes
Component Permissions PeopleTools, Security, Permission Lists & Roles, Permission Lists, PTPT2600,
Pages, Edit Components
26
Lesson 3 Setting Up XML Publisher
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
• Data source
• Report category
• Template translations
Permission Lists PeopleTools, Security, Permissions & Roles, Roles, XMLP Report Developer,
Permission Lists
27
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
28
Setting Up XML Publisher
Lesson 3
• Defining reports.
Slide 24
Student Notes
Defining Reports
When defining Query-based reports, Query security determines which queries you have access to and can
select from to create your XML Publisher report definitions.
Query-based reports viewed online in real time from the Query Report Viewer respect query access groups
for the user's primary permission list. For non-Query-based reports viewed online in real time, security is
controlled by the application.
When you are viewing a report that was run through either the Query Report Scheduler or the Process
Scheduler, security is controlled by both the Distribution ID field on the Report Definition, Security page and,
when the Allow viewer ID assignment at report runtime check box is selected, by those IDs selected at
runtime on the Process Scheduler Request, Distribution Detail page. Additional viewing security can also be
defined for bursted reports on the Report Definition, Bursting page.
29
Setting Up XML Publisher Lesson 3
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Report Manager
Report Manager provides several different methods of viewing reports, based on the level of access granted.
Folders are provided to assist in organizing reports and reducing the size of the report lists.
Student Notes
Report Folder Administration PeopleTools, Process Scheduler, System Settings, Report Folder Administration
Use the Report Folders Administration page to create folders for organizing reports in Report Manager.
30
Lesson 3 Setting Up XML Publisher
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Distributing Reports
The Distribution Agent determines the report folder in which the report is viewed in Report Manager using
the following rules:
Student Notes
Distribution
The Distribution Agent determines the report folder in which the report is viewed in Report Manager using
the following rules:
• The report folder was specified when the request was scheduled, either through the Process Request Dialog
page or the PeopleCode Process Request class.
• If the report folder was not specified when the process request was scheduled, the Distribution Agent
verifies whether a folder was set in the process definition.
• If the report folder was not specified when the process request was scheduled or in the process definition,
the Distribution Agent assigns the default folder that is specified in the Report Folder Administration page.
31
Setting Up XML Publisher Lesson 3
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
ReportSuperUser Can update only reports they are authorized to view including:
• Delete the report entry
• Update the distribution list or expiration date of report entries.
Slide 27
Student Notes
32
Lesson 3 Setting Up XML Publisher
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Report Category
Report Category is a required attribute on all report definitions and Content Library sub-templates. By
assigning a report category, you are actually applying row level security to edit and view the report definition.
Student Notes
33
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
34
Setting Up XML Publisher
Lesson 3
• Facilitate the insertion of application data tag placeholders into your templates.
Slide 29
Student Notes
Template Builder
PeopleTools 8.50 is delivered with BI Publisher Desktop that includes Template Builder 10.1.3.4.1.
You can also available as a free download from Oracle Technical Network (OTN).
See http://www.oracle.com/technology/software/products/publishing/index.html
Design Helper
35
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
36
Setting Up XML Publisher
37
Setting Up XML Publisher Lesson 3
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Activity Overview
In this activity, your will set up your system for XML Publisher. Perform the following tasks:
Set up a new report folder STUDENT to use as the default in this course.
Set up a new report category XMLP_TRAINING and give access to the role PSU Technical Student.
Note. Use the T1B85001 database with PTXMLP for the user name and password in this activity.
38
Lesson 3 Setting Up XML Publisher
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
1. Double-click the PSU Training- B Database icon on the desktop and sign on with User Id PTXMLP and
password PTXMLP.
ID Type Role
5. Click Save.
39
Setting Up XML Publisher Lesson 3
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
2. Click the Plug-in for Microsoft Word (requires 2000 or later) link.
3. Click Save.
12. Select Start, Programs, Oracle BI Publisher Desktop, BI Publisher User Guide.
15. Select Start, Programs, Oracle BI Publisher Desktop, Template Builder for Word Tutorial.
Results
The Template Builder toolbar will appear in Word, with the tutorial:
40
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED Lesson 3
41
Oracle University and Businessmind Colombia SA use only
Setting Up XML Publisher Lesson 3
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Review
In this lesson, you learned that:
• Two roles are delivered for XML Publisher, XMLP Report Developer and XMLP Power User.
• The design plug-in facilitates creating RTF templates offline in Microsoft Word.
Slide 31
Student Notes
Additional Resources
This table lists additional resources that provide more details about the topics that we discussed in this lesson:
Topic Cross-Reference
Defining XML Publisher Settings Oracle XML Publisher Core Components Guide, "Setting
Runtime Properties"
Defining XML Publisher Settings Enterprise PeopleTools 8.50 PeopleBook: XML Publisher
for PeopleSoft Enterprise,"Setting Up XML Publisher"
Setting Up XML Publisher Permissions Enterprise PeopleTools 8.50 PeopleBook: XML Publisher
for PeopleSoft Enterprise,"Understanding XML
Publisher"
42
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Lesson 4
Objectives
Slide 33
43
Creating and Registering Data Sources Lesson 4
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Data Sources
XML Publisher supports the following data sources:
• PeopleSoft Query
• Connected Query
Slide 34
Student Notes
PS Query Reporting queries are essentially the same as user queries, except that they are
designed to be used by another reporting tool.
XML File The Extended Markup Language (XML) is a method for putting structured data in a
text file. Like HTML, XML uses tags, that is, text delimited by brackets (< and >).
However, HTML specifies what each tag is, and how it's supposed to be displayed
in a browser. XML uses tags only to delimit data. The interpretation of that data is
entirely up to the application.
Connected Query Connected Query processing creates a hierarchical output where a single row of
data from parent query results in a set of rows in a child query. This data is
processed row by row and produces structured data.
44
Lesson 4 Creating and Registering Data Sources
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Data Generation
XML data can be generated using any means including PS/Query, Connected Query, SQR, Application
Engine, PeopleCode, File Layout and so forth.
Student Notes
Data Extraction
XMLP can register PS/Query,Connected Query and XML file as a data source, but XML data can be
generated using any means including PS/Query, SQR, Application Engine, PeopleCode, File Layout and so
forth. If you are not using PS/Query or Connected Query, you can use XML File as a data source for all other
means of data generation.
45
Creating and Registering Data Sources Lesson 4
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
XML File
This diagram illustrates that internally PS/Query and Connected Query data sources will be converted to
XML files before passing them to the core formatting engine.
Student Notes
Performance Enhancements
In PeopleTools 8.50, the XML data generation for query-based data sources is done in C++ which provides
better performance and less memory usage.
Considerations
Consider these points when determining which type of data source to use:
• XML file is the preferred data source type for large reports.
• Design your data source XML structure to be as close as possible to the actual report template structure.
46
Lesson 4 Creating and Registering Data Sources
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Student Notes
47
Creating and Registering Data Sources Lesson 4
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Slide 38
Student Notes
Data Source Reporting Tools, XML Publisher, Data Source, Add a New Value
Note. When creating a report definition, you can select a PeopleSoft Query data source that has not yet been
registered and that data source is registered automatically once the report definition is saved.
48
Lesson 4 Creating and Registering Data Sources
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
49
Creating and Registering Data Sources Lesson 4
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
4. Click Run.
Slide 39
Student Notes
You can use this file as a sample data file to create an RTF template for your report.
CDATA
Files created using Connected Query, will include a CDATA (Character Data) section.
Using CDATA sections in xml documents serves the purpose of avoiding XML parsing while processing
XML data. CDATA is used in Connected Query and XMLP to allow data to contain illegal (from the XML
prospective) characters. Illegal characters may be non-English alphabet characters as well as non Alpha
characters like %, ', & , and so forth.
50
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED Lesson 4
Creating and Registering Data Sources
51
Oracle University and Businessmind Colombia SA use only
Creating and Registering Data Sources Lesson 4
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Slide 40
52
Lesson 4 Creating and Registering Data Sources
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Activity Overview
In this activity, you will:
1. Create a new public query for course listings, name the query XMLP_COURSE_LIST.
Definitions Names
Fields COURSE
DESCR
COURSE_TPE
LENGTH_DAYS
TRAINING_UNITS
ONSITE
APP_REL
TOOLS_REL
2. Register the query XMLP_COURSE_LIST as a data source, generate, view, and save the sample file.
3. Register the Connected Query ENROLLMENT_BY_BU as a data source, generate and view the sample
data file.
4. Create a Connected Query data source sample file by running the ENROLLMENT_BY_BU with the
parameters listed below to the file C:\Labs\XMLP\Files\cq_enroll_sample.xml.
Unit NAM01
Note. Use PTXMLP for the user name and password in this activity.
53
Creating and Registering Data Sources Lesson 4
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
• COURSE
• DESCR
• COURSE_TYPE
• LENGTH_DAYS
• TRAINING_UNITS
• ONSITE
• APP_REL
• TOOLS_REL
7. Click the Fields tab.
13. Select Long for the Translate Values and click OK.
54
Lesson 4 Creating and Registering Data Sources
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Query XMLP_COURSE_LIST
Owner Public
Results
4. Click Add.
55
Creating and Registering Data Sources Lesson 4
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
4. Click Add.
9. Click Save.
3. Click Add.
56
Lesson 4 Creating and Registering Data Sources
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Unit NAM01
9. Click OK.
10. Click the Process Monitor link and check the progress of the process.
Results
57
Creating and Registering Data Sources Lesson 4
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
XML File
XML files can be generated using various means.
Student Notes
Well-formed XML
The XML File can be any well-formed XML file, such that:
58
Lesson 4 Creating and Registering Data Sources
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
• An element must have matching start and end tags names, unless they are empty elements
• The < or & special characters cannot appear in the character data of an element or attribute value
59
Creating and Registering Data Sources Lesson 4
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Student Notes
Note. Prior to PeopleTools 8.50, the sample data field was only used for data mapping and preview.
Data Source Reporting Tools, XML Publisher, Data Source, Add a New Value
60
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED Lesson 4
Creating and Registering Data Sources
61
Oracle University and Businessmind Colombia SA use only
Creating and Registering Data Sources Lesson 4
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Slide 43
62
Lesson 4 Creating and Registering Data Sources
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Activity Overview
In this activity, you will create a new data source named CUSTOMER_DS. The sample data file is located in
C:\Labs\DataSource\cust_sample_data.xml.
Note. Use PTXMLP for the user name and password in this activity.
63
Creating and Registering Data Sources Lesson 4
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
4. Click Add.
8. Click Upload.
Results
64
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED Lesson 4
65
Oracle University and Businessmind Colombia SA use only
Creating and Registering Data Sources Lesson 4
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Review
In this lesson, you learned that:
• Any PS Query or Connected Query can be used as a data source, but you may want to create specific
reporting queries.
Slide 44
Student Notes
Additional Resources
This table lists additional resources that provide more details about the topics that we discussed in this lesson:
Topic Cross-Reference
Creating Query Data Sources Enterprise PeopleTools 8.50 PeopleBook: XML Publisher
for PeopleSoft Enterprise"Creating and Registering Data
Sources"
66
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Lesson 5
Creating Templates
Objectives
Slide 46
67
Creating Templates Lesson 5
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Template Types
The following template types are supported:
• XSL
PeopleSoft supplies design helpers for RTF and PDF templates.
Slide 47
Student Notes
Template Design
Template design involves the construction of a report's layout in a template file and is dependent upon what
the core Oracle XML Publisher engines accept for processing.
Note. Sample report templates are bundled with the BI Publisher Desktop, and available in <Installation
Directory>\BI Publisher Desktop\samples.
RTF
Reports are fully rendered reports, which means, the actual PDF output is generated at runtime.
Report designers have full control on output formatting and can incorporate charts, dynamic tables,
conditional formatting and so forth.
PDF
Reports are pre-rendered PDF forms that are simply filled with data at runtime.
The mapping between xml data source elements and PDF form fields is implemented using a simple
algorithm that does not support nested structures such as multi-value fields. This limitation is mainly because
of the static nature of PDF forms.
PDF templates are suitable when you have existing PDF forms that you need to use to generate reports, such
as government forms.
Generally faster than RTF templates since there is no runtime rendering involved.
68
Lesson 5 Creating Templates
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
eText
eText templates are RTF-based templates that are used to generate flat file text output that can be transmitted
to a bank or other customer for Electronic Funds Transfer (EFT) or Electronic Data Interchange (EDI).
Because the output is intended for electronic communication, these templates must follow specific format
instructions for data placement.
Note. XML file is the recommended data source for eText templates because the requirements for eText
templates are very specific. XML produced by PS Query data sources lacks the required structure for eText
templates and is therefore not available.
69
Creating Templates Lesson 5
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Student Notes
RTF Document
Template Builder is used to load sample XML sample data into your Word document. Once the sample data
is loaded, you can insert form fields into your document.
The sample data file provides the tags necessary to map fields into your document.
Note. For PS/Query data sources, you will need to download the sample data file to a file you can access from
Microsoft Word.
70
Lesson 5 Creating Templates
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
5. Click Add.
Slide 49
Student Notes
71
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
72
Creating Templates
Lesson 5
3. You will receive a message that the data was successfully loaded.
4. Click OK.
Slide 50
Student Notes
73
Creating Templates Lesson 5
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Inserting Fields
To insert fields into the Word document:
• Click Insert.
Slide 51
Student Notes
Inserting Fields
Starting with Template Builder for Word 10.1.3.3.0, you can also just drag the field from the dialog and drop
it into the Word document.
Note. The sample data file is not required to add form fields, you can manually add form fields. Template
Builder with the sample data file simplifies this process. The sample data file is required to preview the report
with sample data offline in Microsoft Word.
74
Lesson 5 Creating Templates
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Option Description
Find For a large XML with a complicated structure, you can use the Find
functionality to find a specific field.
Force Left-to-right direction This is used only for languages that print right-to-left, such as Arabic or
Hebrew.
In these languages you still want to force left-to-right printing in fields such as
phone numbers, addresses, postal codes or bank account numbers.
Calculation You can select one of the aggregation functions for the data fields.
These functions (except) count only have an effect if there is more than one of
the data fields in the context where the function is used.
Example: Template
This is an example of a template with data fields inserted:
75
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
76
Creating Templates
Lesson 5
Previewing Data
You can preview the report in:
• HTML
• RTF
Slide 52
Student Notes
Preview
The preview merges the sample data to display a sample report:
77
Creating Templates Lesson 5
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
78
Lesson 5 Creating Templates
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Activity Overview
In this activity, you will create a report template for student confirmation letters. You have a query
XMLP_STU_LETTER that selects students whose confirmation letters have not been sent. This query joins
several tables to contain all of the information about the course enrollment and location.
79
Creating Templates Lesson 5
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
4. Click Add.
6. Click Save.
1. Double-click the Microsoft Word icon on the desktop to open Microsoft Word.
3. From the Template Builder toolbar, select Data, Load XML Data.
Note. You could also select Oracle BI Publisher, Data, Load Sample XML Data.
4. Select C:\Labs\XMLP\DataSource\XMLP_STU_LETTER.XML.
5. Click Open.
7. Highlight the <student name> placeholder and select Insert, Field from the Template Builder toolbar.
8. Select the Student Name field from the dialog box and click Insert.
80
Lesson 5 Creating Templates
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
9. Replace the following placeholders with the fields indicated in this table:
Placeholder Field
<street1> Street1
<city> City
<state> State
<zip> Zip
Results
81
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
82
Creating Templates
Results
• Associate a group of data elements, such as complex invoice or a purchase order line, with a form in the
Slide 54
Student Notes
83
Creating Templates Lesson 5
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
For each grouping level you can specify one of two layout options: Group Left or Group Above:
84
Lesson 5 Creating Templates
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Step 6: Headers/Labels
Finally, you can change the default labels / column headers. Click Finish to create the layout and customize it
in Microsoft Word.
85
Creating Templates Lesson 5
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
86
Lesson 5 Creating Templates
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Activity Overview
In this activity, you will create an RTF template for the course listing using the Table Wizard.
87
Creating Templates Lesson 5
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
1. In Microsoft Word, select File, New, Blank Document and click OK.
3. Click OK.
9. Click Next.
10. Select Course Type for the Group by and click Next.
Field Label
Course Code
Descr Course
Results
88
Lesson 5 Creating Templates
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
3. From the Template Builder toolbar, select Insert, Field and select Course.
3. From the Template Builder toolbar, select Data, Load XML data.
4. Select C:\Labs\XMLP\DataSource\XMLP_COURSE_LIST_DATA.xml.
89
Creating Templates Lesson 5
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Results
90
Lesson 5 Creating Templates
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
• Design the layout of your template using any application that generates documents that can be converted to
PDF.
Slide 56
Student Notes
When you draw the form fields in Adobe Acrobat, you are drawing them on top of the layout that you
designed. There is not a relationship between the design elements on your template and the form fields. You
therefore must place the fields exactly where you want the data to display on the template.
2. Draw a form field box in the position on the template where you want the field to display. Drawing the
field opens the Text Field Properties dialog box.
3. On the General tab, enter a name for the placeholder in the Name field.
The name can be the XML source field name or a different unique name.
You can use the Text Field Properties dialog box to set other attributes for the placeholder. For example,
enforce maximum character size, set field data type, data type validation, visibility, and formatting.
4. If the field is not placed exactly where desired, drag the field for exact placement.
91
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
92
Creating Templates
Lesson 5
PDF Templates
The following guidelines need to be adhered to when working with PDF templates whether or not you are
mapping PDF template fields and tags:
• Files must have form fields for the placement of application data, with each field tag being unique.
Slide 57
Student Notes
PDF Templates
PDF templates do not require a plug-in for offline template design. A mapping feature for XML data element
tags is enabled when the PDF template file is uploaded into the Reporting Tools, XML Publisher, Report
Definition, Template page. The XML Publisher PDF mapping functionality allows you to match existing
form fields in a PDF template with sample data field tags.
If you are not using a third party PDF template, you don't need to map data tags if you create PDF template
field names and XML data tags that are the same to begin with. You can also change the PDF template field
names to match your XML data tags.
Guidelines
This table provides instructions for adhering to the guidelines:
Allow Editing Check the Security setting in the File, Document Properties, Summary page
Adobe Acrobat 5.0 If you are using a later version of Adobe Acrobat, go to File, Reduce File Size and select
compatible the Make Compatible with: Acrobat 5.0 and later option.
Form fields and unique If no form fields exist, use the Adobe Professional version to add field tags. If there are
names duplicate tags or non-unique tags in forms obtained from third parties, use Adobe
Professional to update the tags.
Embedded javascript XML Publisher removes embedded javascript during the course of the Map Enablement
function when the Generate button on the Reporting Tools, XML Publisher, Report
Definition, Template page is selected.
93
Creating Templates Lesson 5
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Review
In this lesson, you learned that:
Slide 58
Student Notes
Additional Resources
This table lists additional resources that provide more details about the topics that we discussed in this lesson:
Topic Cross-Reference
Working with PDF Templates Oracle Business Intelligence Publisher User's Guide
Release 10.1.3.2, "Creating PDF Templates"
94
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Lesson 6
Objectives
• Associate a template.
• Burst reports.
Slide 60
95
Defining XML Publisher Reports Lesson 6
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Report Definitions
Report definitions are used to:
Slide 61
Student Notes
Report Definition
The report definition is made up of five pages:
Page Description
Definition When you create a new report definition, you will specify the data source and report name.
The report properties define the report status, report category and template type.
Template A report may include multiple templates. A template is used to associate different layout
formats as required by different countries/regions or as required by different channels (web
posting, printer, fax, and so on).
Output The defined output options from the report definition are reflected on the output type and
format prompts on the Process Scheduler request page when the application process that runs
the report is assigned the process type of XML Publisher.
Security Report definition security settings determine who can view the report once it has been run.
Bursting With the advanced bursting feature, report generation results in separate output files when
bursted reports are run through Process Scheduler.
96
Lesson 6 Defining XML Publisher Reports
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
• Data Source
• Template
Slide 62
Student Notes
Report Definition Add Reporting Tools, Report Definition, Add New Value
Report Definition Enter the report name and data source and click Add
Note. For XML Publisher power users, the data source type is PSQuery only and the drop-down list box is
disabled.
Note. XML Publisher power users can start to define a report in order to download the sample data files to
create their templates.
97
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
98
Defining XML Publisher Reports
Report Properties
This table lists the report properties:
Lesson 6
Field Description
Report Description Descriptive text that provides more detail about the report.
Report Status Active reports must have at least one active template.
Only active reports can be selected at runtime and run to success.
Report Category This is a grouping mechanism for reports that provides row level security for
editing report definitions per the rights defined on the report category setup table.
Object Owner ID The default value that appears here is based on the Object Owner ID set in the
Template Type Only one template type is allowed per report. The type cannot be altered once the
first template file has been uploaded and saved.
Retention Days The value entered here overrides the system setting for retaining reports.
Only XML Publisher report developers with permission list PTPT2600 can set this
value.
Download These links appear if the related files exist on the registered data source.
For query data sources, both links always appear whether the data source is
registered or not, because these files are system generated.
99
Defining XML Publisher Reports Lesson 6
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Associating Templates
Associating Templates
A report may have multiple templates.
Student Notes
Templates
This table lists the template fields:
100
Lesson 6 Defining XML Publisher Reports
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Field Description
Language Code The default value reflects the default template language.
Default Template Only one template can be selected as the default template.
The first template added to the report definition is automatically selected as the default.
This selection can be changed as necessary.
Channel The Channel attribute supports the need to identify different layout formats as required
by the various distribution mechanisms.
For example, a printout may require a different template layout than an email or a web
posting.
Leaving the channel blank would indicate that this particular template does not have a
format that is specifically suited to just one channel.
These values are for information only and do not trigger a particular Process Scheduler
distribution mechanism.
Developers can drive a template choice based on channel through the PeopleCode XML
Publisher classes.
101
Defining XML Publisher Reports Lesson 6
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Field Description
Effective Date The default date for a newly added template file is the current system date.
The user can change the data per standard effective dating logic with Update,
Update/Display, and Correction modes.
Status Statuses are In Progress, Active, or Inactive for the template file.
This field indicates the usability of the template file.
Runtime template file selection logic uses this field in conjunction with the Effective Date
field to determine which template file should be used at runtime.
Download Click this button to download the template file to your local computer for updating the
field or tag assignments.
Preview Click this button to preview the report using the current template file based upon the
sample data file that was registered with the data source.
The preview button is not enabled when there is no sample data file registered with the
data source.
Use Alt. XML (Use Select to use an alternate XML file for previewing. When you click the Preview button, a
alternate XML) dialog box appears, where you can select the file.
102
Lesson 6 Defining XML Publisher Reports
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Output
Use the Output page to specify:
• Which output formats will be available to the user when the report is run.
• The default output to be displayed at runtime on the prompt or run control page.
Slide 64
Student Notes
Output Page
Use this page to set the output options:
103
Defining XML Publisher Reports Lesson 6
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
PDF .pdf
Etext .txt
Note. The XML Publisher report definition output options are reflected in the output type and output format
Output Location
Select one of the following locations:
Location Description
Any Any indicates that the user can select the output location
at runtime
File File writes the output to the file that you indicate in the
Output Destination field.
104
Lesson 6 Defining XML Publisher Reports
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
File Names
You can specify a file name template that gets translated at runtime to a physical file name. This field accepts
a combination of output variables and plain text. Output variables are enclosed within percent signs (%) and
used as part of the descriptive report name on report search page. The following variables are supported.
• %field% where field is the name of a field from the XML data that lies below the first repeating field. For
example, if you want the employee ID value to appear in the file name, you would use %EMPLID%.
Slide 65
Student Notes
This table lists some alternate file names and the resulting report name for the report definition CRS_BY_BU:
blank CERTIFICATE[2916]-CERTIFICATE.HTM
%STUDENT_NAME% CERTIFICATE[2916]-LEE,JAMES.HTM
105
Defining XML Publisher Reports Lesson 6
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Report Properties
Properties defined in the report definition will override the global properties for this report.
Student Notes
106
Lesson 6 Defining XML Publisher Reports
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Security Page
Use the Security page to:
• Indicate whether the report requestor can add to the standard Distribute To values on the Process Scheduler
Request, Distribution Detail page.
Slide 67
Student Notes
Security Page
Use this page to set viewer security:
107
Defining XML Publisher Reports Lesson 6
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
108
Lesson 6 Defining XML Publisher Reports
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Slide 68
109
Defining XML Publisher Reports Lesson 6
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Activity Overview
In this activity, you will create a two report definitions, one to print student confirmation letters and one to
print course listings by course type.
You created the templates for these reports in the last lesson.
Note. Use PTXMLP for the user name and password in this activity.
110
Lesson 6 Defining XML Publisher Reports
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
4. Click Add.
8. Click the Upload button and select C:\Labs\XMLP\Templates\confirmation_letter.rtf and click Upload.
111
Defining XML Publisher Reports Lesson 6
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
12. Select the Output page and review the output options.
ID Type Role
4. Click Add.
112
Lesson 6 Defining XML Publisher Reports
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
8. Click the Upload button and select C:\Labs\XMLP\Templates\Course Listing.rtf and click Upload.
12. Click the Preview button and use the Browse button to select C:\Labs\XMLP\Data
Source\COURSE_LIST_DATA.xml and click Upload.
ID Type Role
113
Defining XML Publisher Reports Lesson 6
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
The name for the PDF map file should distinguish it from the template file:
Slide 69
Student Notes
114
Lesson 6 Defining XML Publisher Reports
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Field Description
Upload Click this button to upload the PDF map file once the tags have been mapped.
Download Click this button to download the PDF map file to your local computer for updating the
field or tag assignments.
115
Defining XML Publisher Reports Lesson 6
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Student Notes
When you select to generate the mapping file, the sample data is placed into the PDF template file to enable
you to access the data tags for performing visual mapping offline within the Adobe application:
116
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED Lesson 6
Note. Full path mapping is available only for PeopleTools 8.50 and later. It is not backward compatible.
Defining XML Publisher Reports
117
Oracle University and Businessmind Colombia SA use only
Defining XML Publisher Reports Lesson 6
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
• The search for the tag that matches the field name starts at the end of the XML file.
• The first match of the tag is used for the field value.
This means that even if the form is mapped, when a tag is in the XML data that matches the PDF template
form field tag, it has priority over the map for placing the data.
Slide 71
Student Notes
Note. PDF file security has to allow altering and saving for the mapping to be completed. This depends on the
version of Adobe with which you are working.
118
Lesson 6 Defining XML Publisher Reports
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Slide 72
119
Defining XML Publisher Reports Lesson 6
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Activity Overview
In this activity, you will create a report definition CERTIFICATE1 using the following:
Field Value
Note. Use PTXMLP for the user name and password in this activity.
120
Lesson 6 Defining XML Publisher Reports
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
4. Click Add.
7. Click the Upload button and select C:\Labs\XMLP\Templates\certificate1.pdf and click Upload.
121
Defining XML Publisher Reports Lesson 6
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Note. You should see gray boxes in the form fields, if they are not displayed, click the Highlight Fields
button displayed in the upper right.
The Java Script window will open with the tags available in the sample data file for the data source.
3. Click Upload.
ID Type Role
122
Lesson 6 Defining XML Publisher Reports
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Template ID CERTIFICATE1_FR
Description Certificat
Status Active
4. Click the Upload button and select C:\Labs\XMLP\Templates\Certificate1_French.pdf and click Upload.
Template ID CERTIFICATE1_ES
Description Certificado
Status Active
7. Click the Upload button and select C:\Labs\XMLP\Templates\Certificate1_Spanish.pdf and click Upload.
123
Defining XML Publisher Reports Lesson 6
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Template ID CERTIFICATE1_NL
Description Cursuscertificaat
10. Click the Upload button and select C:\Labs\XMLP\Templates\Certificate1_Dutch.pdf and click Upload.
Results
124
Lesson 6 Defining XML Publisher Reports
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Bursting Reports
Bursting
When you generate a bursted report, separate document files are created for each unique data value for a
specified field tag in the data source.
Student Notes
Bursting
Bursting is an optional advanced feature that is only available when reports are run through Process Scheduler
and is not intended for real-time online viewing. It is typically used when you are repeating the generation of
a templated report layout many times for multiple like sets of data.
For example, the diagram above shows a batch run of courses for a specified date. With bursting, you can
generate individual report files resulting in separate secured output for each business unit.
Note. Only users assigned the role XMLP Report Developer can define bursting. Users with the role XMLP
Power User will only see the bursting page when there are existing bursting instructions for the report.
125
Defining XML Publisher Reports Lesson 6
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Bursting Features
Bursting provides multiple optional features:
• Search key data values stored at runtime for more intelligent search.
Slide 74
126
Lesson 6 Defining XML Publisher Reports
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Student Notes
If this check box is cleared, bursted files with the same Burst by field will be combined in one report.
Note. Prior to PeopleTools 8.50, uniqueness was not enforced and therefore by default this check box is
cleared.
127
Defining XML Publisher Reports Lesson 6
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Burst By
In order to enable bursting, you need to identify a Burst By field.
The report's data source must have an associated sample data file. The sample data file is used to:
• Identify the highest level repeating group (node) in the XML source.
Slide 75
Student Notes
Setting Up Bursting
In this sample data file generated for the query CRS_BY_BU, Business Unit will be used as the burst by
field, however you could burst by any of the tags at the same level:
128
Lesson 6 Defining XML Publisher Reports
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Template
This feature dynamically drives the template assignment at runtime based upon the data value of a designated
sample data tag.
Field Description
Data Value Enter a row for each data value that requires a specific template or template translation.
Template ID A template ID should be selected for each data value that requires a special template.
Language (Optional) Select a language code for the desired translation of the template then the
specified data value is found in the XML data.
Slide 76
Student Notes
Translation
You can assign a language code to apply a specific template translation as well. This means that the various
bursted report occurrences in one batch run can each have an appropriately assigned template and translation.
For example, you can print Canadian paychecks in English or French depending upon the employee's
preference.
129
Defining XML Publisher Reports Lesson 6
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Student Notes
The report designer must provide the record name of the security join table and designate the common fields
to join with the bursting field. The system performs the join and determine who can view the report instances.
At runtime, this information is used to determine who can view each bursted report instance. Bursting
security can be utilized to supplement or replace the basic report viewer security by role or user ID.
Otherwise, the system limits access to each report instance based on preexisting system security definitions.
130
Lesson 6 Defining XML Publisher Reports
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Search Keys
Delivered search keys include:
• Burst By
Slide 78
Student Notes
131
Defining XML Publisher Reports Lesson 6
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
132
Lesson 6 Defining XML Publisher Reports
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Activity Overview
In this activity, you will add bursting for CERTIFICATE1, STU_LETTER, and CRS_BY_BU report
definitions.
Note. Use PTXMLP for the user name and password in this activity.
133
Defining XML Publisher Reports Lesson 6
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Burst By STUDENT_NAME
9. Click Save.
Results
The report will use different templates based on data value and language:
134
Lesson 6 Defining XML Publisher Reports
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
2. Select STU_LETTER.
7. Enter TRAINING_LOC.
135
Defining XML Publisher Reports Lesson 6
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
2. Select CRS_BY_BU.
6. Click Save.
136
Lesson 6 Defining XML Publisher Reports
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Review
In this lesson, you learned that:
• In order to create a report definition, the data source and template must exist.
• The report definition specifies which template to use when the report is run.
• The output options specify the report formats and locations that can be used for the report at runtime.
• Map files are used with PDF templates to map the XML sample data file to the PDF template.
• Bursting is typically used when you are repeating the generation of a templated report layout many times
for multiple like sets of data.
Slide 80
Student Notes
Additional Resources
This table lists additional resources that provide more details about the topics that we discussed in this lesson:
Topic Cross-Reference
137
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Lesson 7
Slide 82
139
Running and Viewing Query-Based XML Publisher Reports Lesson 7
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Existing Query security applies so that each user has access to run only the reports to which he or she has
Slide 83
Student Notes
Query Report Viewer Reporting Tools, XML Publisher, Query Report Viewer
Note. Bursted reports are listed, but they aren't executable from the Query Report Viewer component.
140
Lesson 7 Running and Viewing Query-Based XML Publisher Reports
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
You can select the report format, if more than one format is available in the report definition and click View
Report to view the report. When they exist, the Query's runtime parameters are presented.
A new window opens displaying the report results according to the runtime inputs. You can save the report
results locally by using the browser's Save functionality.
141
Running and Viewing Query-Based XML Publisher Reports Lesson 7
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Slide 84
Student Notes
Query Report Scheduler Reporting Tools, XML Publisher, Query Report Scheduler
When you click Run, the Process Scheduler Request page appears:
142
Lesson 7 Running and Viewing Query-Based XML Publisher Reports
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
The Process Scheduler Request page enables you to specify variables, such as where a process runs and in
The values for output type and output format appear by default per the report definition and can be changed if
the report definition allows it.
143
Running and Viewing Query-Based XML Publisher Reports Lesson 7
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Based on the output format and location specified on the Output page of the report definition, you can click
• Email information
• Report distribution.
Slide 85
Student Notes
Distribution Detail
Distribution options are also active allowing updates to viewers, again only as allowed in the report
definition.
144
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED Lesson 7
Running and Viewing Query-Based XML Publisher Reports
145
Oracle University and Businessmind Colombia SA use only
Running and Viewing Query-Based XML Publisher Reports Lesson 7
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Slide 86
Student Notes
Email
The format of the report in an email is dependant on the report format selected:
• For type Email with a format of PDF, you will receive an email with the PDF report as an attachment.
146
Lesson 7 Running and Viewing Query-Based XML Publisher Reports
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
• For type Email with a format of HTM, you will receive an email with a link to the report as an attachment.
Note. The .png attachment is the Oracle logo that is on the report header.
147
Running and Viewing Query-Based XML Publisher Reports Lesson 7
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
• For type Web with a format of HTM, you will receive two emails, one with a link to the log and one with a
link to the report. This is an example of the email with a link to the report:
148
Lesson 7 Running and Viewing Query-Based XML Publisher Reports
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
• Report definition ID
• Folder
Slide 87
Student Notes
XMLP Report Search Reporting Tools, XML Publisher, XMLP Report Search
Use this page to search for XMLP reports in the report repository:
149
Running and Viewing Query-Based XML Publisher Reports Lesson 7
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Click the report link to view a specific report and then click the file name for the specific report:
150
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED Lesson 7
Running and Viewing Query-Based XML Publisher Reports
151
Oracle University and Businessmind Colombia SA use only
Running and Viewing Query-Based XML Publisher Reports Lesson 7
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Report Manager
In Report Manager, you can search for reports by:
• Folder
• Date created
Slide 88
Student Notes
152
Lesson 7 Running and Viewing Query-Based XML Publisher Reports
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Report Administration
Any user who maintains the content of Report Manager must be assigned a Report Manager administrator
role in PeopleSoft Security. With this administrator role, the user can:
Slide 89
Student Notes
Super User
A super user role is also available that allows you to delete and update all report output in Report Manager.
Super users are allowed to delete the report entry and update the distribution list or expiration date of report
entries.
The difference between the administrator (ReportDistAdmin) and super user (ReportSuperUser) roles is that
the administrator role can access and update any report in the Report Manager. The super user role can update
only reports that they are authorized to view.
153
Running and Viewing Query-Based XML Publisher Reports Lesson 7
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
154
Lesson 7 Running and Viewing Query-Based XML Publisher Reports
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Slide 90
155
Running and Viewing Query-Based XML Publisher Reports Lesson 7
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Activity Overview
In this activity, you will:
4. Use XML Report Search to view the reports that you ran.
This table lists the email addresses configured in the training environment:
PTXMLP win2k3ent_wf1@win2k3ent.us.oracle.com
PTRPTG win2k3ent_wf2@win2k3ent.us.oracle.com
XMLP1 win2k3ent_wf3@win2k3ent.us.oracle.com
156
Lesson 7 Running and Viewing Query-Based XML Publisher Reports
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Results
4. Click Add.
157
Running and Viewing Query-Based XML Publisher Reports Lesson 7
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
6. Enter 1001 for the Course and 401 for the Session.
7. Click OK.
10. Enter 1001 for the Course and 404 for the Session and click OK.
2. Click Search.
4. Click the arrow to expand the View Reports Using Search Keys.
5. Select TRAINING_LOC for the prompt and Paris for the data value.
6. Click Search.
Results
158
Lesson 7 Running and Viewing Query-Based XML Publisher Reports
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Report is displayed.
6. Click Save.
159
Running and Viewing Query-Based XML Publisher Reports Lesson 7
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
5. Click Run.
9. Type Attached is the course listing you requested. in the Message Text.
Results
160
Lesson 7 Running and Viewing Query-Based XML Publisher Reports
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Reporting Console
The Reporting Console provides a single interface for a user to manage and schedule reports. From the
Reporting Console users can:
• Run a report.
• Organize Reports.
Slide 91
Student Notes
161
Running and Viewing Query-Based XML Publisher Reports Lesson 7
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
2. Click the Click here to setup display preferences link.
Note. Preferences can be changed at any time using the Preferences link.
Section Description
Default Folder The default folder section allows you to determine which
folders to display and the order or the folders.
Process Link Display Option Use this section to customize the display for My
Favorites.
Display Options for My Process Requests Use this section to customize the display for My Process
Requests.
Show Instances for These settings apply to folders where report or process
instances are displayed.
Process Request Notification Select this check box to receive a pop up confirmation
message when a process is submitted.
162
Lesson 7 Running and Viewing Query-Based XML Publisher Reports
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Adding My Favorites
Within the My Folders folder, users can build their own hierarchy of sub-folders to organize, access and
monitor frequently accessed processes.
• Folders are used for organizing the processes and bookmarks are used to edit or run processes or jobs.
Note. The system will automatically add the appropriate links based on your permission to the process or
job.
Slide 92
Student Notes
Adding Folders
To add a folder:
1. From the Reporting Console home click the Add link for My Favorites.
1. From the Reporting Console home click the Add link for next to the folder where you want to add the
process bookmark.
163
Running and Viewing Query-Based XML Publisher Reports Lesson 7
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Adding Bookmarks for PSQuery, Connected Query, XMLP Query-Based Reports or nVision
Report Request
To add a process bookmark for a PSQuery, Connected Query, XMLP Query-Based Reports or nVision
Report Request:
1. From the Reporting Console home click the Add link for My Favorites.
3. Select the radio button for the type of report (PeopleSoft Query , Connected Query, Query-Based XMLP
Reports or nVision Report Request).
4. Use the Find link in the process list grid to further refine your search criteria.
164
Lesson 7 Running and Viewing Query-Based XML Publisher Reports
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Slide 93
Student Notes
Select the Enable Generic Prompting check box to allow users to run this process from the Reporting
Console.
You need to specify whether full process security or process group security should be applied when the
process is run from the Reporting Console or a web service.
165
Running and Viewing Query-Based XML Publisher Reports Lesson 7
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Full Process Security Indicates that the process security defined on the Process Definition Options page
will be used to determine which users can schedule this process from the
Reporting Console. The user must have permission to at least one of the
Components, as well as be a member of at least one of the Process Groups listed
on the Process Definition Options page.
Process Security Group Indicates that the user must be a member of at least one of the Process Groups
listed on the Process Definition Options page to schedule this process from the
Reporting Console.
Runtime Parameters
166
Lesson 7 Running and Viewing Query-Based XML Publisher Reports
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
167
Running and Viewing Query-Based XML Publisher Reports Lesson 7
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Activity Overview
In this activity, you will:
Section Description
Display Options for My Process Requests Display all processes for User PTXMLP.
Show Instances for Show instances for the last 2 days, with a total of 5
instances.
2.
Note. Use the T1B85001 database with the user name and password PTXMLP in this activity.
168
Lesson 7 Running and Viewing Query-Based XML Publisher Reports
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
This link is only displayed for the initial setup, after that use the Preferences link.
6. Select Enabled.
7. Click OK.
Results
Your preferences:
169
Running and Viewing Query-Based XML Publisher Reports Lesson 7
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
1. From the Reporting Console home click the Add link for My Favorites.
8. Select CRS_BY_BU.
Results
170
Lesson 7 Running and Viewing Query-Based XML Publisher Reports
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
5. Click Schedule.
7. Click OK.
8. Click OK when the dialog box will appears confirming the process was submitted.
If the Status of the process instance is Processing, close the My Processes folder and then open it again.
10. Expand the My Reports folder and click on the report link to view the report.
Results
When the process completes, you will see the instance in My Processes, My Reports and My Favorites.
171
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
172
Running and Viewing Query-Based XML Publisher Reports
Review
In this lesson, you learned that:
• XML Publisher reports that have a data source of PS Query can be selected and viewed using the Query
Report Viewer.
• The Query Report scheduler page can be used to schedule XML Publisher Reports with a data source of PS
Query.
• The Reporting Console provides a single interface for a user to manage and schedule reports.
Slide 95
Student Notes
Additional Resources
This table lists additional resources that provide more details about the topics that we discussed in this lesson:
Topic Cross-Reference
Running Reports in Query Report Viewer Enterprise PeopleTools 8.50 PeopleBook: XML Publisher
for PeopleSoft Enterprise,"Running Reports in Query
Report Viewer"
173
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Lesson 8
Slide 97
175
Implementing Sub-Templates and Template Translations Lesson 8
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Sub-Templates
Sub-templates can be created that contain formatting and data fields that are used in multiple templates.
Start and end template indicators must exist to distinguish those various components.
Slide 98
Student Notes
Sample Sub-Template
This is a sample sub-template:
176
Lesson 8 Implementing Sub-Templates and Template Translations
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Importing Sub-Templates
This diagram illustrates how a sub-template is imported into a template using the content library:
Student Notes
Importing Sub-Templates
To import a sub-template file that is stored in the Content Library, the following syntax must be placed at the
top of the primary template file:
<?import:psxmlp://sub-template_NAME?>
where sub-template_NAME is the registered sub-template ID in the Content Library, for example:
<?import:psxmlp://STDHEADER?>
You then need to call the specific template defined in the sub-template, using the following syntax:
<?call-template:address:?>
177
Implementing Sub-Templates and Template Translations Lesson 8
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Notice the triple slashes and the use of the actual file name instead of template ID.
Note. When your design is complete, you can change the import statement back to make the sub-template
available to the main template in PeopleTools environment.
178
Lesson 8 Implementing Sub-Templates and Template Translations
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Passing Parameters
It may be necessary to pass runtime parameters into the XML Publisher core engine. Numbers and text are
sent as strings with single quotes.
By default, PeopleTools( through the ReportDefn class ProcessReport method) always passes the following
• <?$ReportID?>
• <?$ReportTitle?>
• <?$RunDate?>
• <?$ReportID?>
• <?$RunTime?>
Slide 100
Student Notes
Example Sub-Template:
The PeopleSoft-delivered XML Publisher report XRFWIN demonstrates the usage of these values in a report
calling a sub-template for a header.
Before inserting these parameters into the template (or sub-template), the following declaration must be
entered under a form field at the top of the report's primary template; one for each parameter called:
This is an example of the report template. The declaration is defined in the Help Text:
179
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
180
Implementing Sub-Templates and Template Translations
Lesson 8
• Create a sub-template.
• Import a sub-template.
181
Implementing Sub-Templates and Template Translations Lesson 8
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Activity Overview
In this activity, you will create a sub-template for Course Enrollments and save it to C:\Labs\XMLP as
es_enrollments. The template will include an image that is located in C:\Labs\XMLP|Misc\people_image.jpg.
182
Lesson 8 Implementing Sub-Templates and Template Translations
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Creating a Sub-Template
To create a sub-template:
5. On the line below the picture, type Education Services and Enter.
Note. Remember to change the save as file type to Rich Text Format (*.rtf).
Results
183
Implementing Sub-Templates and Template Translations Lesson 8
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
4. Select File, Save As and enter es_confirmation_letter for the file name.
6. Type <?call-template:es_header?>.
Results
You will create the sub-template ESHEADER in the content library in the next activity.
Results
184
Lesson 8 Implementing Sub-Templates and Template Translations
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Content Library
The Content Library is a component provided for the registration of reusable sub-template files.
For sub-templates:
• Power users are able to browse, view, and download sub-template files but not add them.
Slide 102
Student Notes
185
Implementing Sub-Templates and Template Translations Lesson 8
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
View Sub-Template
This is an example of a sub-template for a report header:
Sub-Templates
Sub-template names are not exposed to the end user at either report design time or runtime. The complete
template (primary and sub-templates) is systematically assembled by the XML Publisher engine during report
generation. The same occurs during online previewing as long as the sub-template file exists.
Note. There is no method for viewing which report templates include which sub-templates. This means that
users must be careful about changing, deleting, or inactivating sub-templates.
186
Lesson 8 Implementing Sub-Templates and Template Translations
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
• Register a sub-template.
187
Implementing Sub-Templates and Template Translations Lesson 8
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Activity Overview
In activity 11 "Adding a Sub-Template", you created the sub-template es_enrollment and used the sub-
template in your confirmation letter template named es_confirmation_letter.rtf.
In activity 6 "Creating Report Definitions", you created the report definition STU_LETTER. When you
created this definition, you used the confirmation letter template that did not contain the header.
In this activity, you will add the es_header to the content library and then update your report definition
STU_LETTER to use the template es_confirmation_letter.rtf. as the active template.
188
Lesson 8 Implementing Sub-Templates and Template Translations
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Registering Sub-Templates
To register a sub-template:
4. Click Add.
Language English
2. Select STU_LETTER.
189
Implementing Sub-Templates and Template Translations Lesson 8
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
9. Click Upload.
8. Select STUDENT_NAME for search and type Owen for the value.
9. Click Search.
10. Click the XMLP link for STU_LETTER [2652] - OWEN,ELLEN.HTM and then the Owen,Ellen.htm
link.
Results
190
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED Lesson 8
191
Oracle University and Businessmind Colombia SA use only
Implementing Sub-Templates and Template Translations Lesson 8
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Translations
The Template Translation feature is based upon standard Localization Interchange File Format (XLIFF) .xlf
file processing.
Student Notes
Template Translations
Each report template or sub-template file can have related translation XLIFF files. These XLIFF files include
translation units for each content element to be translated. The translatable units include all the fixed verbiage
of the template excluding any values supplied by the data source. The Template Translations page includes an
action button that generates a translatable file that must then be manually edited with the appropriately
translated values. Once the translation exercise is complete, the XLIFF file is uploaded and integrated into the
XML Publisher translation system.
192
Lesson 8 Implementing Sub-Templates and Template Translations
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Translations Component
The Template Translation component interfaces with both report definition templates and Content Library
sub-templates.
Template translation files can be created only when a report's template type is RTF.
Slide 105
Student Notes
Template Transactions Reporting Tools, XML Publisher, Translations and select the report or sub-template
to translate.
193
Implementing Sub-Templates and Template Translations Lesson 8
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
1. Click the Generate Translatable File button to generate an .xlf file, which includes all translatable units
extracted from the selected (sub)template file's fixed text.
194
Lesson 8 Implementing Sub-Templates and Template Translations
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Translatable Files
The generated translatable XLIFF file includes the template's static headings and body text that require
translation into another language.
At the top of the file, the <source-language> tag indicates the base language value. The <target-language> tag
Slide 106
Student Notes
Translatable Files
Initially the <source-language> and <target-language> values are the same. Prior to uploading the translated
file into the database, the <target-language> tag must be edited to the translated language code. The value
must a be the two character ISO language code.
For example, fr equals French, jp equals Japanese, and so on. The file won't load if the file type isn't .xlf or if
the <source-language> equals the <target-language>, and an error message is presented.
In the <body> section of the file, each <trans-unit id> tag contains both a <source> tag and a <target> tag.
The <source> tag contains the text in the base language. The corresponding <target> tag contains the translate
fixed text.
There is no naming restriction on XLIFF files, however, it is advised to keep them close to the template file
name and include the language. For example, for a French translation of the XRFWIN template, you could
use XRFWIN_FR.xlf.
195
Implementing Sub-Templates and Template Translations Lesson 8
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
<?xml version="1.0" encoding="utf-8" ?>
- <xliff version="1.0">
- <file source-language="en-US" target-language="fr-FR" datatype="XDO"
original="orphen.rtf" product-version="orphen.xlf" product name="">
<header />
- <body>
- <trans-unit id="" maxbytes="4000" maxwidth="15"
size-unit="char" translate="yes">
<source>Total</source>
<target>Totale</target>
196
Lesson 8 Implementing Sub-Templates and Template Translations
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Implementing Translations
Template application criteria determines which template is used for a report:
Student Notes
197
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
198
Implementing Sub-Templates and Template Translations
Lesson 8
Slide 108
199
Implementing Sub-Templates and Template Translations Lesson 8
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Activity Overview
In this activity, you will create a translation file for the Student Certificate to Dutch. The target language is
NL. The translations are listed in this table:
Source Target
Instructor Instructeur
Note. Use PTXMLP for the user name and password in this activity.
200
Lesson 8 Implementing Sub-Templates and Template Translations
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
5. Select Save.
Source Target
Instructor Instructeur
201
Implementing Sub-Templates and Template Translations Lesson 8
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Encoding UTF-8
11. On the Template Translation page, click the Upload button and select
Results
202
Lesson 8 Implementing Sub-Templates and Template Translations
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Results
2. Select CERTIFICATE.
Burst By A.STUDENT_ID
203
Implementing Sub-Templates and Template Translations Lesson 8
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
6. Click Save
Results
204
Lesson 8 Implementing Sub-Templates and Template Translations
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Course 1001
Session 405
4. Click OK.
Results
205
Implementing Sub-Templates and Template Translations Lesson 8
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Review
In this lesson, you learned that:
• Sub-templates can be created that contain formatting and data fields that are used in multiple templates.
• Translations are only used with RTF templates and are implemented using XLIFF files.
Student Notes
Additional Resources
This table lists additional resources that provide more details about the topics that we discussed in this lesson:
Topic Cross-Reference
Creating Reusable Sub-Template Definitions Enterprise PeopleTools 8.50 PeopleBook: XML Publisher
for PeopleSoft Enterprise,"Using RTF Templates"
Using the Content Library Enterprise PeopleTools 8.50 PeopleBook: XML Publisher
for PeopleSoft Enterprise,"Defining Report Definitions"
206
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Lesson 9
Objectives
Slide 111
207
Using Additional RTF Techniques Lesson 9
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Student Notes
Structured XML
A simple query (including a query with multiple joins) creates a tabular plain layout. To have a hierarchical
output, you need to use multiple grouping conditions that involve complicated logic and is not always straight
forward. Connected Query processing creates a hierarchical output where a single row of data from parent
query results in a set of rows in a child query. This data is processed row by row and produces structured
data. It has similarity with SQR and Application Engine nested loops processing.
Instead of using Application Engine or SQR to collect data for file processing by XML Publisher, use
Connected Query as the data collection tool because no conditional logic is involved in this process.
However, use SQR for processes with high volume of data or when high performance is required.
Crystal reports can include the main reports and a set of sub-reports that could be combined in the same
template. Using Connected Query, you can replace a Crystal reports having main reports and sub-reports with
XML Publisher reports.
208
Lesson 9 Using Additional RTF Techniques
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Query Description
XMLP_STUDENT_COURSES This query list all courses completed for a student. This
query is mapped to XMLP_STUDENTS based on
STUDENT_ID, so it will produce all of the completed
courses for a specific student.
209
Using Additional RTF Techniques Lesson 9
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Create Template
Using a Connected Query data source, you can create a report template containing multiple sections.
Student Notes
210
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED Lesson 9
211
Oracle University and Businessmind Colombia SA use only
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
212
Using Additional RTF Techniques
Lesson 9
Table/Form
The Table/Form window allows you to format your template by selecting nodes, styles, grouping and so on in
one window.
Student Notes
First you select the fields that you want to insert in the template and then you define how to format them.
Drag an XML element from the left Data Source pane to the right Template pane to select it. If the XML
element has children, you will see a pop-up menu with the following options:
Template pane to select it. If the XML element has children, you will see a pop-up menu with the following
options:
• Cancel
Select Drop Single Node if you want to move only the selected node or Drop All if you want to move the
node and it's children.
213
Using Additional RTF Techniques Lesson 9
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
If you drag an additional data field from the left Data Source pane to the right Template pane, it is either
inserted at the same level or below the node as a child where you release the node. The Insert Position box
determines which way the node is inserted.
If you use the left mouse button for the drag and drop, the node and all it's children are copied. If you use the
right mouse for dragging and dropping, a dialog box gives you the option to copy either only the selected
node or the selected node and all children.
Example: Table/Form
214
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED Lesson 9
You can then format your RTF template using these fields.
Using Additional RTF Techniques
215
Oracle University and Businessmind Colombia SA use only
Using Additional RTF Techniques Lesson 9
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Slide 115
216
Lesson 9 Using Additional RTF Techniques
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Activity Overview
In this activity, you will create a report template for Enrollments by Business Unit.
217
Using Additional RTF Techniques Lesson 9
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
1. In Microsoft Word, create a new blank document (File, New, Blank document.)
4. Click OK in the dialog box confirming the data source was loaded.
6. On the next line, use style Heading 1 and type Business Unit:
9. Drag Crs Session by Bu from the Data Source column to the Template column.
11. Click on Crs Session by Bu and change properties (3rd column on page) to:
Grouping A.TRAINING_LOC
13. Click on Stu Enrollment and change properties (3rd column on page) to:
Sort By B.STUDENT_NAME
14. In the template column delete A.student Id, A.course, A.session Nbr, B.customer Id.
Results
218
Lesson 9 Using Additional RTF Techniques
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
2. Using style Heading 1 type Training Location: before the inserted field A.TRAINING_LOC.
Heading Change To
A.course Code
B.descr Course
Results
219
Using Additional RTF Techniques Lesson 9
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
4. Click Add.
220
Lesson 9 Using Additional RTF Techniques
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Description Enrollment
8. Click the Upload button and select C:\Labs\XMLP\Templates\Student_enrollment.rtf and click Upload.
ID Type Role
221
Using Additional RTF Techniques Lesson 9
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Unit NAM02
7. Click on the Report Manager link and access the Administration tab.
Results
222
Lesson 9 Using Additional RTF Techniques
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
• The datetime element in the XML file must include the UTC offset, for example, 2008-07-28T09:00:00-
• The time zone must have a valid 3 character time zone code, for example PST or EST.
• The datetime field in the template should be formatted using an Oracle abstract format mask that displays
the time zone.
Slide 116
Student Notes
223
Using Additional RTF Techniques Lesson 9
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
A Query data source includes the UTC offset for datetime fields.
Slide 117
Student Notes
Canonical Format
In the canonical format:
• MM is the month
• DD is the day
• mm is the minutes
• ss is the seconds
• +HH:MM is the time zone offset from Universal Time (UTC), or Greenwich Mean Time
224
Lesson 9 Using Additional RTF Techniques
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Form Field
In your template document, use the form field to define the mask for your date time field. Specify the abstract
mask using the following syntax:
<?format-date:fieldname;'MASK'?>
For example:
<?format-date:hiredate;'SHORT'?>
<?format-date:hiredate;'LONG_TIME_TZ'?>
Slide 118
Student Notes
DateTime Masks
The following table lists the abstract format masks and the sample output that would be generated for US
locale:
SHORT 12/31/2009
225
Using Additional RTF Techniques Lesson 9
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
5. Click OK.
226
Lesson 9 Using Additional RTF Techniques
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Slide 119
227
Using Additional RTF Techniques Lesson 9
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Activity Overview
In the Training database, there is a test page to set up Live Virtual Class sessions. Depending on your
location, the start time will vary based on time zone. You need to create a report that reflects the time zone
you are using when you run the report.
The base time zone on the Training database is PST. You will add personalization to use EST.
The template has already been created, you just need to add time zone formatting. The template
LVCSchedule.rtf is in C:\Labs\XMLP\Templates.
Note. Use the T1B85001 database with the user name and password PTXMLP in this activity.
228
Lesson 9 Using Additional RTF Techniques
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Session 1 displays the time as PST, which is the base time zone for the database.
3. Select My Personalizations.
7. Click OK.
Results
229
Using Additional RTF Techniques Lesson 9
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Note. You could also right-click and select BI Publisher, Properties. If the Form Field Help Text dialog
box is not displayed, click the Add Help Text button.
4. Click OK.
4. Click Add.
230
Lesson 9 Using Additional RTF Techniques
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
8. Click the Upload button and select C:\Labs\XMLP\Templates\LVCSchedule.rtf and click Upload.
ID Type Role
Results
231
Using Additional RTF Techniques Lesson 9
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
1. Select My Personalizations.
4. Click OK.
232
Lesson 9 Using Additional RTF Techniques
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Student Notes
233
Using Additional RTF Techniques Lesson 9
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
3. In the RTF template map one or more fields to the fields that contain drilling URL
Slide 121
Student Notes
Creating Hyperlink
To create the hyperlink:
1. Highlight the field where you want to place the drilling URL
234
Lesson 9 Using Additional RTF Techniques
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
3. In the Insert Hyperlink dialog box, enter the URL link in Address field
Each URL link should be defined as {URL_FIELD}, where URL_FIELD is the unique field name for the
expression that contains a specific drilling URL.
235
Using Additional RTF Techniques Lesson 9
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Slide 122
236
Lesson 9 Using Additional RTF Techniques
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Activity Overview
In this activity, you will:
2. Modify the report template C:\Labs\XMLP\Templates\Course Listing by Type.rtf to use the drilling URL.
3. Create a report definition COURSE_TYPE using the query XMLP_COURSE_TYPE_DRILL as the data
source and C:\Labs\XMLP\Templates\Course Listing by Type.rtf for the template.
Note. Use the T1B85001 database with the user name and password PTXMLP in this activity.
237
Using Additional RTF Techniques Lesson 9
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Results
The URL opens another query displaying the course sessions for the selected course.
1. In Microsoft Word, select File, Open and select C:\Labs\XMLP\Templates\Course Listing by Type.rtf.
238
Lesson 9 Using Additional RTF Techniques
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
5. In the Address edit box of the Insert Hyperlink dialog box, type {EXPR7_7}.
Results
4. Click Add.
239
Using Additional RTF Techniques Lesson 9
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Description Drilling
8. Click the Upload button and select C:\Labs\XMLP\Templates\Course Listing by Type.rtf and click
Upload.
ID Type Role
240
Lesson 9 Using Additional RTF Techniques
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Results
4. Click Add.
9. Click Search.
10. Click the XMLP link for the COURSE_TYPE report and then the COURSE_TYPE.htm link.
241
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
242
Results
Using Additional RTF Techniques
Review
In this lesson, you learned that:
• Time zones can be used in XML Publisher reports using the Oracle abstract format mask.
Student Notes
Additional Resources
This table lists additional resources that provide more details about the topics that we discussed in this lesson:
Topic Cross-Reference
243
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Lesson 10
Objectives
• Create an application engine program to create the XML file and run the report.
Slide 125
245
Running Reports Using PeopleCode Lesson 10
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Student Notes
Classes
XML Publisher prepares the report data from the data source: a PS Query, a connected query, or an XML file.
Then, XML Publisher uses the PSXP_RPTDEFNMANAGER report definition classes to generate and route
the report. Optionally, XML Publisher uses the PSXP_REPORTMGR search classes to search for a report in
the reports repository.
The XML Publisher classes enable you to access the runtime portions of the XML publishing process
programmatically, that is, after the templates and reports have been created.
The XML Publisher classes reference includes the public subset of XML Publisher classes divided into the
following sections:
246
Lesson 10 Running Reports Using PeopleCode
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
• XML Publisher engine classes
Note. For most reports, you do not need to use the XML Publisher engine classes. In addition, you may or
may not use the report manager search classes after a report is published.
247
Running Reports Using PeopleCode Lesson 10
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Import Classes
For importing the XML Publisher classes, PeopleSoft recommends that you import all the classes in the
application package.
Slide 127
Student Notes
Importing Classes
The XML Publisher classes are not built-in classes, like rowset, field, record, and so on. They are application
classes. Before you can use these classes in your PeopleCode program, you must import them to your
program.
An import statement names either all the classes in a package or one particular application class.
Using the asterisks after the package name makes all the application classes directly contained in the named
package available. Application classes contained in subpackages of the named package are not made
available.
248
Lesson 10 Running Reports Using PeopleCode
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Publishing a Report
To generate and publish a report, the PeopleCode will:
Slide 128
Student Notes
Because this program generates and publishes a report, you need to import the report manager definition
class.
import PSXP_RPTDEFNMANAGER:*;
2. Initialize variables.
The variable declaration strings not only specify values for the variables, but give them type and scope as
well. This can be very useful when debugging.
Local string &RptDefnId = "CUST_RPT";
Local PSXP_RPTDEFNMANAGER:ReportDefn &oRptDefn;
Local File &MYFILE;
Local Rowset &MYFILEROWSET;
Local string &LanguageCode = "ENG";
Local string &Outputformat = "HTM";
Local string &ReportPath = GetEnv("PS_SERVDIR") | "filesreports";
Local string &FolderName = "General";
Local string &ServerName = "PSNT";
Local string &file = "C:\temp\CUSTXML_FILE2.XML";
249
Running Reports Using PeopleCode Lesson 10
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
3. Instantiate the report definition object and initialize it.
After you instantiate a report definition object, you must initialize it and populate it using the Get method.
&oRptDefn = create PSXP_RPTDEFNMANAGER:ReportDefn(&RptDefnId);
&oRptDefn.Get();
This report uses an XML file for the data source, so you must specify the location of the XML file for the
report before you process it. , 0
&oRptDefn.SetRuntimeDataXMLFile(&file);
You must process the report, generate a version of it for the report repository, before you can distribute
the report.
&oRptDefn.ProcessReport("", &LanguageCode, %Date, &Outputformat);
After you've generated the report, you may want to publish it to another location.
&oRptDefn.Publish(&ServerName, &ReportPath, &FolderName, 0);
250
Lesson 10 Running Reports Using PeopleCode
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Student Notes
SetPSQueryPromptRecord
Use the SetPSQueryPromptRecord method to specify an already instantiated record object that contains the
prompt values for the query to be used to populate the report.
You must use this method before using the ProcessReport method.
Syntax
SetPSQueryPromptRecord(&Record)
Example
/* fill prompt */
&rcdQryPrompts = &oRptDefn.GetPSQueryPromptRecord();
If Not &rcdQryPrompts = Null Then
If Not Prompt(&oRptDefn.GetPSQueryPromptRecord().Name, "",
&rcdQryPrompts) Then
Exit;
End-If;
&oRptDefn.SetPSQueryPromptRecord(&rcdQryPrompts);
End-If;
251
Running Reports Using PeopleCode Lesson 10
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
SetRuntimeDataXMLFile
Use the SetRuntimeDataXMLFile method to specify an existing file as the data source for the report.
Forward or back slashes are used in the path according to the operating system of the application server or
process scheduler server. That is, on Unix servers, the directory separator is a forward slash, while a
Windows server use a path with back slashes.
Syntax
SetRuntimeDataXMLFile(FilePath)
&oRptDefn.SetRuntimeDataXMLFile(&file);
252
Lesson 10 Running Reports Using PeopleCode
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
ProcessReport
Use the ProcessReport method to generate a report and store the information.
Syntax
ProcessReport(TemplateId, LanguageCD, AsOfDate, OutputFormat)
Slide 130
Student Notes
ProcessReport
After you use the ProcessReport method, you can use the Publish method to post the report, the
DisplayOutput method to display the report in a browser window, or the PrintOutput method to print the
report.
You can use quotes to take the default value from the report definition.
253
Running Reports Using PeopleCode Lesson 10
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Publish
Use the Publish method to publish the current report definition
Syntax
Publish(ServerName, ReportPath, FolderName, ProcessInstanceId)
Slide 131
Student Notes
Publish
This is an example of publishing a report using the variables defined in the PeopleCode:
/* Publish report */
&oRptDefn.Publish(&ServerName, &ReportPath, &FolderName, 0);
Output Destination
If the output destination is file, then specify the file path.
/* specify output destination when output type is file */
If %OutDestType = 2 Then /* file */
&oRptDefn.OutDestination = %FilePath;
End-If;
Use the PrintOutput method to print the report definition object executing the method:
If %OutDestType = 3 Then /* Printer */
&oRptDefn.PrintOutput(%FilePath);
End-If;
End-If;
254
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED Lesson 10
7
6
5
4
3
2
1
0
Value
File
Any
Web
Type
None
Email
Printer
Default
Window
Running Reports Using PeopleCode
255
Oracle University and Businessmind Colombia SA use only
Running Reports Using PeopleCode Lesson 10
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Displaying a Report
You can display a report online using the DisplayOutput method.
Student Notes
256
Lesson 10 Running Reports Using PeopleCode
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
/************************************************************/
/* Create a report to display online */
/************************************************************/
import PSXP_RPTDEFNMANAGER:*;
Local string &RptDefnId = "CUST_RPT";
Local PSXP_RPTDEFNMANAGER:ReportDefn &oRptDefn;
Local File &MYFILE;
Local Rowset &MYFILEROWSET;
Local Record &recl;
Local string &file = "C:tempCUSTXML_FILE2.XML";
257
Running Reports Using PeopleCode Lesson 10
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
258
Lesson 10 Running Reports Using PeopleCode
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Activity Overview
In this activity, you will create a new report definition for customer information, then modify the existing
PeopleCode to display your from a page and to publish the report and lastly run the reports.
Customer Report
The PeopleCode to run these reports is located on the record PSU_CUST_TBL on the CUST_BUTTON
(code to display report) and REPORT (code to publish report) fields. You will need to update this code with
your new report name.
Note. Use the T1B85001 database with the user name and password PTXMLP in this activity.
Push buttons have been added to the customer page to view and run these reports. Navigate to XML Publisher
Training, Customers.
259
Running Reports Using PeopleCode Lesson 10
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
3. Click Add.
7. Click the Upload button and select C:\Labs\XMLP\Templates\customer_rpt.rtf and click Upload.
260
Lesson 10 Running Reports Using PeopleCode
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
11. Select the Output page and review the output options.
ID Type Role
6. Replace <REPORT_NAME> with CUSTOMER, the name of the report you just created.
10. Replace <REPORT_NAME> with CUSTOMER , the name of the report you just created.
This code will run the report and place it in the report repository.
261
Running Reports Using PeopleCode Lesson 10
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
4. Click OK when you receive a message that the report was published to the report repository.
Results
262
Lesson 10 Running Reports Using PeopleCode
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Slide 134
Student Notes
No Input Parameters
If the report does not contain any input parameters, you can use the standard run control record
PRCSRUNCTRL.
Input Parameters
If the report contains input parameters, you need to create a new run control record to include your
parameters. You can open PRCSRUNCNTL and Save as a new record, then add your additional fields.
263
Running Reports Using PeopleCode Lesson 10
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
State Record
The state record for the program needs to include the parameters necessary to run the report.
264
Lesson 10 Running Reports Using PeopleCode
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
The XML Publisher report name, Process Scheduler process name, and the Application Engine process name
must all be the same.
Slide 135
Student Notes
The run control step is used to populate the state record (in this case PT_XRFWIN_AET) with the run control
ID, user and language.
%Select(PT_XRFWIN_AET.OPRID, PT_XRFWIN_AET.RUN_CNTL_ID,
PT_XRFWIN_AET.LANGUAGE_CD)
SELECT OPRID
, RUN_CNTL_ID
, LANGUAGE_CD
FROM %Table(PRCSRUNCNTL)
WHERE OPRID = %OperatorId
AND RUN_CNTL_ID = %RunControl
265
Running Reports Using PeopleCode Lesson 10
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
import PSXP_RPTDEFNMANAGER:*;
/* XML Publisher sample report using query data source */
Local PSXP_RPTDEFNMANAGER:ReportDefn &oRptDefn;
/* create report definition */
&oRptDefn = create PSXP_RPTDEFNMANAGER:ReportDefn("XRFWIN");
&oRptDefn.Get();
/* specify output destination when output type is file */
If %OutDestType = 2 Then /* file */
&oRptDefn.OutDestination = %FilePath;
266
Lesson 10 Running Reports Using PeopleCode
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Process Definition
After creating the application engine program, you will need to set up the process definition and where you
want to run the report.
Student Notes
• Create a new Run Control page and component or associate the application engine program with an existing
Run Control component.
• Create a Process Definition with the same name as the application engine program and using type XML
Publisher
267
Running Reports Using PeopleCode Lesson 10
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
268
Lesson 10 Running Reports Using PeopleCode
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
• GetPSQueryPromptRecord()
• SetPSQueryPromptRecord(&Record)
Use the SetPSQueryPromptRecord method to specify an already instantiated record object that contains the
prompt values for the query to be used to populate the report.
Slide 137
Student Notes
Fill
This snippet of sample code is used to populate the query prompt values:
/* fill prompt */
&rcdQryPrompts = &oRptDefn.GetPSQueryPromptRecord();
If Not &rcdQryPrompts = Null Then
&rcdQryRunParms = CreateRecord(Record.PSU_RUN_CRS_BU);
&sqlSelectQryParms = CreateSQL("%Selectall(:1) WHERE OPRID = :2 AND
RUN_CNTL_ID = :3");
&sqlSelectQryParms.Execute(&rcdQryRunParms, %OperatorId,
PSU_CRS_AET.RUN_CNTL_ID);
While &sqlSelectQryParms.Fetch(&rcdQryRunParms)
For &i = 1 To &rcdQryPrompts.FieldCount
&FieldValue = &rcdQryPrompts.GetField(&i).Name;
&rcdQryPrompts.GetField(@("Field." | &FieldValue)).Value =
&rcdQryRunParms.GetField(@("Field." | &FieldValue)).Value;
End-For;
End-While;
&sqlSelectQryParms.Close();
&oRptDefn.SetPSQueryPromptRecord(&rcdQryPrompts);
End-If;
SQLExec("SELECT START_DATE FROM <RUN_CONTROL_TABLE> WHERE OPRID = :1 AND
RUN_CNTL_ID = :2", %OperatorId, PSU_CRS_AET.RUN_CNTL_ID, &type);
269
Running Reports Using PeopleCode Lesson 10
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Slide 138
270
Lesson 10 Running Reports Using PeopleCode
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Activity Overview
In this activity, you will:
1. Modify application engine program to run Customer Training report. This table lists the details for the
application engine program:
Definition Name
Definition Name
Component RUN_COURSE_TYPE
Note. Use the T1B85001 database with the user name and password PTXMLP in this activity.
271
Running Reports Using PeopleCode Lesson 10
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
4. Click Add.
Component RUN_COURSE_TYPE
7. Click Save.
272
Lesson 10 Running Reports Using PeopleCode
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Results
The process definition is type XML Publisher and the options determine the component and process group.
1. Select XML Publisher Training, Run XMLP Reports, Run Course Type Report.
2. Select Add a New Value tab and enter Run Control ID Type.
2. Expand My Favorites.
273
Running Reports Using PeopleCode Lesson 10
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Results
The process is added to My Favorites, however you can not run the report.
Record.Field COURSE_TYPE
274
Lesson 10 Running Reports Using PeopleCode
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
5. Click OK.
Results
275
Running Reports Using PeopleCode Lesson 10
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
File Layout
File layouts can be used to output data to an XML file.
4. Select XML for the file output and enter the File Definition Tag.
5. For records and fields, you can change the tags if desired.
Slide 139
Student Notes
276
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED Lesson 10
277
Oracle University and Businessmind Colombia SA use only
Running Reports Using PeopleCode Lesson 10
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
278
Lesson 10 Running Reports Using PeopleCode
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Student Notes
279
Running Reports Using PeopleCode Lesson 10
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
/* Close the file */
&MYFILE.Close();
280
Lesson 10 Running Reports Using PeopleCode
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Slide 141
281
Running Reports Using PeopleCode Lesson 10
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Activity Overview
In this activity, you have been asked to create a new report that lists student experience by student. You will
need to create the data source, create the template, define the report and modify the application engine
program to publish the report.
• The application engine program STUDENT_EXP will write an XML file, based on the Student Id provided
on the run control page.
Once you have created your data source, template and report definition, you can add a step to this
application engine program to publish the report.
• To access the run control page for this program, select XMLP Training, Run Student Report.
Note. Use PTXMLP for the user name and password in this activity.
282
Lesson 10 Running Reports Using PeopleCode
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
1. Select XML Publisher Training, Run XMLP Reports, Run Student Report.
5. Click Run.
6. Click OK.
9. Verify that the Run Status is Success and Distribution Status is Posted.
13. Enter STUDENT_EXP for the Data Source ID and click Add.
283
Running Reports Using PeopleCode Lesson 10
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Note. The data source contains two rowsets, when you use the table/form wizard make sure you select the
correct rowset in the Grouping Field.
Suggested Layout
3. Click Add.
284
Lesson 10 Running Reports Using PeopleCode
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
7. Click the Upload button and select C:\Labs\XMLP\Templates\student_exp.rtf and click Upload.
11. Select the Output page and review the output options.
ID Type Role
285
Running Reports Using PeopleCode Lesson 10
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
6. Double-click the action and enter the PeopleCode to publish the STUDENT_EXP report.
1. Select XML Publisher Training, Run XMLP Reports, Run Student Report.
4. Click Run.
5. Click OK.
10. Enter STUDENT_EXP for the Report Definition ID and click Search.
286
Lesson 10 Running Reports Using PeopleCode
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Review
In this lesson, you learned that:
• The XML Publisher classes enable you to access the runtime portions of the XML publishing process
programmatically, that is, after the templates and reports have been created.
• The XML Publisher classes can be used in application engine programs to publish XML Publisher reports.
Slide 142
Student Notes
Additional Resources
This table lists additional resources that provide more details about the topics that we discussed in this lesson:
Topic Cross-Reference
Run reports using PeopleCode Enterprise PeopleTools 8.50 PeopleBook: XML Publisher
for PeopleSoft Enterprise, "Running Reports Using
PeopleCode"
Run reports from Application Engine Enterprise PeopleTools 8.50 PeopleBook: XML Publisher
for PeopleSoft Enterprise, "Running Reports in Process
Scheduler"
287
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Lesson 11
Course Review
Objectives
• Create templates.
Slide 144
289
Course Review Lesson 11
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
XML Publisher
XML Publisher is a template-based reporting solution that separates the data extraction process from the
report layout:
290
Lesson 11 Course Review
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Slide 146
291
Course Review Lesson 11
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Data Sources
XML data can be generated using any means including PS Query, SQR, Application Engine, PeopleCode,
File Layout and so forth.
For PS Query, the system will generate the sample data and schema.
Slide 147
292
Lesson 11 Course Review
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Creating Templates
Template Design
Template design involves the construction of a report's layout in a template file.
For RTF templates, the design plug-in facilitates mapping the sample data file fields into the report template.
For PDF templates, you can generate a mapping file that associates existing from fields with the appropriate
Slide 148
293
Course Review Lesson 11
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Slide 149
294
Lesson 11 Course Review
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
• Batch PeopleCode
Reports stored in folders can be viewed using:
• Report Manager
Slide 150
295
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Appendix A
Supplemental Information
• XMLP Tables
XMLP Tables
This table lists the tables used for XML Publisher:
297
Supplemental Information Appendix A
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Table Description
298
Appendix A Supplemental Information
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
Table Description
299
Supplemental Information Appendix A
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED
To insert XMLP definitions into a project in Application Designer, select Insert, Definitions into project. It is
important to select all related definitions.
XMLP template translation uses related XLIFF files (one for each language) that contain not only specific
• Find template definitions and template translations for which file objects are missing.
PSXPCLEAN could be scheduled and run via PeopleTools, Process Scheduler, System Process Request page.
This program should be run on a regular basis to keep template metadata consistent.
Note. This program is delivered with PeopleTools 8.49 and above. This program also works for PeopleTools
8.48 and is available on Customer Connection.
300