|
Re: Get rowmapping from DataSetHandle? [message #512326 is a reply to message #512237] |
Thu, 04 February 2010 16:50 |
|
Bob,
Can you not just do a split on the query text
" table0#-TNAME-#table0#:#[/people/person/name]#:#{name;String ;} "
Split on the #.
Jason
bob wrote:
> I iterate a list of dataSetHandles (bound to a XML data source)
> extracted from a .rptdesign file:
>
> List<DataSetHandle> dataSetsHandles = report.getAllDataSets();
> for (DataSetHandle dsh : dataSetsHandles) {
> String dsName = dsh.getName();
> String rowMapping = dsh.....??
>
> }
>
> I would like to extract the rowmapping from a DataSetHandle which could
> be something like this:
>
> /root/books/author
>
> But I can only seem to get the full queryText like:
>
> String rowMapping = dsh.getProperty("queryText");
>
> But then I also get all the column mappings. Is there any way to ONLY
> get the XPath rowmapping?
|
|
|
|
Powered by
FUDForum. Page generated in 0.01627 seconds