Page 1 of 1
Common data from several data sources in the same data band.
Posted: Thu Oct 21, 2010 6:50 am
by raulcaster
I have two data sources which have some common fields. There isn't any other possibility of getting this data (e. g., using a UNION query) because they come from an XML file, specified by different keys. I want to use these common fields in the same databand to sort by one of them. What can I do?
Thanks.
Common data from several data sources in the same data band.
Posted: Fri Oct 22, 2010 1:03 am
by raulcaster
Other possibility may be merge my two datasources in one datasource with the fields I'm interested in. But I don't know how can I do it.
Common data from several data sources in the same data band.
Posted: Fri Oct 22, 2010 4:30 am
by Alex K.
Hello,
Can you please describe your task in details? And, if possible, send us a data sample.
Thank you.
Common data from several data sources in the same data band.
Posted: Fri Oct 22, 2010 5:07 am
by raulcaster
Here's a simple explanation of my problem. The XML file from I get data has two node types which have the fields I need, some of them are common:
...
...
...
In the example attributes "key1" and "key2" are common, but "key3-1" and "key3-2" own to a concrete type.
To get these nodes, I have two data sources, one for each one:
xmlConnection.type1_row: retrives all attributes in "type1_row" nodes.
xmlConnection.type2_row: retrives all attributes in "type2_row" nodes.
Now I need to get these data sources' common data ("key1" and "key2") to show them in the same databand. I also need the data band to be unique, because the table has to be sorted by one of the common fields, treating the data as if they came from the same type, not distinguishing if they own to "type1_row" or "type2_row". I can't change XML file structure because it's used by an application.
I hope this explanation helps you.
Thanks, again.
Common data from several data sources in the same data band.
Posted: Fri Oct 22, 2010 8:24 am
by Alex K.
Hello,
Unfortunately, it is impossible to be done in the designer, data source uniting can be made in the application code and then pass the resulting dataset the report designer.
Thank you.