Package org.eclipse.birt.report.model.api

Examples of org.eclipse.birt.report.model.api.LibraryHandle


      dengine = factory.createDesignEngine(dconfig);

      // create a new session, open the library, and retrieve the first
      // data source since it is uniform in our library
      SessionHandle session = dengine.newSessionHandle(ULocale.ENGLISH);
      LibraryHandle design = session
          .openLibrary("C:/eclipse/GWTBirt/BIRTGwt/src/reports/DataSets.rptlibrary");
      dataSourceHandle = (DataSourceHandle) design.getDataSources()
          .get(0);

      // create a new report
      ReportDesignHandle reportDesign = session.createDesign();
      reportDesign.getDataSources().add(dataSourceHandle);

      // find the correct data set based on dateSetName
      int dataSetCount = 0;
      for (Iterator dataSetIterator = dataSetNames.iterator(); dataSetIterator
          .hasNext();) {
        dataSetCount++;
        String dataSetName = (String) dataSetIterator.next();

        for (Iterator i = design.getDataSets().iterator(); i.hasNext();) {
          DataSetHandle dataSetHandle = (DataSetHandle) i.next();

          if (dataSetHandle.getName().contains(dataSetName)) {

            dataSetHandleToUse = dataSetHandle;
View Full Code Here

TOP

Related Classes of org.eclipse.birt.report.model.api.LibraryHandle

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.