XML Publisher Setup & Template Guide
XML Publisher Setup & Template Guide
XML PUBLISHER
Bursting Options
XML PUBLISHER INTRODUCTION
generation.
ü XML Publisher provides the ability to design and create report layout
templates with the more common desktop applications of Microsoft
Word and Adobe Acrobat, and renders XML data based on those
templates.
ü XML Publisher Global Engine settings are defined in the xdo.cfg file. The
default.
Bursting Options
Prepare to use XML Publisher
<properties>
<!-- System level properties -->
<property name="xslt-xdoparser">true</property>
<property name=“xslt- scalable">true</property>
<property name="system-temp-dir">CACHE</property>
<property name="system-cachepage-size">50</property>
<!-- PDF compression -->
<property name=“pdf-compression">true</property>
<!-- PDF Security -->
<property name=“pdf-security">true</property>
<property name=“pdf-open-password">user</property>
<property name=“pdf-permissions-password">owner</property>
</properties>
</config>
Bursting Options
Prepare to use XML Publisher
üPs Query:
üSelect Reporting Tools, XML Publisher,Data source,Data source type.
People Soft - People Tools
ü Xml file:
üSelect Reporting Tools, XML Publisher,Data source,Data source type.
People Soft - People Tools
Introduction
RTF file type to XSL-FO. You can therefore create report designs using many of
your standard word processing application’s design features and XML Publisher
will recognize and maintain the design.
During design time, you add data fields and other markup to your template
using XML Publisher’s simplified tags for XSL expressions. These tags associate
the XML report data to your report layout. XML Publisher also supports the use of
pure XSL elements in the template.
Supported Modes
Overview
RTF template content and layout must correspond to the content and
People Soft - People Tools
hierarchy of The input XML file. Each data field in your template must map to an
element in the XML file. Each group of repeating elements in RTF template must
correspond to a parent-child relationship in the XML file.
To map the data fields you define placeholders. To designate the repeating
elements, you define groups.
Note: XML Publisher supports regrouping of data if your report requires grouping that
does not follow the hierarchy of your incoming XML data.
Bursting Options
Creating an RTF Template
Use your word processing application’s formatting features to create the design.
People Soft - People Tools
For example:
üSelect the size, font, and alignment of text
üInsert bullets and numbering
üDraw borders around paragraphs
üInclude a watermark
üInclude images (jpg, gif, or png)
üUse table auto formatting
üInsert a header and footer.
Bursting Options
Creating New template
ü üGo to Programs open Micro soft word and go to file open new template.
ü In that we have five options
People Soft - People Tools
1.Data
2.Insert
ü 3.Preview
ü 4.Tools
ü 5.Help
üü Load your Xml data, Xml schema file into Data option.
ü
ü Go to Insert option you can insert all fields which is there in xml file.
ü
üü you can add Header and Footer for your template.
ü
üü Go to Preview Option You can select RTF format.
üü
ü Save the template .
Bursting Options
Sample template
ü üHeader Section:
People Soft - People Tools
ü
ü
ü
ü
ü
ü
ü
ü
ü
ü
Bursting Options
Sample Template
ü üFooter Section:
People Soft - People Tools
ü
ü
ü
ü
ü
ü
ü
ü
ü
ü
Bursting Options
Template Defination
ü
ü Upload the template file.
People Soft - People Tools
ü
ü
ü
ü
ü
ü
ü
ü
ü
ü
Bursting Options
Creating Report Definition
ü
ü
ü
ü
ü
ü
ü
ü
ü
ü
Bursting Options
Setting output options
ü
People Soft - People Tools
ü
ü
ü
ü
ü
ü
ü
ü
ü
ü
Bursting Options
Setting Security options
ü
People Soft - People Tools
ü
ü
ü
ü
ü
ü
ü
ü
ü
ü
Bursting Options
Bursting Options
ü
ü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.
People Soft - People Tools
ü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 vendor purchase orders or customer
üü
üinvoices. With bursting, you can generate individual report files resulting in
üseparate secured output. For example, generating a file for each vendor,
customer or employee.
ü
üü
Bursting can only be defined when the report’s data source has an
üassociated schema file. Numerous bursting instructions depend upon
üthe data coming from the application as defined by the schema tags.
ü
Bursting Options
üWhen users are assigned a role with PTPT2600 permission list, they have access to
setup entries on the Bursting page.
People Soft - People Tools
üThere is also a view only permission list (PTPT2500) option for XML Publisher power
users that provides view-only access to the bursting information.
üThe bursting page appears for the power user only when there are existing bursting
instructions for the report.
Bursting Options
Bursting Options
ü
People Soft - People Tools
ü
ü
ü
ü
ü
ü
ü
ü
ü The report generates multiple files at runtime with a separate report
ü instance file generated each time a unique value appears for the Burst by data
tag. This feature dynamically drives the template assignment at runtime based
upon the data value of a designated schema tag. You can assign a language
code to apply a specific template translation as well.
Bursting Options
ü A template ID should be selected for each data value that requires a special template.
ü At runtime, the process looks for the specified template and language.
People Soft - People Tools
If the language does not exist, then the base untranslated template is applied.
If a data value is encountered that is not assigned on the report definition, then the
template ID entered on the run control is assigned.
If no Template ID selection is captured at runtime, then the default template of the
report definition is applied.
•
Bursting Options
People Soft - People Tools
ü The report designer must provide the record name of the security join
table and
designate the common fields to join with the bursting field.
People Soft - People Tools
ü The system performs the join and determine who can view the report
instances. This matching allows the Report Manager’s posting process to
dynamically identify the user IDs or roles that are assigned viewing rights for
each report instance.
ü
ü At least one type of security should be completed either on the Security
page or on the Bursting page.
ü
ü Set security in both places to secure bursted files differently from securing
the report definition.
ü
ü If security on the Bursting page is blank, then the security set on the
Report Definition Security page applies.
ü
ü If the Security page is also blank, then the report requestor gets put in as
the viewer by default and all the bursted report files are accessible only by the
report requestor.
ü Security can be assigned from all three places, if desired.
Bursting Options
Running Xml Publisher
ü
Reports can be generated by using Xml Publisher in three ways :
ü Process scheduler
ü ü Peoplecode
ü
ü By Using Query report viewer we can run only one datasource
ü üPs Query
ü
ü By using Process scheduler and Peoplecode we can run all types of datasources
ü
ü üPs Query
ü üXml File
ü üXml Doc
üRowset
Bursting Options
Running Ps Query using Query Report Scheduler
ü
üSelect Reporting Tools, XML Publisher, Query Report Scheduler.
People Soft - People Tools
ü
ü
ü
ü
ü
ü
ü
ü
ü
ü
Bursting Options
Running Ps Query using Query Report Scheduler
ü
ü
ü
ü
ü
ü
ü
ü
ü
ü
ü ü
import PSXP_RPTDEFNMANAGER:*;
/* get report definition object */
&oRptDefn = createPSXP_RPTDEFNMANAGER:ReportDefn (&sRptDefn);
People Soft - People Tools
&oRptDefn.Get();
ü /* fill query runtime prompt record */
ü &rcdQryPrompts = %RptDefn.GetPSQueryPromptRecord();
ü If Not &rcdQryPrompts = Null Then
&oRptDefn.SetPSQueryPromptRecord(&rcdQryPrompts);
ü End-If;
ü /*generate report*/
ü &oRptDefn.ProcessReport (&sTmpltID, &sLangCd, &AsOfDate,
ü &sOutFormat);
ü /*publish report */
ü &oRptDefn.Publish(&sPrcsServerName,"",&sFolder, &prcsInstId);
ü
Bursting Options
Running Ps Query By using Peoplecode
ü ü
import PSXP_RPTDEFNMANAGER:*;
/* get report definition object */
People Soft - People Tools
ü import PSXP_RPTDEFNMANAGER:*;
Local XmlDoc &xmlDoc;
Local PSXP_RPTDEFNMANAGER:ReportDefn &rptDefn;
Local boolean &ret;
People Soft - People Tools
&xmlDoc = CreateXmlDoc("");
ü &ret = &xmlDoc.ParseXmlFromURL("C:\report\PHONELIST.xml");
ü /* get report definition object */
&oRptDefn = createPSXP_RPTDEFNMANAGER:ReportDefn (&sRptDefn);
ü &oRptDefn.Get();
ü /* Attach XML Doc to the report definition */
ü &oRptDefn.SetRuntimeDataXMLDoc(&xmlDoc);.
ü /*generate report*/
ü &oRptDefn.ProcessReport (&sTmpltID, &sLangCd, &AsOfDate,
ü &sOutFormat);
ü /*publish report */
&oRptDefn.PrintOutput(&sDestinationPath);
ü
Bursting Options
Running XML Doc By using Peoplecode
ü import PSXP_RPTDEFNMANAGER:*;
Local PSXP_RPTDEFNMANAGER:ReportDefn &oRptDefn;
Local Rowset &oRowSet;
/* get report definition object */
People Soft - People Tools
ü
üSelect Reporting Tools,Report manager.
People Soft - People Tools
ü
ü
ü
ü
ü
ü
ü
ü
ü
ü
Bursting Options
Viewing Report
ü
People Soft - People Tools
ü
ü
ü
ü
ü
ü
ü
ü
ü
ü
Bursting Options
ü
People Soft - People Tools
ü
ü
ü
ü Thank You
ü
ü
ü
ü
ü
ü