Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 331324

Summary: Access to Datasets of libraries
Product: z_Archived Reporter: Pico <mpicom>
Component: BIRTAssignee: Birt-ReportEngine-inbox <Birt-ReportEngine-inbox>
Status: NEW --- QA Contact: Xiaoying Gu <bluesoldier>
Severity: major    
Priority: P3 CC: bluesoldier, mpicom
Version: 2.6.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Pico CLA 2010-11-29 06:31:37 EST
Hi, 

In my application I change the xml datasets at runtime by scriptedDatasets, getting  datsets`s models follows:

IReportRunnable reportRunnable=engine.openReportDesign(reportFile);	
ReportDesignHandle design = (ReportDesignHandle) reportRunnable.getDesignHandle();
SlotHandle slotDataSetHandle=design.getDataSets();
List contentSlot=slotDataSetHandle.getContents();

The problem appears when a dataset is in a library, because the dataset to overwrite isn`t and using:

LibraryHandle libreria =(LibraryHandle)design.getLibrary(library);
SlotHandle slotDataSetHandleLibreria = libreria.getDataSets();
List contentSlotLibrary=slotDataSetHandleLibreria.getContents();

The size of contentslotLibrary is 0. 

how I can access the datasources and datasets of the libraries? or how i can change de datasets and datasources in libraries at runtime ? 


Thanks in advance.