YOU ARE DOWNLOADING DOCUMENT

Please tick the box to continue:

Transcript
Page 1: Xml Publisher And Reporting To Excel

XML Publisher and Reporting to Excel

Duncan Davies, Jay Jorgensen and Adam ClarkAllinity

Page 2: Xml Publisher And Reporting To Excel

Who are we?

Duncan Davies - Technical Consultant (Allinity)Email: [email protected]

Adam Clark - Technical Consultant (Allinity)Email: [email protected]

Jay Jorgensen - External ConsultantEmail: [email protected]

Page 3: Xml Publisher And Reporting To Excel

What are we covering today?

1. XML Publisher - Duncan

2. Reporting to Excel Overview - Adam

3. Reporting to Excel Deep-Dive - Jay

4. Questions

Page 4: Xml Publisher And Reporting To Excel

What is XML Publisher?

“Publisher is the only Reporting Platform for Fusion Apps”

Page 5: Xml Publisher And Reporting To Excel

XMLPublisherEngine

How does it work?

XML Data Source

Technical Task

TemplateLayout

Business TaskReportOutput

Page 6: Xml Publisher And Reporting To Excel

Step 1

Create an App Engine to supply:

1. XML Sample Data File

2. XSD Schema File

Page 7: Xml Publisher And Reporting To Excel

Step 1 Code – Populate Rowset

Page 8: Xml Publisher And Reporting To Excel

Step 1 Code – Output Files

Page 9: Xml Publisher And Reporting To Excel

Step 2

Create an RTF template in Word using the XML Sample data file.

Page 10: Xml Publisher And Reporting To Excel

Step 3

Within PeopleSoft, create:

1. Data Source Defn

2. Report Defn

3. Process Defn

Page 11: Xml Publisher And Reporting To Excel

Step 3 – Data Source Definition

Page 12: Xml Publisher And Reporting To Excel

Step 3 – Report Definition

Page 13: Xml Publisher And Reporting To Excel

Step 4

Update your App Engine to output full data, then run it.

Page 14: Xml Publisher And Reporting To Excel

Step 4 Code – Code Changes

Page 15: Xml Publisher And Reporting To Excel

Advanced Use

• Bursting

• Content Library

• Translations

Page 16: Xml Publisher And Reporting To Excel

What’s good?• Single Toolset

• Business users don’t need a techie to layout a report

• Highly Flexible

• Easier upgrade to Fusion

• Quick and easy

Page 17: Xml Publisher And Reporting To Excel

What’s not good?• XML/XSL knowledge needed for complex reports

• Excel output very basic

• No update until 2008 (Tools 8.50)

• Need to useReport Mgr

Page 18: Xml Publisher And Reporting To Excel

What other tips can we give?

• Make sure all rowset levels are filled in sample data.

• RTFs not shown in Process Monitor, so set up Report Manager.

• Limit the size of the

rowset for sample data.

• Sort data in Code

Page 19: Xml Publisher And Reporting To Excel

AEXLSOverview

Page 20: Xml Publisher And Reporting To Excel

Why?

• Client required a reporting solution

– Output to Microsoft Excel

– Must be a PeopleTools solution

Page 21: Xml Publisher And Reporting To Excel

• Output onto Multiple Sheets

• Complete control of individual cells

– Formatting of individual rows/columns/cells

– Formulas

• Client specific Branding/Formatting

Page 22: Xml Publisher And Reporting To Excel

Options

• XMLP

• SQRXLS

• nVision

• XSLT for XMLP

Page 23: Xml Publisher And Reporting To Excel

The Solution

• Application Package

– Kept within PeopleSoft

– Standard PeopleSoft APIs

– Classes and Methods

Page 24: Xml Publisher And Reporting To Excel

Benefits

• Rapid development

– Standard PeopleCode

– Object oriented API

– Simply pass a RowSet to the constructor

Page 25: Xml Publisher And Reporting To Excel

Example

Page 26: Xml Publisher And Reporting To Excel

Summary

• Client Requirements

• Flexibility

• Rapid Development

Page 27: Xml Publisher And Reporting To Excel

AEXLSThe Internals

Page 28: Xml Publisher And Reporting To Excel

What Have We Done

• Formatting – text, cell and sheet

• Print and Page Settings

• Formulas and Functions

• Multiple sheets

• Named Ranges

Page 29: Xml Publisher And Reporting To Excel

What Can be Done

• Short answer – everything but Macro’s and Passwords

• For Example– Pivot Tables– Charts– Hyperlinks (drill-down like nVision)– Data Functions – filters, sorting etc– Smart Tags and Comments

Page 30: Xml Publisher And Reporting To Excel

Components

• Excel/XML

• XMLDOC Object

• Application Packages

Page 31: Xml Publisher And Reporting To Excel

Excel/XML• Need to learn XML

• Simple Cascade - Worksheet/Column/ Row/Cell

• Styles used like CSS

• Namespaces and Schemas

• MS Schema’s of some use

Page 32: Xml Publisher And Reporting To Excel

XMLDoc• PeopleSoft’s XML Parser

• Provides random access to the xml document – Like a Database

• Based on W3C standards – Uses XPath

• XPath is like a directory structure

Examples• Get a Sheet

Findnode(Workbook\Worksheet

[@Name=“Sheet1”] )• Get a Cell

Findnode(Workbook\Worksheet

[@Name=“Sheet1”]\Row\Cell

[@Index=“4”]\Data\Text()

Page 33: Xml Publisher And Reporting To Excel

App Packages• Object Oriented

Approach – Classes

• Makes things more complex but so much faster/easier to maintain.

• Model your classes on the excel objects – sheets, cells etc

• Quicker debugging

Page 34: Xml Publisher And Reporting To Excel

Problems

• Namespaces and XMLDoc

• Other XMLDoc Issues

• Performance

Page 35: Xml Publisher And Reporting To Excel

Tips• Plan your object model first

• Remove namespaces and add them in by string manipulation after XMLDoc is finished

• Consider generating large chunks of data by other methods (e.g. SQL)

• Leverage PeopleSoft Metadata (e.g. Field labels, translate and prompts)

• Apply a template (like the report class)

Page 36: Xml Publisher And Reporting To Excel

Finish

• Time estimates– 2 man months for the Excel generator

– 1 man month for the template overlay

– Much of this is learning curve

• Time is easily recouped in developing reports etc that use it.

Page 37: Xml Publisher And Reporting To Excel

Thanks for listening.

Does anyone have a Question?


Related Documents