Skip to main content



      Home
Home » Archived » BIRT » Change oda-data-source FILELIST property at runtime
Change oda-data-source FILELIST property at runtime [message #102230] Fri, 23 December 2005 17:37 Go to next message
Eclipse UserFriend
Originally posted by: doug_porter.dailyaccess.nospam.com

I am trying to change the FILELIST property inside the oda-data-source property at runtime. I was trying to get a
ReportDesignHandle using the design engine and then iterate the datasources, but I can't seem to find the right call to change the
existing property. I'm sure it can be done. Anyone got a pointer to the right method call?

Doug Porter
DailyAccess Corporation
Re: Change oda-data-source FILELIST property at runtime [message #103031 is a reply to message #102230] Fri, 30 December 2005 00:00 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: rvedre.hotmail.com

Doug -
If you haven't already figured it out, following is code snippet I am
using to change the FILELIST property at runtime.

ReportDesignHandle reportDesignHandle = session.openDesign(reportPath);

SlotHandle datasourceSlotHandle = reportDesignHandle.getDataSources();
OdaDataSourceHandle dataSource = null;
if (datasourceSlotHandle.getCount() > 0) {
dataSource = (OdaDataSourceHandle) (datasourceSlotHandle.get(0));
dataSource.setStringProperty( "FILELIST", dataSourceFileList);
}

Did you have sucess using "InputStream as input to XML DataSource" ?

-Rana.


"Doug Porter" <doug_porter@dailyaccess.nospam.com> wrote in message
news:dohtui$hjr$1@utils.eclipse.org...
>I am trying to change the FILELIST property inside the oda-data-source
>property at runtime. I was trying to get a
> ReportDesignHandle using the design engine and then iterate the
> datasources, but I can't seem to find the right call to change the
> existing property. I'm sure it can be done. Anyone got a pointer to the
> right method call?
>
> Doug Porter
> DailyAccess Corporation
>
>
Re: Change oda-data-source FILELIST property at runtime [message #103099 is a reply to message #103031] Fri, 30 December 2005 09:55 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: doug_porter.dailyaccess.nospam.com

Thanks Rana.

No, not yet. Once I get this version up and working I'll work on integrating in an InputStream versus a file or URL.

Doug Porter
DailyAccess Corporation

"Rana" <rvedre@hotmail.com> wrote in message news:dp2eq4$277$1@utils.eclipse.org...
> Doug -
> If you haven't already figured it out, following is code snippet I am
> using to change the FILELIST property at runtime.
>
> ReportDesignHandle reportDesignHandle = session.openDesign(reportPath);
>
> SlotHandle datasourceSlotHandle = reportDesignHandle.getDataSources();
> OdaDataSourceHandle dataSource = null;
> if (datasourceSlotHandle.getCount() > 0) {
> dataSource = (OdaDataSourceHandle) (datasourceSlotHandle.get(0));
> dataSource.setStringProperty( "FILELIST", dataSourceFileList);
> }
>
> Did you have sucess using "InputStream as input to XML DataSource" ?
>
> -Rana.
>
>
> "Doug Porter" <doug_porter@dailyaccess.nospam.com> wrote in message
> news:dohtui$hjr$1@utils.eclipse.org...
> >I am trying to change the FILELIST property inside the oda-data-source
> >property at runtime. I was trying to get a
> > ReportDesignHandle using the design engine and then iterate the
> > datasources, but I can't seem to find the right call to change the
> > existing property. I'm sure it can be done. Anyone got a pointer to the
> > right method call?
> >
> > Doug Porter
> > DailyAccess Corporation
> >
> >
>
>
Re: Change oda-data-source FILELIST property at runtime [message #103112 is a reply to message #103031] Fri, 30 December 2005 11:14 Go to previous message
Eclipse UserFriend
Originally posted by: doug_porter.dailyaccess.nospam.com

After making the changes to the report design is it possible to convert it to an IReportRunnable object without saving it to disk
and using the ReportEngine's openReportDesign( ) methods.

Doug Porter
DailyAccess Corporation

"Rana" <rvedre@hotmail.com> wrote in message news:dp2eq4$277$1@utils.eclipse.org...
> Doug -
> If you haven't already figured it out, following is code snippet I am
> using to change the FILELIST property at runtime.
>
> ReportDesignHandle reportDesignHandle = session.openDesign(reportPath);
>
> SlotHandle datasourceSlotHandle = reportDesignHandle.getDataSources();
> OdaDataSourceHandle dataSource = null;
> if (datasourceSlotHandle.getCount() > 0) {
> dataSource = (OdaDataSourceHandle) (datasourceSlotHandle.get(0));
> dataSource.setStringProperty( "FILELIST", dataSourceFileList);
> }
>
> Did you have sucess using "InputStream as input to XML DataSource" ?
>
> -Rana.
>
>
> "Doug Porter" <doug_porter@dailyaccess.nospam.com> wrote in message
> news:dohtui$hjr$1@utils.eclipse.org...
> >I am trying to change the FILELIST property inside the oda-data-source
> >property at runtime. I was trying to get a
> > ReportDesignHandle using the design engine and then iterate the
> > datasources, but I can't seem to find the right call to change the
> > existing property. I'm sure it can be done. Anyone got a pointer to the
> > right method call?
> >
> > Doug Porter
> > DailyAccess Corporation
> >
> >
>
>
Previous Topic:Happy new year!
Next Topic:Get Report ResultSet in Runtime
Goto Forum:
  


Current Time: Thu May 29 06:55:50 EDT 2025

Powered by FUDForum. Page generated in 0.07139 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top