Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 331324 - Access to Datasets of libraries
Summary: Access to Datasets of libraries
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: BIRT (show other bugs)
Version: 2.6.0   Edit
Hardware: PC Windows XP
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Birt-ReportEngine-inbox@eclipse.org CLA
QA Contact: Xiaoying Gu CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-29 06:31 EST by Pico CLA
Modified: 2010-11-29 22:13 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.