Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Report Builder 2.0
Message
From
10/09/2009 11:58:30
 
 
To
10/09/2009 11:16:32
General information
Forum:
Microsoft SQL Server
Category:
Reporting Services
Miscellaneous
Thread ID:
01423230
Message ID:
01423454
Views:
50
>I can see how that works and yes the subreports are a lot easier to manage but if I want to place a single table on the report with information coming from three database tables to display in this single table, is this actually possible?
>
>From what I've tried if I try to mix up the fields in the table to show different database columns I get:
>
>"The Value expression for the textbox ‘x’ refers to the field ‘y’. Report item expressions can only refer to fields within the current data set scope or, if inside an aggregate, the specified data set scope."
>
>Of course this is because I have a certain single table dataset linked to this table, it won't allow me to add the whole dataset and if I try to remove it:
>
>"The data set name is missing in the data region ‘DataSetName’."

In the report designer, click on the table (the grid) and click Properties. You should now see the follow tabs:

General
Visibility
Navigation
Sorting
Groups
Filters
Data Output

In the general tab, select your dataset for 'Dataset name: '
In the sorting tab, set up the expressions for sorting your data.
In the Groups tab, set up a data group on the parent id (key) that the child records are linked on (e.g. =Fields!Parent_id.Value) You can name it anything (default is table number and group number). Set the parent group by selecting it from the dropdown.

Then, after your table is configured correctly on the report designer, click in the colum you want to configure and point to the correct child table field.

I recommend you walk through some tutorials. Here is a good one to get you started:

http://www.gotreportviewer.com/masterdetail/index.html

it covers one way to get it done (there are a few different ways). The website is a great beginner lesson:

http://www.gotreportviewer.com/
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Previous
Reply
Map
View

Click here to load this message in the networking platform