|
Re: How to get the absolute location of a data source [message #879295 is a reply to message #879288] |
Wed, 30 May 2012 23:29 |
|
Neil,,
Do you mean like position on the report? Datasets do not have a
location. Tables do but unless you specify a width/height you I do not
believe we expose generated position.
Jason
On 5/30/2012 7:15 PM, Neil Wang wrote:
> Hi,
>
> I am trying to get the absolute location of a data source
> programmatically and this is what I have done so far:
>
> I have a ReportDesignHandle object "rdh" and used
> rdh.getAllDataSources() to cast all data sources to a list of
> DesignElementHandle objects.
> I further cast each DesignElementHandle object to an OdaDataSourceHandle
> object.
>
> I checked all the methods of each object at the ReportDesignHandle,
> DesignElementHandle and OdaDataSourceHandle level but still can't figure
> out how to get the absolute location of each data source. Please advise.
>
> Neil
|
|
|
|
|
|
Re: How to get the absolute location of a data source [message #879793 is a reply to message #879694] |
Thu, 31 May 2012 21:19 |
|
Neil,
You can try something like this:
reportContext.getDesignHandle().getDataSources().get(0).getProperty("FILELIST");
But if the connection profile changes at runtime I am not sure this will
be updated. BTW the profile location property is:
OdaConnProfileStorePath
Jason
On 5/31/2012 12:57 PM, Neil Wang wrote:
> Hi Jason,
>
> The source is a XML file.
> Please have a look at the screen shot in attachment. Basically, I need to get "C:\Project1\NewMapping.xml" programmatically by using Java code.
>
> Neil
|
|
|
Powered by
FUDForum. Page generated in 0.03448 seconds