XML Publisher - Multi-Level Report Template - Example
XML Publisher - Multi-Level Report Template - Example
The link you find there will allow you to download a zipped file (xmlp_desktop.zip) which, when unzipped, contains a file called, BIPublisherDesktop.exe . Download the file, unzip it, and install the plug-in on your local copy of Microsoft Word.
Several types of Data Sources can be defined, including Query, Connected Query, Rowset, XMLDoc Object and XML File. For our demonstration purposes, we will use the Connected Query:
Z_UDEM_CON_QUERY_DEMO. If you are going to generate a report with multiple levels you must, of course, have a data source that provides multiple levels. A plain Query does not support multiple levels.
(NOTE: Rowset and XMLDoc Object are slated to be depreciated by Oracle. Do not use them.)
81136045.docx
Page 1 of 12
2012-01-12 - 1:43:25 PM
Again, in the Development environment, you will find a sample Data Source already registered. The Data Source ID, for both Query and Connected Query Data Source Types are exactly the same as the name of the Query or Connected Query they register. As a result, the sample Data Source for the Z_UDEM_CON_QUERY_DEMO Connected Query is named Z_UDEM_CON_QUERY_DEMO . Once you have registered a Data Source, at the bottom of the Data Source page in PeopleSoft, you will see a section called Related Files . If you are newly creating the Data Source, you will need to create the Sample Data File by clicking the Generate link. Once created, you can download the Sample Data File by clicking on the link in the File column. This will be our XML Sample so save the file somewhere where you can easily find it again, such as on your desktop or My Documents folder.
81136045.docx
Page 2 of 12
2012-01-12 - 1:43:25 PM
STEP FIVE Load the XML Sample into the Microsoft Word plug-in
Before doing any edits on your new template, load your XML Sample into the Microsoft Word plug-in. Again, your version of Microsoft Word may look and/or feel a little different, but using Microsoft Office Word 2007, click on the Add-Ins tab, drop down the Data in the Custom Toolbars section, and choose Load XML Data
(If you do not have the Add-Ins or similar tool bar options, you may not have successfully completed Step One.) Upon clicking the Load XML Data option, you will get the standard dialogue box for selecting a file. Locate the file, select it from the list, then click the Open button. You ll then have a dialogue box that indicates your file was uploaded successfully. Click OK to clear the message.
81136045.docx
Page 3 of 12
2012-01-12 - 1:43:25 PM
STEP SIX A Add the Top level fields for our Multi-Level Report Template
Start by selecting the Table Wizard from the Insert drop down on the Add-Ins tab in Microsoft Word.
81136045.docx
Page 4 of 12
2012-01-12 - 1:43:25 PM
Next, you ll have a series of dialogue boxes. Select Free Form . . . then click Next
Select the top level data set from the Data Set drop down . . . then click Next
81136045.docx
Page 5 of 12
2012-01-12 - 1:43:25 PM
If you need to add sorting information, you can, otherwise, just click Finish .
81136045.docx
Page 6 of 12
2012-01-12 - 1:43:25 PM
STEP SIX B Add the Lower level fields for our Multi-Level Report Template
At this point you have your Top level in your Multi-Level XML Report Template. Next, you need to make a space for the Lower level, and add it in.
Place your cursor after the Top level data, and before the close of the Top level loop, and add in your Lower level. Follow the same steps as you did for the Top level: selecting the Table Wizard from the Insert drop down on the Add-Ins tab in Microsoft Word. As you go through the wizard, choose a few relevant Lower level fields & add them in.
81136045.docx
Page 7 of 12
2012-01-12 - 1:43:25 PM
81136045.docx
Page 8 of 12
2012-01-12 - 1:43:25 PM
STEP SEVEN Create a Report Definition and upload your XML Template to it.
Once your template is created, it s time to upload it into the system. This is done starting with the following navigation:
Main Menu > Reporting Tools > XML Publisher > Report Definition
To start with, you ll be choosing: Add a New Value . You can choose an appropriate Report Name (Again, check the UdeM standards), in our case we choose Connected Query as the Data Source Type, and then search for our Data Source ID . Remember your Data Source ID will be exactly the same as the name of your Connected Query. The next few screen shots show the Definition tab and the Template tab for the Report Definition. The first tab shows the basic details page of the Report Definition. Notice that the Data Source is part of the key information for the XML Report.
81136045.docx
Page 9 of 12
2012-01-12 - 1:43:25 PM
Upon pressing the Upload button, you ll be presented with a dialogue box, where you can use the standard method to find and upload your file:
81136045.docx
Page 10 of 12
2012-01-12 - 1:43:25 PM
81136045.docx
Page 11 of 12
2012-01-12 - 1:43:25 PM
81136045.docx
Page 12 of 12
2012-01-12 - 1:43:25 PM