This action might not be possible to undo. Are you sure you want to continue?
Oracle XML Publisher has gained a lot of popularity among developers and also among the businesses as its very easy to create a report using XML Publisher and even more easy to generate reports in various formats like PDF, EXCEL, RTF etc.
the report layout and the translation in to a single entity.e.oracleappsframework. These layouts or template can be very easily created using familiar word processing software like Microsoft Word.com/blog .A short guide to XML Publisher XML Publisher Oracle XML Publisher has gained a lot of popularity among developers and also among the businesses as its very easy to create a report using XML Publisher and even more easy to generate reports in various formats like PDF. RTF. This means less time and money is being spent in maintenance of these reports. Translation: The translation handler will manage the translation that is required at runtime. Oracle created XML Publisher is as a template based tool for publishing reports and much more along with Oracle Ebusiness Suite. All these and many more hiccups made Oracle to come up with XML Publisher. www. template and then generate the report in any of the desired form such as PDF. Microsoft Excel etc. So if the report needs changes at the report layout level then Data Definition and the Translation part are not supposed to be touched and only the Report Design can be changed alone. but at run time all the three aspects are brought together and the final report is generated. In this case it became very complex and cumbersome even if the report needed minor changes. RTF etc. XML Publisher treats all the three aspects of report generation i. EXCEL. The working of the XML Publisher can be understood with the help of the following diagram: Business Logic: In this part or aspect the required data (as per the business logic) is extracted/fetched from the database and is converted in to XML Strings. Report Layout: In this aspect or section of the XML Publisher the layout or the template of the final report to be generated is stored and Managed in the Template Manager.g. the data definition.com 2 www. HTML. in Report 6i used to combine all the aspects of report generation i. the report layout and the translation separately at design time. With XML Publisher things were very different in a positive way. XML Publisher is powerful enough to populate the data fetched by a PL SQL package into a custom. the data definition.e.oracleappsframework. Difference between Classical Reporting Tools and XML Publisher: The classical reporting tool had very different approach from that of XML Publisher e. EXCEL (HTML) and even PLAIN TEXT for transmission using EFT and EDI. yes custom. Also if the same report is required in another language then one more report needs to be generated in other language.
com 3 www. 2.oracleappsframework.com/blog . Go to XML Publisher Desktop and double click the setup. 3. www.exe.5 itself). this will start the Install Shield Wizard which will guide you throughout the process 2. MS Office 2000 or higher to create templates. you will be able to see one more menu item named “Template Builder” as shown in the image below. set many preferences and preview the output of the report. Oracle XML Publisher Release 5.5 or higher.oracleappsframework. After the installation is completed Open MS Word. Steps to install XML Publisher: 1. This menu will enable you embed the XML data into your template.A short guide to XML Publisher How to generate reports using XML Publisher Pre-Requisites: 1. Template builder (Usually gets installed with Oracle XML Publisher 5.
Upload the finalized template or layout of the report to Oracle Application using XML Publisher Administrator responsibility. Create a PL SQL Package or Procedure that will fetch the required data as per the business requirement and then place the data to be displayed in XML tags into an output file.person_id=paaf.employee_number emp_no . 4.o_retcode AS /*Cursor to fetch Employee Records*/ OUT VARCHAR2 ) CURSOR csr_employee IS SELECT papf. Run the AOL concurrent program so that it in turn executes the PL SQL stored procedure to generate the data for the report.full_name prsn_name .grade_id=pg.oracleappsframework. /*Demo Package Specification*/ CREATE OR REPLACE PACKAGE Demo_XDO_pkg AS PROCEDURE Demo_RTF(o_errbuf OUT VARCHAR2.A short guide to XML Publisher Steps to generate a report using XML Publisher: 1. 3.person_id AND paaf.com 4 www. Now let’s elaborate each and every point mentioned above: We will create a PL SQL package that will fetch the data from the data base tables and then populate the same data in to XML tags.assignment_type='E' AND paaf.pg.person_id prsn_id .name grade FROM per_all_people_f papf. per_all_assignments_f paaf. Below is a simple example of such a PL SQL package. 5. CREATE OR REPLACE PACKAGE BODY Demo_XDO_pkg as PROCEDURE Demo_RTF( o_errbuf OUT VARCHAR2.o_retcode END Demo_XDO_pkg. Create a template or the desired layout of the report to be generated using Template Builder. 2.papf.grade_id AND paaf. /*Demo Package Definition*/ OUT VARCHAR2 ). per_grades pg WHERE papf. 6.com/blog .primary_flag='Y' www. Create an AOL concurrent program that will execute the PL SQL stored procedure created in step 1.oracleappsframework. Republish the Report.
0"?>').com/blog .PUT_LINE(FND_FILE. FND_FILE.'<PERDUMMY1>').OUTPUT.business_group_id=5603 ROWNUM<2.sysdate) AND NVL(pcr.date_end.OUTPUT.sysdate) AND TRUNC(SYSDATE) BETWEEN papf.papf.date_from.OUTPUT.oracleappsframework.OUTPUT.sysdate) papf.PUT_LINE(FND_FILE. BEGIN /*First line of XML data should be ‘<?xml version="1. FND_FILE.person_id AND pcr.contact_person_id=papf.'<EMP_NO>' || v_employee.grade ||'</GRADE>').effective_end_date.sysdate) AND NVL(pg. FOR v_employee IN csr_employee LOOP /*for each record create a group tag <G_EMP_NAME> at the start*/ FND_FILE.emp_no || '</EMP_NO>').effective_start_date AND papf.0"?>’*/ FND_FILE.papf.oracleappsframework.contact_type='C' AND TRUNC(SYSDATE) BETWEEN NVL(pcr.effective_start_date AND paaf.'<EMP_NAME>' || v_employee.PUT_LINE(FND_FILE.PUT_LINE(FND_FILE.'<G_EMP_NAME>'). FND_FILE.full_name child_name .person_id child_id . FOR v_children IN csr_children(v_employee.person_id=p_person_id AND pcr.effective_end_date TRUNC(SYSDATE) BETWEEN NVL(pg. /*Cursor to fetch employee’s dependent (Children) records*/ CURSOR csr_children(p_person_id NUMBER) IS SELECT papf.com 5 www.OUTPUT.A short guide to XML Publisher AND AND AND AND AND TRUNC(SYSDATE) BETWEEN papf.date_start.prsn_name || '</EMP_NAME>').prsn_id) LOOP www.PUT_LINE(FND_FILE.OUTPUT.PUT_LINE(FND_FILE.effective_start_date AND papf. per_all_people_f papf WHERE pcr.date_of_birth dob FROM per_contact_relationships pcr.<EMP_NAME>Abeesh</EMP_NAME>*/ FND_FILE.effective_end_date TRUNC(SYSDATE) BETWEEN paaf.'<GRADE>' || v_employee. /*Embed data between XML tags for ex:.date_to.'<?xml version="1.
PUT_LINE(FND_FILE.'</G_NO_CHILD>'). /*Close the group tag </G_NO_CHILD> at the end of child record*/ FND_FILE. /*finally Close the starting Report tag*/ FND_FILE.OUTPUT.'<CHILD_SCHOOL>BHAVANS </CHILD_SCHOOL>'). FND_FILE.'<CHILD_NAME>' || v_children.PUT_LINE(FND_FILE.OUTPUT. Here’s the navigation for creating an Executable Application Developer Responsibility -> Concurrent ->Executable www.PUT_LINE(FND_FILE.'</PERDUMMY1>'). FND_FILE. END Demo_RTF.PUT_LINE(FND_FILE.OUTPUT. Now we will have to create an executable and attach the newly created executable to a concurrent program.'<CHILD_FEES>100 </CHILD_FEES>').'</G_EMP_NAME>').com/blog .OUTPUT.PUT_LINE(FND_FILE.oracleappsframework. We will name the executable as DEMOXDO2 that will call above mentioned procedure Demo_XDO_pkg. END LOOP.OUTPUT.PUT_LINE(FND_FILE. FND_FILE.'<CHILD_DOB>' || v_children. so that the PL SQL stored procedure can be executed. FND_FILE.OUTPUT. FND_FILE.A short guide to XML Publisher /*for each child record create a group tag <G_NO_CHILD> at the start*/ FND_FILE.child_name || '</CHILD_NAME>').PUT_LINE(FND_FILE. END LOOP.OUTPUT.PUT_LINE(FND_FILE.Demo_RTF. END Demo_XDO_pkg.PUT_LINE(FND_FILE.com 6 www.oracleappsframework.OUTPUT. /*Close the group tag </G_EMP_NAME> at the end of employee record*/ FND_FILE.'<CHILD_CLASS> I</CHILD_CLASS>').dob || '</CHILD_DOB>').OUTPUT.'<G_NO_CHILD>').
com/blog . This step can be understood from the screen shot below.com 7 www.oracleappsframework.oracleappsframework. www.A short guide to XML Publisher Also we need to create a new concurrent Program say (“New Demo XDO Reports”) that will call above mentioned executable DEMOXDO2 To create new concurrent program just go to Application Developer Responsibility -> Concurrent ->Program Attach the newly created Concurrent Program to a specific Request Group from where the Concurrent Program is supposed to run.
oracleappsframework.com 8 www.oracleappsframework. use the Submit Request form to run the concurrent request and cross check the XML output that is generated. this is because we haven’t yet attached any layout or template to the report being generated. www.com/blog . As you can see that the block mentioning the Layout is blank.A short guide to XML Publisher From the appropriate responsibility.
A screen shot of a demo template is shown below for reference. Please save this XML file on your desktop computer with some name say (“Demo. Let’s have a look at how each step is supposed to be performed. but make sure that you remove all the dashes “-“ that appear in the file.xml”). 1.oracleappsframework. Designing the template as specified in the business requirement. Marking up the XML template layout with the XML tags. www. 1. Designing the template as specified in the business requirement.com/blog . Creation of a template in itself is a two step process.com 9 www. 2. For this step we need to use the Microsoft MS Word application to design a template and then save the template a “RTF” file on your desktop computer.A short guide to XML Publisher Once you run the concurrent program. click on the view output button so as to see the XML file along with the data that has been generated as a result of the concurrent program run. For the next step we will create a template which will act as the layout for the final report that will be generated soon.oracleappsframework.
oracleappsframework.com/blog .A short guide to XML Publisher 2. Just select the appropriate tag and click on the “Insert” button. The screen shot below displays the insertion of “Emp_Name” tag into the report layout. The next step is to add the XML tags to the report template layout. remember the “Demo. we need to insert the XML tags into the template.com 10 www.oracleappsframework. In the report layout.xml” file that we have saved previously to our desktop computer? We just need to select that file. these tags will be replaced by data at runtime. Once done with the creation of the template. this is a very easy step and fun to do. www. This will open up a popup containing all the XML tags that we got in our “Demo. locate the place where the data will be inserted at runtime. In order to achieve this go to the “Template Builder” menu and the select Data and then Load XML Data. Marking up the XML template layout with the XML tags. We will be asked to select the XML data. highlight that place and then from the “Template Builder” menu select the “Insert” menu and then select the “Field” item.xml” file.
This will become clear by the following screen shot. then we need to select the “Insert” and then “Field” and then select the tag whose summation is supposed to be displayed. and then “Table/Form” will look as shown in the screen shot below.oracleappsframework.A short guide to XML Publisher Note: 1.com 11 www. we have to select the “Insert” and then “Table/Form” from the “Template Builder” menu. www.com/blog . To insert the repeating tags into the XML report layout. The popup window opened by selecting “Insert”. in our case the parent node is “G_NO_CHILD”.oracleappsframework. This will open a different popup window which will ask to select the parent node. Suppose we want to add the summation of a column also at some place in the report layout.
oracleappsframework.oracleappsframework. then how come we can preview the report? Remember the “Demo. www.A short guide to XML Publisher Once all the above mentioned steps are over.xml” file that we have saved on our desktop? The data from the same file will be used to preview the report. our report template will look as the one shown in the below screen shot.com/blog .com 12 www. XML Publisher gives you the freedom to preview the report before running it. To preview the report select “Preview” from the menu under “Template Builder” menu. But you must be thinking that we don’t have data.
Here’s the screen shot of the Data Definition creation page with the data definition code highlighted. The most important point to remember here is that. Step.com 13 www.oracleappsframework. as this allows the concurrent manager to get a list of templates that are available for that concurrent program at runtime.oracleappsframework.xml” that we have save to our desktop.1 Initially we have to register our concurrent request as a data definition. Using this responsibility we can add a template to the report. To achieve this we should have “XML Publisher Administrator” responsibility to the user.A short guide to XML Publisher Add the report layout template in to Oracle Application.com/blog . www. In the XML Schema field browse to the “Demo. the data definition code (shown highlighted) should be the same as that of the concurrent program short name. Give a name to the data definition. To achieve this go to XML Publisher Administrator -> Data Definitions -> Create Data Definition. The process of adding a template to the report is again broken into steps for easy understanding and remembrance.
While registering the template we will be asked to assign an already existing Data Definition to it. Then upload the RTF template layout and select the language and territory.com/blog . go to the XML Publisher Administrator and then templates and Create Template.oracleappsframework. Doing this is simple. www. hence we will assign the data definition that we have created in the previous step to our template.A short guide to XML Publisher Step.oracleappsframework.com 14 www.2 now we will register our template with the use of template manager.
we have attached the template to the concurrent program we can see that the Layout Block displays the name of the template that has been attached to the report. www.A short guide to XML Publisher This will be the final step in the generation of the report. run the concurrent program from the appropriate responsibility.oracleappsframework. Since. Also.com 15 www. To complete this step. from this window we can activate the XML Publisher’s preview feature. template language and also the output format for the report to be generated.oracleappsframework.com/blog . In the layout section of the submit request window we can select the template (if there are more than one template).
There are many other options also available on the Concurrent Manager menu.com 16 www. www.com/blog .oracleappsframework. We can republish and print the report.oracleappsframework.A short guide to XML Publisher Upon the completion of the concurrent program run click on the view output run button to view the final report that has been generated. we can even republish and view the report or simply we can reprint the report. Below screen shot shows the report generated in the PDF format.
oracleappsframework.A short guide to XML Publisher The difference between these actions is given below.oracleappsframework. The data. Reprint – sends the published request to the selected printer Hope that this guide helps you. The formatting is performed without creating a new concurrent request. Republish and Print – This action allows us to select a new template and output format for the completed concurrent request data.com www. Republish and View – this option allows us to select a new template and output format for the completed request data for viewing only. layout.com 17 www.oracleappsframework.com/blog www. Thanks for reading www.com/blog . and output selections are sent to XML Publisher to republish the request data.oracleappsframework.
This action might not be possible to undo. Are you sure you want to continue?
We've moved you to where you read on your other device.
Get the full title to continue reading from where you left off, or restart the preview.