SlideShare a Scribd company logo
1 of 21
BI Publisher
   formerly XML publisher




BI Publisher Classes
Agenda
•   BI Publisher overview.

     –   What is it and Where is it?

     –   Advantages of BI Publisher.

•   Advanced Reporting

     –   Using People Code BI Publisher Classes.
BI Publisher
•   Released in PeopleTools 8.52.

•   Standalone Java based technology that streamlines report generation.

•   Template based reporting tool, separating data extraction from report layout.

•   Can create report templates using Windows applications like Microsoft Word, Adobe Acrobat.

•   Generate multiple reports in many formats like PDF,RTF,HTML and EXCEL,POWER POINT etc.
What is BI Publisher?
 A template-based reporting tool
 Separates querydata, Report layout, Translation
 Creating and generating day to day Business oriented Reports
Users can create:

•   Customer-ready PDF documents, such as financial statements, marketing materials, contracts, invoices, and
    purchase orders utilizing colors, images, font styles, headers and footers, and many other formatting and
    design options

•   Excel output to create a spreadsheet of your report data

•   PowerPoint slides for presentations

•   "Filled-out" third-party provided PDF documents (such as 1099s). Download a PDF document, such as a
    government form, to use as a template. At runtime, the data and template produce a "filled-out" form
BI Publisher Classes
BI Publisher classes divided into the following sections:

•   BI Publisher Report manager Definition class

•   BI Publisher Report manager class

•   BI Publisher Engine class

Before using above classes following application packages are import the peoplecode
program
            import PSXP_RPTDEFNMANAGER
            import PSXP_REPORTMGR
            import PSXP_ENGINE
1.Report Definition Class

ReportDefn

Syntax
   ReportDefn(ReportId)
   Note : Report id should be unique

Description
   Use the ReportDefn class to generate and publish report output.

Example
   import PSXP_RPTDEFNMANAGER : ReportDefn &rptDefn;
Report Definition Class Methods
Get
Syntax
     Get();    Eg :- &RptDefn.Get();
Description
    Use the Get method to return a reference to the existing ReportDefn object.
Parameters
    None. It does not take any Input parameters.
Returns
    A reference to the newly instantiated and populated ReportDefn object.



SetRuntimeDataXMLFile                         ( Data Source is XML file )
Syntax
    SetRuntimeDataXMLFile(FilePath)
Description
     Use the SetRuntimeDataXMLFile method to specify an existing XML file as the data source for the report.
Example :
    &rptDefn.SetRuntimeDataXMLFile(&sFileName).
Report Definition Class Methods Continued….

GetPSQueryPromptRecord                           ( Data Source is PS Query )
Syntax
    GetPSQueryPromptRecord()
Description
    Use the GetPSQueryPromptRecord method to return the runtime prompts of a query as a record object. This
    method should only be used when the data source type associated with the report definition is a PeopleSoft
    query. This method returns a null when the data source type isn't a PeopleSoft Query.



SetPSQueryPromptRecord
Syntax
    SetPSQueryPromptRecord(&Record)
Description
    This method can only be used with reports that have a PeopleSoft query defined as the data source.
    You must use this method before using the ProcessReport method.
Report Definition Class Methods Continued….


ProcessReport
Syntax
    ProcessReport(TemplateId, LanguageCD, AsOfDate, OutputFormat)
    Use the ProcessReport method to generate a report and store the information.

Before you generate the report, you must:

    Set the report output destination with the OutDestination property if the output type is a file.
    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.
Report Definition Class Methods Continued….
Publish
Syntax
    Publish(ServerName, ReportPath, FolderName,ProcessInstanceId)
            &rptDefn.Publish(&serverName, "", &folderName, &PID);

Description
   use the Publish method to post the report
Report Definition Class Methods Continued….


DisplayOutput
Syntax
    DisplayOutput()
Description
    Use the DisplayOutput method to display the report generated by the ProcessReport method in a separate
    browser window.
    You must successfully call the ProcessReport method prior to calling this method.
    This method displays a single report. Therefore, the report definition must not be set for bursting.
Parameters
    None.
Example : &rptDefn.DisplayOutput ()
2.BI Publisher Engine Class
 BI Publisher Engine class can be divided into 4 categories
      1.PageNumber class
      2.PDFMerger class
      3.Properties class
      4.Watermark class

 PageNumber
 Syntax
      PageNumber()
 Description
     Use the PageNumber constructor to instantiate a PageNumber object.
 Example :
     import PSXP_ENGINE:PageNumber;
     Local PSXP_ENGINE:PageNumber &pNum;
     &pNum= create PSXP_ENGINE:PageNumber(); ( Creating a Page Number )
1.PageNumber Class Properties
FontSize
Description
    Use the FontSize property to specify the size of the page number, as a number.
    The default value is 8.
    This property is read-write.
Example :
            Local PSXP_ENGINE:PageNumber &oPageNumber;
             &oPageNumber.FontSize = 16;

PositionX
Description
     Use the PositionX property to specify the X axis position of the text page number in the merged document.
     This property is read-write.
PositionY
Description
     Use the PositionY property to specify the Yaxis position of the text page number in the merged document.
     This property is read-write.
Example :
             &oPageNumber.PositionX = 300;
             &oPageNumber.PositionY = 20;
PageNumber Class Properties….

StartFromPageNum

Description
    Use the StartFromPageNum property to specify the page index from
    which you'd like to start the page numbering.

    For example,
    if you have a PDF document which has two cover pages, and you want to start printing
    page numbers on the document from the third page, specify a three for this property.
    This property is read-write.
2.PDFMerger Class
PDFMerger

Syntax
     PDFMerger()
Description
     Use the PDFMerger constructor to instantiate a PDFMerger object.
Parameters
     None.
Returns
     A reference to a PDFMerger object.
Example :

            import PSXP_ENGINE:PDFMerger;
            Local PSXP_ENGINE:PDFMerger&Merger
            &Merger =createPSXP_ENGINE:PDFMerger();
PDF Merger Class Methods….
MergePDFs
Syntax
    MergePDFs(PDFFileArray, PDFOutputFile, Error)
Description
    Use the MergePDFs method to merge the specified PDF files into a single output file.
    The order of the files specified in the array are the order in which the files are merged.
Parameters
PDFFileArray
    Specify an already instantiated and populated array of string containing the names of the PDF files that
    you want to
    merge together.
PDFOutputFile
    Specify the full path name of the file you want populated with the merged PDF file.
    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 returns a path with back slashes.
Error
    If any errors occur during processing, this parameter is populated with the text of the error message after
    processing.
Returns
A Boolean: true if the method completed successfully, false otherwise. If this method returns false,
The Error parameter is populated with the text of the error message that occurred.
Example :

    Local PSXP_ENGINE:PDFMerger &Merger;
    &sErr = "";
    &arrayName = CreateArray(&sPdfFile1);
    &arrayName.Push(&sPdfFile2);
    &Result = &oMerger.mergePDFs(&arrayName, &sOutputPdfFile, &sErr);
Sample BI Publisher Program

To generate and publish a report:
Step 1 :
Import the appropriate application class.
Because this program generates and publishes a report, you need to import the report manager definition class.
      import PSXP_RPTDEFNMANAGER:ReportDefn;
Step 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 &sFileName = "c:pathfilename.xml";
            Local string &rptDefnId = "Financial";
            Local string &LanguageCode = "ENG";
            Local date &effdt = Date(20090821);
            Local string &outputfmt = "HTM";
            Local string &folderName = "General";
            Local string &serverName = "PSNT";
            Local PSXP_RPTDEFNMANAGER:ReportDefn &rptDefn;
Sample BI Publisher Program

Step 3 :
Instantiate the report definition object and initialize it.

     /* Create report definition and connect to the generated XML document. */

&rptDefn = create PSXP_RPTDEFNMANAGER:ReportDefn(&rptDefnId);
Step 4:
After instantiate report definition objet using Get method to populate report definition object.
&rptDefn.Get();
Step 5:
Specify the data for the report.

     This report uses an XML file as the data source, so you must specify the runtime data source for the report
     before you process it.

     &rptDefn.SetRuntimeDataXMLFile(&sFileName);
Sample BI Publisher Program




Step 6 :
Process the report.

    You must process the report, generate a version of it for the report repository, before you can distribute
    the report.

     &rptDefn.ProcessReport("", &languageCd, &effdt, &outputfmt);
Step 7:
Publish the report.

    After you've generated the report, you may want to publish it to another location.

    &rptDefn.Publish(&serverName, "", &folderName, &PID);
Q & A

    Thank you

More Related Content

What's hot

Many Faces Of Bi Publisher In Oracle Ebs
Many Faces Of Bi Publisher In Oracle EbsMany Faces Of Bi Publisher In Oracle Ebs
Many Faces Of Bi Publisher In Oracle EbsHossam El-Faxe
 
HP ArcSight Asset Model Import FlexConnector Developer's Guide
HP ArcSight Asset Model Import FlexConnector Developer's GuideHP ArcSight Asset Model Import FlexConnector Developer's Guide
HP ArcSight Asset Model Import FlexConnector Developer's GuideProtect724tk
 
Ibm lotus domino integration using ibm tivoli directory integrator redp4629
Ibm lotus domino integration using ibm tivoli directory integrator redp4629Ibm lotus domino integration using ibm tivoli directory integrator redp4629
Ibm lotus domino integration using ibm tivoli directory integrator redp4629Banking at Ho Chi Minh city
 
Murach : How to develop a single-page MVC web
Murach : How to develop a single-page MVC web Murach : How to develop a single-page MVC web
Murach : How to develop a single-page MVC web MahmoudOHassouna
 
Oracle Apps Technical Manual
Oracle Apps Technical ManualOracle Apps Technical Manual
Oracle Apps Technical ManualHossam El-Faxe
 
Share point review qustions
Share point review qustionsShare point review qustions
Share point review qustionsthan sare
 
Oracle Applications R12 architecture
Oracle Applications R12 architectureOracle Applications R12 architecture
Oracle Applications R12 architectureSekhar Byna
 
Rational Publishing Engine with Rational DOORS
Rational Publishing Engine with Rational DOORSRational Publishing Engine with Rational DOORS
Rational Publishing Engine with Rational DOORSGEBS Reporting
 
Murach: An introduction to web programming with ASP.NET Core MVC
Murach: An introduction to web programming with ASP.NET Core MVCMurach: An introduction to web programming with ASP.NET Core MVC
Murach: An introduction to web programming with ASP.NET Core MVCMahmoudOHassouna
 
Abap package concept
Abap package conceptAbap package concept
Abap package conceptTobias Trapp
 
Less10 2 e_testermodule_9
Less10 2 e_testermodule_9Less10 2 e_testermodule_9
Less10 2 e_testermodule_9Suresh Mishra
 
Oracle apex-hands-on-guide lab#1
Oracle apex-hands-on-guide lab#1Oracle apex-hands-on-guide lab#1
Oracle apex-hands-on-guide lab#1Amit Sharma
 
Oracle ebs r12_architecture
Oracle ebs r12_architectureOracle ebs r12_architecture
Oracle ebs r12_architectureprasanna432
 
Onepush platformtotalsolution
Onepush platformtotalsolutionOnepush platformtotalsolution
Onepush platformtotalsolutionAndy Yang
 
Oracle apps-interview-questions
Oracle apps-interview-questionsOracle apps-interview-questions
Oracle apps-interview-questionsPakeera Mekala
 
Informatica Designer Module
Informatica Designer ModuleInformatica Designer Module
Informatica Designer Moduleganblues
 

What's hot (20)

Many Faces Of Bi Publisher In Oracle Ebs
Many Faces Of Bi Publisher In Oracle EbsMany Faces Of Bi Publisher In Oracle Ebs
Many Faces Of Bi Publisher In Oracle Ebs
 
HP ArcSight Asset Model Import FlexConnector Developer's Guide
HP ArcSight Asset Model Import FlexConnector Developer's GuideHP ArcSight Asset Model Import FlexConnector Developer's Guide
HP ArcSight Asset Model Import FlexConnector Developer's Guide
 
Ibm lotus domino integration using ibm tivoli directory integrator redp4629
Ibm lotus domino integration using ibm tivoli directory integrator redp4629Ibm lotus domino integration using ibm tivoli directory integrator redp4629
Ibm lotus domino integration using ibm tivoli directory integrator redp4629
 
Murach : How to develop a single-page MVC web
Murach : How to develop a single-page MVC web Murach : How to develop a single-page MVC web
Murach : How to develop a single-page MVC web
 
Oracle Apps Technical Manual
Oracle Apps Technical ManualOracle Apps Technical Manual
Oracle Apps Technical Manual
 
Share point review qustions
Share point review qustionsShare point review qustions
Share point review qustions
 
Oracle Applications R12 architecture
Oracle Applications R12 architectureOracle Applications R12 architecture
Oracle Applications R12 architecture
 
Rational Publishing Engine with Rational DOORS
Rational Publishing Engine with Rational DOORSRational Publishing Engine with Rational DOORS
Rational Publishing Engine with Rational DOORS
 
Murach: An introduction to web programming with ASP.NET Core MVC
Murach: An introduction to web programming with ASP.NET Core MVCMurach: An introduction to web programming with ASP.NET Core MVC
Murach: An introduction to web programming with ASP.NET Core MVC
 
Mule data weave
Mule data weaveMule data weave
Mule data weave
 
Oracle EMC 12C Grand Tour
Oracle EMC 12C Grand TourOracle EMC 12C Grand Tour
Oracle EMC 12C Grand Tour
 
Abap package concept
Abap package conceptAbap package concept
Abap package concept
 
Less10 2 e_testermodule_9
Less10 2 e_testermodule_9Less10 2 e_testermodule_9
Less10 2 e_testermodule_9
 
oracle-reports6i
oracle-reports6ioracle-reports6i
oracle-reports6i
 
Development withforce
Development withforceDevelopment withforce
Development withforce
 
Oracle apex-hands-on-guide lab#1
Oracle apex-hands-on-guide lab#1Oracle apex-hands-on-guide lab#1
Oracle apex-hands-on-guide lab#1
 
Oracle ebs r12_architecture
Oracle ebs r12_architectureOracle ebs r12_architecture
Oracle ebs r12_architecture
 
Onepush platformtotalsolution
Onepush platformtotalsolutionOnepush platformtotalsolution
Onepush platformtotalsolution
 
Oracle apps-interview-questions
Oracle apps-interview-questionsOracle apps-interview-questions
Oracle apps-interview-questions
 
Informatica Designer Module
Informatica Designer ModuleInformatica Designer Module
Informatica Designer Module
 

Viewers also liked

People soft base benefits
People soft base benefitsPeople soft base benefits
People soft base benefitsmeghamystic
 
Welcome to people soft payroll for north america
Welcome to people soft payroll for north americaWelcome to people soft payroll for north america
Welcome to people soft payroll for north americameghamystic
 
Graviton Approval Framework Presentation
Graviton Approval Framework PresentationGraviton Approval Framework Presentation
Graviton Approval Framework Presentationgravitonconsulting
 
Quick walkthrough of PeopleSoft Time and Attendance modules
Quick walkthrough of PeopleSoft Time and Attendance modulesQuick walkthrough of PeopleSoft Time and Attendance modules
Quick walkthrough of PeopleSoft Time and Attendance modulesHRoi Consulting
 
Time & labor toolbox the tools you need for a successful implementation to p...
Time & labor toolbox  the tools you need for a successful implementation to p...Time & labor toolbox  the tools you need for a successful implementation to p...
Time & labor toolbox the tools you need for a successful implementation to p...Hazelknight Media & Entertainment Pvt Ltd
 
PeopleSoft Approval FrameWork AWE
PeopleSoft Approval FrameWork AWEPeopleSoft Approval FrameWork AWE
PeopleSoft Approval FrameWork AWEhbiroglu
 
Absence Management Presentation
Absence Management PresentationAbsence Management Presentation
Absence Management PresentationRichHughes
 

Viewers also liked (10)

People soft base benefits
People soft base benefitsPeople soft base benefits
People soft base benefits
 
Global payroll
Global payroll Global payroll
Global payroll
 
Welcome to people soft payroll for north america
Welcome to people soft payroll for north americaWelcome to people soft payroll for north america
Welcome to people soft payroll for north america
 
Graviton Approval Framework Presentation
Graviton Approval Framework PresentationGraviton Approval Framework Presentation
Graviton Approval Framework Presentation
 
Na payroll
Na payrollNa payroll
Na payroll
 
Quick walkthrough of PeopleSoft Time and Attendance modules
Quick walkthrough of PeopleSoft Time and Attendance modulesQuick walkthrough of PeopleSoft Time and Attendance modules
Quick walkthrough of PeopleSoft Time and Attendance modules
 
Time & labor toolbox the tools you need for a successful implementation to p...
Time & labor toolbox  the tools you need for a successful implementation to p...Time & labor toolbox  the tools you need for a successful implementation to p...
Time & labor toolbox the tools you need for a successful implementation to p...
 
PeopleSoft Approval FrameWork AWE
PeopleSoft Approval FrameWork AWEPeopleSoft Approval FrameWork AWE
PeopleSoft Approval FrameWork AWE
 
Time And Labor Overview
Time And Labor OverviewTime And Labor Overview
Time And Labor Overview
 
Absence Management Presentation
Absence Management PresentationAbsence Management Presentation
Absence Management Presentation
 

Similar to Bi

Ten Steps To Empowerment
Ten Steps To EmpowermentTen Steps To Empowerment
Ten Steps To EmpowermentMohan Dutt
 
Oracle D2K reports
Oracle D2K reports Oracle D2K reports
Oracle D2K reports Rajesh Ch
 
14 Easy Steps to End-User Empowerment: Convert Custom Reports to BI Publisher
14 Easy Steps to End-User Empowerment: Convert Custom Reports to BI Publisher14 Easy Steps to End-User Empowerment: Convert Custom Reports to BI Publisher
14 Easy Steps to End-User Empowerment: Convert Custom Reports to BI PublisherMohan Dutt
 
XMLPublisher
XMLPublisherXMLPublisher
XMLPublisherJAYAARC
 
FDP-faculty deveopmemt program on python
FDP-faculty deveopmemt program on pythonFDP-faculty deveopmemt program on python
FDP-faculty deveopmemt program on pythonkannikadg
 
Demo Guidebook 040110
Demo Guidebook 040110Demo Guidebook 040110
Demo Guidebook 040110Brad Ganas
 
Graviton BI Publisher Presentation
Graviton BI Publisher PresentationGraviton BI Publisher Presentation
Graviton BI Publisher Presentationgravitonconsulting
 
bi-publisher.pptx
bi-publisher.pptxbi-publisher.pptx
bi-publisher.pptxkjkombrink
 
Flex Daily Solutions @ FITC 2008
Flex Daily Solutions @ FITC 2008Flex Daily Solutions @ FITC 2008
Flex Daily Solutions @ FITC 2008marcocasario
 
.NET Portfolio
.NET Portfolio.NET Portfolio
.NET Portfoliomwillmer
 
Typescript language extension of java script
Typescript language extension of java scriptTypescript language extension of java script
Typescript language extension of java scriptmichaelaaron25322
 
Creating a data report in visual basic 6
Creating a data report in visual basic 6Creating a data report in visual basic 6
Creating a data report in visual basic 6mrgulshansharma
 
Birt Integration
Birt IntegrationBirt Integration
Birt Integrationmicajblock
 
Tutorial_Python1.pdf
Tutorial_Python1.pdfTutorial_Python1.pdf
Tutorial_Python1.pdfMuzamilFaiz
 
Events Registration System Part 1
Events Registration System Part 1Events Registration System Part 1
Events Registration System Part 1Adolfo Nasol
 
Fr net programmermanual-en
Fr net programmermanual-enFr net programmermanual-en
Fr net programmermanual-enMorenita Batista
 
Rational Publishing Engine and Rational System Architect
Rational Publishing Engine and Rational System ArchitectRational Publishing Engine and Rational System Architect
Rational Publishing Engine and Rational System ArchitectGEBS Reporting
 
Lecture14Slides.ppt
Lecture14Slides.pptLecture14Slides.ppt
Lecture14Slides.pptVideoguy
 

Similar to Bi (20)

Ten Steps To Empowerment
Ten Steps To EmpowermentTen Steps To Empowerment
Ten Steps To Empowerment
 
Oracle D2K reports
Oracle D2K reports Oracle D2K reports
Oracle D2K reports
 
14 Easy Steps to End-User Empowerment: Convert Custom Reports to BI Publisher
14 Easy Steps to End-User Empowerment: Convert Custom Reports to BI Publisher14 Easy Steps to End-User Empowerment: Convert Custom Reports to BI Publisher
14 Easy Steps to End-User Empowerment: Convert Custom Reports to BI Publisher
 
XMLPublisher
XMLPublisherXMLPublisher
XMLPublisher
 
FDP-faculty deveopmemt program on python
FDP-faculty deveopmemt program on pythonFDP-faculty deveopmemt program on python
FDP-faculty deveopmemt program on python
 
Dbms fast track 2/3
Dbms fast track 2/3Dbms fast track 2/3
Dbms fast track 2/3
 
Demo Guidebook 040110
Demo Guidebook 040110Demo Guidebook 040110
Demo Guidebook 040110
 
Graviton BI Publisher Presentation
Graviton BI Publisher PresentationGraviton BI Publisher Presentation
Graviton BI Publisher Presentation
 
bi-publisher.pptx
bi-publisher.pptxbi-publisher.pptx
bi-publisher.pptx
 
Flex Daily Solutions @ FITC 2008
Flex Daily Solutions @ FITC 2008Flex Daily Solutions @ FITC 2008
Flex Daily Solutions @ FITC 2008
 
.NET Portfolio
.NET Portfolio.NET Portfolio
.NET Portfolio
 
Typescript language extension of java script
Typescript language extension of java scriptTypescript language extension of java script
Typescript language extension of java script
 
Creating a data report in visual basic 6
Creating a data report in visual basic 6Creating a data report in visual basic 6
Creating a data report in visual basic 6
 
Birt Integration
Birt IntegrationBirt Integration
Birt Integration
 
Tutorial_Python1.pdf
Tutorial_Python1.pdfTutorial_Python1.pdf
Tutorial_Python1.pdf
 
Events Registration System Part 1
Events Registration System Part 1Events Registration System Part 1
Events Registration System Part 1
 
Fr net programmermanual-en
Fr net programmermanual-enFr net programmermanual-en
Fr net programmermanual-en
 
Rational Publishing Engine and Rational System Architect
Rational Publishing Engine and Rational System ArchitectRational Publishing Engine and Rational System Architect
Rational Publishing Engine and Rational System Architect
 
ebs xml.ppt
ebs xml.pptebs xml.ppt
ebs xml.ppt
 
Lecture14Slides.ppt
Lecture14Slides.pptLecture14Slides.ppt
Lecture14Slides.ppt
 

Bi

  • 1. BI Publisher formerly XML publisher BI Publisher Classes
  • 2. Agenda • BI Publisher overview. – What is it and Where is it? – Advantages of BI Publisher. • Advanced Reporting – Using People Code BI Publisher Classes.
  • 3. BI Publisher • Released in PeopleTools 8.52. • Standalone Java based technology that streamlines report generation. • Template based reporting tool, separating data extraction from report layout. • Can create report templates using Windows applications like Microsoft Word, Adobe Acrobat. • Generate multiple reports in many formats like PDF,RTF,HTML and EXCEL,POWER POINT etc.
  • 4. What is BI Publisher?  A template-based reporting tool  Separates querydata, Report layout, Translation  Creating and generating day to day Business oriented Reports Users can create: • Customer-ready PDF documents, such as financial statements, marketing materials, contracts, invoices, and purchase orders utilizing colors, images, font styles, headers and footers, and many other formatting and design options • Excel output to create a spreadsheet of your report data • PowerPoint slides for presentations • "Filled-out" third-party provided PDF documents (such as 1099s). Download a PDF document, such as a government form, to use as a template. At runtime, the data and template produce a "filled-out" form
  • 5. BI Publisher Classes BI Publisher classes divided into the following sections: • BI Publisher Report manager Definition class • BI Publisher Report manager class • BI Publisher Engine class Before using above classes following application packages are import the peoplecode program import PSXP_RPTDEFNMANAGER import PSXP_REPORTMGR import PSXP_ENGINE
  • 6. 1.Report Definition Class ReportDefn Syntax ReportDefn(ReportId) Note : Report id should be unique Description Use the ReportDefn class to generate and publish report output. Example import PSXP_RPTDEFNMANAGER : ReportDefn &rptDefn;
  • 7. Report Definition Class Methods Get Syntax Get(); Eg :- &RptDefn.Get(); Description Use the Get method to return a reference to the existing ReportDefn object. Parameters None. It does not take any Input parameters. Returns A reference to the newly instantiated and populated ReportDefn object. SetRuntimeDataXMLFile ( Data Source is XML file ) Syntax SetRuntimeDataXMLFile(FilePath) Description Use the SetRuntimeDataXMLFile method to specify an existing XML file as the data source for the report. Example : &rptDefn.SetRuntimeDataXMLFile(&sFileName).
  • 8. Report Definition Class Methods Continued…. GetPSQueryPromptRecord ( Data Source is PS Query ) Syntax GetPSQueryPromptRecord() Description Use the GetPSQueryPromptRecord method to return the runtime prompts of a query as a record object. This method should only be used when the data source type associated with the report definition is a PeopleSoft query. This method returns a null when the data source type isn't a PeopleSoft Query. SetPSQueryPromptRecord Syntax SetPSQueryPromptRecord(&Record) Description This method can only be used with reports that have a PeopleSoft query defined as the data source. You must use this method before using the ProcessReport method.
  • 9. Report Definition Class Methods Continued…. ProcessReport Syntax ProcessReport(TemplateId, LanguageCD, AsOfDate, OutputFormat) Use the ProcessReport method to generate a report and store the information. Before you generate the report, you must: Set the report output destination with the OutDestination property if the output type is a file. 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.
  • 10. Report Definition Class Methods Continued…. Publish Syntax Publish(ServerName, ReportPath, FolderName,ProcessInstanceId) &rptDefn.Publish(&serverName, "", &folderName, &PID); Description use the Publish method to post the report
  • 11. Report Definition Class Methods Continued…. DisplayOutput Syntax DisplayOutput() Description Use the DisplayOutput method to display the report generated by the ProcessReport method in a separate browser window. You must successfully call the ProcessReport method prior to calling this method. This method displays a single report. Therefore, the report definition must not be set for bursting. Parameters None. Example : &rptDefn.DisplayOutput ()
  • 12. 2.BI Publisher Engine Class BI Publisher Engine class can be divided into 4 categories 1.PageNumber class 2.PDFMerger class 3.Properties class 4.Watermark class PageNumber Syntax PageNumber() Description Use the PageNumber constructor to instantiate a PageNumber object. Example : import PSXP_ENGINE:PageNumber; Local PSXP_ENGINE:PageNumber &pNum; &pNum= create PSXP_ENGINE:PageNumber(); ( Creating a Page Number )
  • 13. 1.PageNumber Class Properties FontSize Description Use the FontSize property to specify the size of the page number, as a number. The default value is 8. This property is read-write. Example : Local PSXP_ENGINE:PageNumber &oPageNumber; &oPageNumber.FontSize = 16; PositionX Description Use the PositionX property to specify the X axis position of the text page number in the merged document. This property is read-write. PositionY Description Use the PositionY property to specify the Yaxis position of the text page number in the merged document. This property is read-write. Example : &oPageNumber.PositionX = 300; &oPageNumber.PositionY = 20;
  • 14. PageNumber Class Properties…. StartFromPageNum Description Use the StartFromPageNum property to specify the page index from which you'd like to start the page numbering. For example, if you have a PDF document which has two cover pages, and you want to start printing page numbers on the document from the third page, specify a three for this property. This property is read-write.
  • 15. 2.PDFMerger Class PDFMerger Syntax PDFMerger() Description Use the PDFMerger constructor to instantiate a PDFMerger object. Parameters None. Returns A reference to a PDFMerger object. Example : import PSXP_ENGINE:PDFMerger; Local PSXP_ENGINE:PDFMerger&Merger &Merger =createPSXP_ENGINE:PDFMerger();
  • 16. PDF Merger Class Methods…. MergePDFs Syntax MergePDFs(PDFFileArray, PDFOutputFile, Error) Description Use the MergePDFs method to merge the specified PDF files into a single output file. The order of the files specified in the array are the order in which the files are merged. Parameters PDFFileArray Specify an already instantiated and populated array of string containing the names of the PDF files that you want to merge together. PDFOutputFile Specify the full path name of the file you want populated with the merged PDF file. 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 returns a path with back slashes. Error If any errors occur during processing, this parameter is populated with the text of the error message after processing.
  • 17. Returns A Boolean: true if the method completed successfully, false otherwise. If this method returns false, The Error parameter is populated with the text of the error message that occurred. Example : Local PSXP_ENGINE:PDFMerger &Merger; &sErr = ""; &arrayName = CreateArray(&sPdfFile1); &arrayName.Push(&sPdfFile2); &Result = &oMerger.mergePDFs(&arrayName, &sOutputPdfFile, &sErr);
  • 18. Sample BI Publisher Program To generate and publish a report: Step 1 : Import the appropriate application class. Because this program generates and publishes a report, you need to import the report manager definition class. import PSXP_RPTDEFNMANAGER:ReportDefn; Step 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 &sFileName = "c:pathfilename.xml"; Local string &rptDefnId = "Financial"; Local string &LanguageCode = "ENG"; Local date &effdt = Date(20090821); Local string &outputfmt = "HTM"; Local string &folderName = "General"; Local string &serverName = "PSNT"; Local PSXP_RPTDEFNMANAGER:ReportDefn &rptDefn;
  • 19. Sample BI Publisher Program Step 3 : Instantiate the report definition object and initialize it. /* Create report definition and connect to the generated XML document. */ &rptDefn = create PSXP_RPTDEFNMANAGER:ReportDefn(&rptDefnId); Step 4: After instantiate report definition objet using Get method to populate report definition object. &rptDefn.Get(); Step 5: Specify the data for the report. This report uses an XML file as the data source, so you must specify the runtime data source for the report before you process it. &rptDefn.SetRuntimeDataXMLFile(&sFileName);
  • 20. Sample BI Publisher Program Step 6 : Process the report. You must process the report, generate a version of it for the report repository, before you can distribute the report. &rptDefn.ProcessReport("", &languageCd, &effdt, &outputfmt); Step 7: Publish the report. After you've generated the report, you may want to publish it to another location. &rptDefn.Publish(&serverName, "", &folderName, &PID);
  • 21. Q & A Thank you

Editor's Notes

  1. Specifying a null value in ProcessReport method default outputA format is selected.Always Specify a null value only for this parameter.