Task 6: In this procedure, define an extension that customizes the data extraction functionality provided by the org.eclipse.birt.report.engine.dataextraction plug-in. This plug-in defines an extension point, which your plug-in uses to define a custom extension to retrieve data from the data set and generate the XML data required by the Flash chart.
1 In the Plug-in editor, choose the Extensions tab. If an Extension tab is not available, do the following:
1 In the Overview page, in the Extension/Extension Point Content section, choose the Extensions link.
2 Select org.eclipse.birt.report.engine.dataExtraction from the list of extension points, as shown in Figure 18-28.
Figure 18-28 Choose Finish. A message asks if you want to add a dependency to the org.eclipse.birt.report.engine plug-in. Choose Yes. The Extensions page displays the new extension to the plug-in.
Table 18-1 com.actuate.birt.flash.library.sample.combchart.XMLGenerator The supported format of this data extraction extension. Later, when you create the Flash chart’s dataURL variable, you pass the format value as an argument to the createDataURL( ) method. com.actuate.birt.flash.library.sample.combchart.XMLGenerator The Java class that implements the IDataExtractionExtension interface. You create this class later. Mime type of the file generated by the extension. The name of the extension. This name appears in the user interface. Specifies whether format is shown in the user interface.Figure 18-29 shows the specified properties in the Extensions page.
Figure 18-29
5
|
|
Copyright Actuate Corporation 2012 |