1、4. Business Intelligence Reporting Tools SDK5. JDK 1.56. iText Jar (Optional)For IBM Employees, these components need to be downloaded from the IES Website. To do this, 1. Create a local directory to store Eclipse and BIRT. The example shown here uses a local directory of eclipse_download. *NOTE: Th
2、e local folder should NOT have any spaces in its path.2. Access 3. Click on 3.2.2 Build, Win32. Under the Eclipse Full Structure, locate the Eclipse Full SDK and save the file to your directory.4. On that same page, locate the Business Intelligence and Reporting Tools SDK and save the file to your l
3、ocal directory.5. Locate the EMF (Core) SDK and save the file to your local directory.6. Locate the GEF SDK and save the file to your local directory.7. Extract the Eclipse Zip File first to your local directory. Once complete, extract the remaining 3 zip files to your local folder. If you receive p
4、rompts to replace existing files, only replace if the date is greater than the existing file. Once complete, your directory should look like:8. If you do not have JDK 1.5 (5.0) installed, install an IBM-authorized version available from jim:For Windows the current download is here (subject to change
5、):9. Finally, if you want to view your reports in pdf format within the BIRT Designer, you will need to copy the iText.Jar file from the maximo build to your local install of Eclipse.A. First, locate the iText.Jar file, called com.lowagie.itext_1.5.2.jar. It is located in applicationsmaximomaximouiw
6、ebwebmoduleWEB-INFbirtplatformpluginsB. Copy this file to eclipseplugins2. Installing V7 Design Files for BIRTTo perform the next steps, you will need a local copy of V7, with the report source.Additionally, in the file paths below, v20070205-1728 is a version number and may be slightly different de
7、pending on the version you installed.1. Locate the compiled classes for report scripting from the location belowreportsbirtscriptlibraryclasses 2. Navigate to the location beloweclipsepluginsorg.eclipse.birt.report.viewer_2.1.2.v20070205-1728birtWEB-INFA. Create a classes folderB. Copy the entire co
8、m folder from step 1 to eclipsepluginsorg.eclipse.birt.report.viewer_2.1.2.v20070205-1728birtWEB-INFclasses3. Copy mxreportdatasources.properties using the same source and destination folders from steps 1 and 2.4. Open the copied mxdatasources.properties file, and edit if for your local configuratio
9、n:a) Set the URL, driver, username, password, and schemaowner properties for your local environment following the sample formats provided.b) Change # to maximoDataSource. Notes:A. The mxdatasources.properties file is only required by the report designer; at runtime the connection info will be set fr
10、om Maximo.B. A sample of this file for DB2 is shown below:#.=value# driver for ORACLE# oracle.jdbc.driver.OracleDriver# sample url for ORACLE# jdbc:oracle:thin:PORTSID# driver for SQLServer# com.inet.tds.TdsDriver# sample url for SQLServerinetdae7a:hostname:port?database=dbname&language=us_english&n
11、owarnings=true# driver for DB2# com.ibm.db2.jcc.DB2Driver# sample url for DB2db2:/localhost:50000/dbaliasmaximoDataSource.url=jdbc:/HARRIERDB2:50000/HARRIERmaximoDataSource.driver=com.ibm.db2.jcc.DB2DrivermaximoDataSource.username=maximomaximoDataSource.password=maximoThe values in red point to a sa
12、mple local database. You can check yours and other available for you to choose from Start MenuProgramsIBM DB2Set-up ToolsConfiguration Assistant.The key name in green is the default set for all reports, you have to use exactly this text.5. Copy the JDBC driver(s) from applicationsmaximolib or from t
13、he attached zip file to:eclipsepluginsorg.eclipse.birt.report.viewer_2.1.1.v20070205-1728birtWEB-INFlibThese drivers are only used by the designer.Note: For Oracle, use oraclethin.jar For SQL Server, use opta.jar For DB2, use db2jcc.jar and db2jcc_license_cu.jar3. Accessing the BIRT Designer1. Creat
14、e a shortcut to eclipse.exe. Be sure to include the following path pointing to your JDK 1.5 install highlighted in red in the target for the shortcut.C:eclipse_downloadBIRTeclipseeclipse.exe -vm program filesIBMJava50binjavaw.exe -vmargs -Xmx512m2. Select a workspace location. Check Use this as defa
15、ult field and OK.3. Eclipse SDK Opens.4. From the menu, select File New Project. Scroll down to the Business Intelligence and Reporting Tools Location, and select Report Project. Click Next.5. Type in a project name and click Finish.6. The BIRT Report designer within Eclipse SDK Displays.4. Configur
16、ing BIRT Report Designer to work with V7 Configuration filesNOTE: Use forward slashes or the Select button when specifying the folder paths in Eclipse.1. Specify the resource folder location to import the V7 Libraries.A. From the Menu, select Window - Preferences.B. Expand Report Design and select R
17、esource. C. Browse to your local report library location and select Apply. /reports/birt/libraries2. Specify the templates folder location to import the V7 Templates.A. If not already open, from the menu, Select Window - Preferences.B. Expand Report Design and select Templates. C. Browse to your loc
18、al report template location and select Apply./reports/birt/templates3. Disable the Comment Template.B. Remove the flag from the Generate comment when creating a report design field if it is set.4. Next, import the report project. This will bring the V7 Reports youre your project workspace.A. First,
19、create a project. Click File, New Project. Under Business Intelligence and Reporting Tools, select Report Project. Click Next.B. Enter a Project Name. Remove the flag in the Use Default Location field. Finally, Browse to the location of your V7 Report Source. reportsbirtreports. Click Finish.C. The
20、report project is imported.D. To confirm that the reports imported, expand a folder and then double click on an rptdesign file to open it. In the screenshot below, INVENTOR folder was expanded, and the inventory_balance_tbl.rptdesign file selected.E. Finally, you can confirm that the correct project is imported. To do this, right click on the Project. *NOTE: The location should be your V7 Report Source. It should not be under an Eclipse directory.Also, a .project file will be created under your reportsbirtreports directory.
copyright@ 2008-2022 冰豆网网站版权所有
经营许可证编号:鄂ICP备2022015515号-1