Solved

Group name in page header SSRS 2008R2

Posted on 2010-09-23
4
3,071 Views
Last Modified: 2012-05-10
I am using table in report and doing grouping based on employee name. Whenever the employee name changes in hte group header ,it has to update that employee name in hte TextBox in page header. I tried the expression =First(reportItems!Employeename.Value), but it is not working for all pages,because some pages have only details and group header are in previous pages. How
to update the textbox in the page header with current group employee name.

Thanks in advance
0
Comment
Question by:KavyaVS
  • 2
4 Comments
 
LVL 28

Expert Comment

by:sammySeltzer
ID: 33747419
The best way to handle this is to completely delete the page header and then using the toolbox to the left of the designer, create a header off of the body and then your update should work.

Header columns are usually static and are unaffected by query/update changes.
0
 

Author Comment

by:KavyaVS
ID: 33748383
My report should have the page header. I can't do what you suggested and I am not updating the text box in the page header with column header.
I do want to update the textbox in the page header with the group name. I did grouping with employee name.Whenever the new group starts the group name has to showing up in the text box. Is there any expression to display the group name in the textbox.
I tried this expression =First(reportItems!Employeename.Value) and it displays the first occured employee
name in that page in page header's text box. But if details span multiple pages and group header is not
there in that page no employe name is displayed in the text box.

Any adivces please.
0
 

Accepted Solution

by:
KavyaVS earned 0 total points
ID: 33761108
I tried this. Set the group properties in property pane, Page Break at the END of the group and PageName property to the Group variable. I refer the Page Name in the text box in Page Header as  Globals!PageName.
Now it is updating the Group name in Page Header.

             
      
      
0
 

Expert Comment

by:mychair
ID: 35141153
"I tried this. Set the group properties in property pane, Page Break at the END of the group and PageName property to the Group variable. I refer the Page Name in the text box in Page Header as  Globals!PageName.
Now it is updating the Group name in Page Header."  

This is a good solution, but it only works in R2.
0

Featured Post

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you have heard of RFC822 date formats, they can be quite a challenge in SQL Server. RFC822 is an Internet standard format for email message headers, including all dates within those headers. The RFC822 protocols are available in detail at:   ht…
Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

816 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now