index > Team Foundation Server - Reporting > Adding the Build_Type field to the TFS Builds Report...

Adding the Build_Type field to the TFS Builds Report...


HI,

Reporting Newbie...

I wanted to do what i thought was a simple thing...just add an extra field to an existing report...

I setup a new Reporting Project, added the Datasources and downloaded the Builds.RDL file from the Report configuration page.

I then added a field:

<?xml version="1.0" encoding="utf-8"?><Field xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xsi:type="Level" UniqueName="[Build].[Build_Type].[Build_Type]" />

called Build_Type.

I added a column to the designer & assigned the above field.

When I upload and run the report through the Reporting Services Web page, I get an empty value for that field.

At design time, I don't get any data back at all when previewing the report.

If I look at the Data Tab, I can see the data is there.

Any ideas?

Am I at least going down the right track?

Thanks

MINA

Hmmm...No responses yet...

Buck (or anyone...), would it be possible to get an updated .RDL file with that extra field included in the report?

Reason is that I've changed the Build Number to be just the version etc. as in a Typical Build Number, but in the report, it'd be nice to see the actual build type as well.

I would have thought that this would have been the default functionality.

I can't seem to get a working report though.

(Worst case is I'll append the BuildType to my Build number but that's a cr*ppy solution...)

Thanks

MINA

You can add the additional field from the Reporting Project that you created. Here is what I did:

Create a new Reporting Project
Add TfsReportDS and TfsOlapReportDS (these will not be deployed because they already exist)


Change the project properties (Right click Project and select properties)
OverwriteDataSource = false
TargetDataSourceFolder = /
TargetReportFolder = /Your_Project_Name/
TargetServerURL = http://Your_Report_Server/ReportServer

Download your Builds report and add it to your project using "Add existing item". I suggest renaming the report or backing up the original in case anything goes horribly wrong. For example renamed mine from Build to Build2.

Add Build Type to the query:
Double click the report to open it with the designer and select the Data Tab
Select the Dataset: dsBuilds from the dataset dropdown
In the inner NONEMPTYCROSSJOIN add [Build].[Build Type].[Build Type] and change the 3 to a 4. This should result in an inner section looking like:

NONEMPTYCROSSJOIN
(
GENERATE(STRTOSET(@BuildParam) AS s, DESCENDANTS(s.CURRENTMEMBER,[Build].[Build].[Build])),
[Build].[Build Type].[Build Type],
GENERATE(STRTOSET(@PlatformParam) AS s, DESCENDANTS(s.CURRENTMEMBER,[Platform].[Platform].[Platform])),
GENERATE(STRTOSET(@FlavorParam) AS s, DESCENDANTS(s.CURRENTMEMBER,[Flavor].[Build Flavor].[Build Flavor])),
[Measures].[Build Project Count],4
),

Modify the Query Parameters so the query will execute in the designer.
Click the button that looks like a report with an @ sign written over it on the bar directly above the query
Change the Project Parameters Default value to YOUR_PROJECT_NAME
OK

Execute the query
This should return a list of all your builds including Build Type

Save

Edit the Layout to display the Build Type
On the Layout tab right click a column on the table and add a new column
Give the column a name in the top row
In the 2nd row enter =Fields!Build_Type.Value

Save

Edit the Report Parameter ExplicitProject parameter
Still on the Layout Tab select Report -> Report Parameter
Under ExplicitProject set the Default Value to Non-queried with the value of YOUR_PROJECT_NAME
OK

Save

Go to the Preview Tab - View Report should display your report with the Build Type data

Deploy

Go to the Report Web site and verify the report works

Let me know how it goes.

Nick Ericson - MSFT
reply 3

You can use google to search for other answers

 

More Articles

How to validate parameters in the rdl itself
Log of TFS activities???
Work Item Details Report
How to create a new report and include into process templates?
replicate cool history tab in report
Turning a Work Item Query Into a Report
How to create a report on Work Item Links?
Date validation
How to debug the subscription function
How to create report on custom defined plain text fields
Welcome to Bokebb   New Update   Joins the collection  
 

New Articles

how to install report designer?
Where is the areapath in reoprts in TFS …
Reporting completed work per person retu…
report designer don`t find all fields
How do I 'hide' a deleted item so it doe…
How can I create Dynamic Query between t…
replicate cool history tab in report
report of links between work items - doe…
Turning a Work Item Query Into a Report
Can't Create New Projects - Help Please?
Error executing reports in RTM Trial
Daily wise resource allocation in MS Pro…
Can not find any Perspective other than …
TFS Project & Report Server ERrors
Work Item Details Report

Hot Articles

Deploying cube so as to make reports bas…
Error Generating model for Olap Data Sou…
Failed to load adapter
How to Remove the row which doesn't have…
Adding the Build_Type field to the TFS B…
Issues in using reporting services we ar…
Printing Reports from within Team Explorer
Error al procesar el informe. (rsProcess…
Reporting completed work per person retu…
Quality Indicators Report
Report with item description
How do I fix the TfsOlapReportDS user pr…
Does Business Intelligence Development S…
Merged Changesets Report
What ?淒efault Value??is the correct one…

Recommend Articles

Workitem trends and filters
Extra strain report (overeffor or sobree…
Failed to load adapter
"TF53010: An unexpected condition h…
Label reports
Can't find links between Work item and t…
Passing new parameters to Report(.rdlc)
Reporting Changeset Details
TFS Project & Report Server ERrors
Can I customize the VSTS bug report?
How to create report on custom defined p…
Problem with data stored on Warehouse in…
cube versus warehouse
NullReferenceException during Code Churn…
SQL SP1 killed some reports