<%= BirtResources.getMessage( "birt.viewer.required" ) %> 代">

birt文档

  • 格式:docx
  • 大小:57.89 KB
  • 文档页数:8

1、ParameterDailogFragment.jsp中<TR><TD COLSPAN="2"><%= BirtResources.getMessage( "birt.viewer.required" ) %></TD></TR>代表Parameters marked with * are required.2、ConfirmationDialogFragment.jsp链接processing.jsp3、RequesterFragment.jsp的标题是PARAMETER SELECTION PAGE4、参数页面中:<FONT TITLE="<%= parameterBean.getToolTip( ) %>"><LABEL FOR="<%= encodedParameterName %>"><%= parameterBean.getDisplayName( ) %>:</LABEL></FONT> 代表参数对话框中文本参数的提示文本,如:数据起始时间等<FONT COLOR="red"><LABEL FOR="<%= encodedParameterName %>">*</LABEL></FONT> 代表提示文本后的红色*5、Web Viewer servletsThe Web Viewer consists of two main servlets,the ViewerServlet and the BirtEngineServlet. The ViewerServlet handles the frameset and run servlet mappings set in the web.xml .The BirtengineServlet handles the preview,output,and download mappings specified in web.xml .(1) download: used internally by the Web Viewer or frameset when extracting results in CSV format.Do not use externally. BirtSimpleExportDataDialog.js creates a hidden form and submits to servlet for processing.(2) frameset: used to launch the AJAX-based Web Viewer.Contains the toolbar,navbar,and table of content features.Run and render tasks are separated.(3) parameter: used internally by the designer to create a rptconfig filewhen selecting the preview tab for a report that contains parameters.Do not use externally. (4) preview: use to run and render a report or to render an existing rptdocument directly to an output format.Does not use the AJAX framework,but can launch a Parameter page.(5) run: use to launch the Web Viewer without the toolbar,navbar,or table of contents. Uses the runandrender task to create the output,but does not support pagination or create a rptdocument. Uses the AJAX framework to support canceling a report.6、ViewServlet Run Fragments7、BirtEngineServlet EngineFragmenttsin,8、WebViewerExample Directory StructureT he defa ul t l oc ati on f or BI R T lo gsL oc at i on f or cl a ss f ile s used ina sc r ip te d d at a s ou rceD ef au l t lo cat io n f or re port de si g nsJ a va Sc rip t f il es us ed with t h e We bV ie werJ S P fr agm ent s us e d to buil d t he W e b Vi ewe rI m ag es us edby t h e Web Vie we rC S S fi les u s edby t he Web Vi e we rL o ca ti on fo r r eq u ir ed BIRT J A R fi l esRe qui red fo r B IR T r un -t ime p lu g in s Lo cat ion for O S Gi c o nf ig ura ti on fi les9、AJAX directory of the Web Viewer(1)coreContains JavaScript files used to handle BIRT events and communications with the Web Viewer servlets.a. BirtCommunicationManager.jsHandles most Ajax.Request calls to the Web Viewer servlet or SoapActionb. BirtDndManager.jsHandle drag-and drop for Web Viewer dialogsc. BirtEvent.jsPrototype BIRT Web Viewer Eventsd. BirtEventDispatcher.jsSupplies functions for registering,firing,and broadcasting BIRT eventse. BirtSoapRequest.jsSupplies functions used to create SOAP messages to be sent by the BirtCommunicationManager f. BirtSoapResponse.jsProcesses the SOAP responses from the SOAP requestg. Mask.jsConceals a button in toolbar when dialog are presented(2) libPrototype.js is the prototype JavaScript framework file(3) mhContains files used to parse the SOAP responses, from the AJAX servlet calls.a.BirtBaseResponseHandler.jsBase class used to add associations for SOAP resopnses. Currently there is only oneb.GetUpdatedObjectsResponseHandler.jsMain class used to consume the soap response. This class has process methods for updating entire report section, such as a new report page and for updating portions of the Web Viewer, for example, the page number in the navigation bar(4) uiContains files used in conjunction with the JSP fragments ti control the Web Viewer user interfaceApp:a.AbstractBaseToc.jsThis class is used as the base class for the BirtToc.jsb.AbstractBaseToolBar.jsThis class is the base class for the BirtToolbar.jsc.AbstractUIComponent.jsThe base class for all classes in the directory. Sets the instance of the classd.BirtNavigationBar.jsThis JavaScript class contains methods that work in conjunction with the NavigationbarFragment.jsp to create the links to do page navigation. The NavigationbarFragment constructs the initial structure using input tags and BirtNavigationBar sets up native event handlers to monitor clicking or entering the navigation bar controls, which fire BIRT events to retrieve new contente.BirtProgressBar.jsThe BirtProgressBar class is used when displaying the progress bar and handles canceling of the currently running taskf.BirtToc.jsThis JavaScript class sets up the events that retrieve the table of contents for a report document. In addition, event handlers load the correct pages when a table of contents node is selected.g.BirtToolbar.jsThe BirtToolbar JavaScript class works with the ToolbarFragment.jsp in a similar nature as the BirtNavigationBar works with the NavigationbarFragment.jsp. One difference is that some of the BIRT events make HTTP requests to the Web Viewer servlets as opposed to SOAP requests. Forexample, the __E_EXPORT_REPORT event launches the export dialog, which then creates a form post that is submitted to the Web Viewer. Many of the events registered in the BirtReportDocument class are fired here.Dialog:a.AbstractBaseDialog.jsThis JavaScript class is the base class for all the dialogs in this directory and contains the event handlers for basic dialog operation.b.AbstractExceptionDialog.jsBase Class for the BirtExceptionDialog used with the ExceptionDialogFragment.jsp page to add exceptions to the Web Viewer. The general exception is written to the <SPAN> element with faultstring as the id in ExceptionDialogFragment.jsp and the stack trace is written to the <SPAN> element with faultdetail as the id. The writing occurs while the SOAP response message is being parsed by the BirtSoapResponse JavaScript class.c.AbstractParameterDialog.jsThe base class for the BirtParameterDialog JavaScript class.d.BirtConfirmationDialog.jsThis class is used to display a confirmation dialog used within the BirtPrintReportDialog.e.BirtExceptiondialog.jsThis class extends the AbstractExceptionDialog to set up event handlers that show or hide the stack trace when the error detail is selected. Do not confuse these stack trace messages with report errors, which the HTML emitter writes and displays at the bottom of the report.f.BirtExportReportDialog.jsThis class works with the ExportReportDialogFragment.jsp page to build the Export Report dialog. This class creates a form post to the Web Viewer servlet to download the report in one of the supported formats. The BirtReportDocument.js file contains the class that registers an event handler to call this class. The event is fired in the toolbar.js file when a user clicks on the appropriate image as defined in the ToolbarFragment.jsp.g.BirtParameterDialog.jsThis class is responsible for displaying the Parameter page, collecting the parameter values, making calls for dynamic and cascading parameters, and submitting the URL to re-run the report.h.BirtPrintReportDialog.jsThis class works with the PrintReportDialogFragment.jsp to create the print report dialog used to print the report on the server. This class works similar to the BirtExportReportDialog.i.BirtPrintReportServerDialog.jsThis class works with the PrintReportServerDialogFragment.jsp file to handle server-side printing. j.BirtSimpleExportDataDialog.jsThis class works with the SimpleExportDataDialogFragment.jsp to construct the Export Data dialog. This class creates a form post to the download mapping to download.k.BirtTabbedDialogBase.jsThis class is currently not used.Report:a.AbstractBaseReportDocument.jsBase class for the BirtReportDocument class. Many of the event handlers for the BirtReportDocument class are implemented in this classb.AbstractReportComponent.jsBase class for the AbstractBaseReportDocument class. Provides framework functions for re-rendering content and setting up events.c.BirtReportDocument.jsHandles registering most of the event handlers and is included in the FramesetFragment.jsp, RequestorFragment.jsp, and the RunFragment.jsp.d.ReportComponentIdRegistry.jsUtility class used for id lookups.(5) Utility:a. BirtPosition.jsUtility class with functions for handling moving and sizing dialogs.b.BirtUtility.jsClass containing many reused utility functions, such as functions for enabling and disabling buttons, trimming data, and message formatting.c.BrowserUtility.jsUtility class with functions used when determining if output should be set up for Internet Explorer.d.Constants.jsClass containing many of the constants used with the BIRT Web Viewer.e.Debug.jsUtility class used for debugging the example Web Viewer. Can be launched by including the Debug.js and then calling the showDebug function.f.Printer.jsUtility class containing functions for printer manipulation.10、Relationships of standard BIRT components and custom components(BIRT Report Viewer)Report design(.rptdesign)Report EnginePresentation ServicesReport(PDF,HTML)11.API(1) BIRT Report Engine API该API提供了工作组类支持以下操作:a.发现一份报表中定义的参数设置.b.获取参数默认值c.运行报表设计来制作一个未格式化的报表文件d.运行报表设计文件或报告产生的任何支持的输出格式e.从报告中提取文档数据使用BIRT报表引擎API:a.为报表设置使用EngineConfig对象的引擎选择b.启动平台c.使用ReportEngineFactory创建ReportEngine 对象d.使用openReportDesign()的ReportEngine方法打开现有的报表设计或使用openReportDocument()方法打开一个现有的报表文件e.或者,当报表参数的设计细节都需要使用IGetParameterDefinitionTask对象以获取此信息f.使用IrunAndRenderTask或IRunTask,其次IRenderIask来运行和渲染报表g.清理调用destroy()引擎实例的引擎报表。