SSRS Reporting Services | Improving report navigation exercise | Create a table of bookmarks, and a link back to top

This exercise is provided to allow potential course delegates to choose the correct Wise Owl Microsoft training course, and may not be reproduced in whole or in part in any format without the prior written consent of Wise Owl.

You can learn how to do this exercise on the relevant Wise Owl classroom training course (sadly for the moment only in the UK).

Software ==> SSRS Reporting Services  (99 exercises)
Version ==> SSRS 2012 and later
Topic ==> Improving report navigation  (2 exercises)
Level ==> Average difficulty
Before you can do this exercise, you'll need to download and unzip this file (if you have any problems doing this, click here for help). Once you've done this:
  1. Go into SQL Server Management Studio;
  2. Open the SQL file you've just unzipped (you can press CTRL + O to do this); then
  3. Execute this script.

This will generate the database that you'll need to use in order to do this exercise (note that the database and script are only to be used for exercises published on this website, and may not be reused or distributed in any form without the prior written permission of Wise Owl).

You need a minimum screen resolution of about 700 pixels width to see our exercises. This is because they contain diagrams and tables which would not be viewable easily on a mobile phone or small laptop. Please use a larger tablet, notebook or desktop computer, or change your screen resolution settings.

Create a table listing characters played by director and film:

Grouped table

You may be able to use a report that you've created for the previous exercise.

 

Attach a bookmark to each director's name by changing the Bookmark property in the Other section of the relevant textbox's properties.

Create a separate dataset listing the 5 oldest directors in the database.

Use SELECT TOP 5 ... combined with an ORDER BY clause.

Create a table based on this dataset to show the names of these directors:

Oldest directors

The 5 oldest directors (we've also formatted their names so they look like hyperlinks).

 

Now attach actions to each director's name so that when you click on it, SSRS jumps you to the appropriate bookmark.

Finally, add a row to the footer for each director group member, so that you can click to return to the top of the report:

Back to top

Note that you'll also need to set the bookmark property for the top table of quick links, so you have something to go back to.

 

Test that your bookmarks work!

One final thought: what would have happened if some of the directors in the top 5 list hadn't made any films?  How would you have got round this?

You can unzip this file to see the answers to this exercise, although please remember this is for your personal use only.
This page has 0 threads Add post