26.04.2015 Views

Team Development with Visual Studio Team Foundation Server

Team Development with Visual Studio Team Foundation Server

Team Development with Visual Studio Team Foundation Server

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

1. In Solution Explorer, right click Shared Data Sources and then click Add New<br />

Data Source.<br />

2. On the General tab, enter TfsOlapReportDS into the Name text box.<br />

3. Select Microsoft SQL <strong>Server</strong> Analysis Services from the Type combo box.<br />

4. Click the Edit… button.<br />

5. Fill in your data tier server name.<br />

6. Select the database TFSWarehouse database.<br />

7. Click the OK button twice to add the data source.<br />

Step 3 – Create a new report in your project<br />

Now that the data sources have been added to your project you can add a new report.<br />

Perform the following steps to add a new report to your project and customize it:<br />

1. In Solution Explorer, right click Reports and then click Add->New Item...<br />

2. Select the Report template.<br />

3. Name the report and then click OK<br />

Step 4 – Modify the report<br />

After you have added a report to the project, you can modify it as follows:<br />

1. If the Report Designer doesn't open automatically, open the report for modification<br />

by double clicking it in the Solution Explorer.<br />

2. Click the Dataset drop down and then select <br />

3. Name the dataset, for example TestDataSet.<br />

4. Select TFSOlapReportDS (shared).<br />

5. Click OK.<br />

6. Click the ... button next to Build (just below the Dataset drop down list) and then<br />

select <strong>Team</strong> System.<br />

You are now set up to modify report by dragging measures and dimensions from the<br />

Dataset tree into the Query Pane and Filter Pane. You can modify the report’s layout<br />

by clicking the Layout tab. You can preview your report by clicking on the Preview tab.<br />

Step 5 – Deploy the report to your <strong>Team</strong> <strong>Foundation</strong> <strong>Server</strong><br />

After you have modified the report, you can deploy it to your team project’s reporting<br />

portal by performing the following steps:<br />

1. In Solution Explorer, right click on the report project and then click Properties.<br />

2. Ensure that OverwriteDataSources is set to false.<br />

3. Modify TargetDataSourceFolder to reflect your team project name; for example:<br />

TargetDataSourceFolder = TestProject.<br />

4. Modify TargetReportFolder to reflect your team project name; for example:<br />

TargetDataSourceFolder = TestProject.<br />

5. Modify TargetDataSourceFolder to http:///reportserver.<br />

For example: TargetDataSourceFolder = http://tfsrtm/reportserver.<br />

6. Click OK.<br />

7. In Solution Explorer, right click on the rdl file and then click Deploy.<br />

8. Watch the Output Pane to confirm successful completion.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!