Seal Report Forum
»
Report Edition
»
Reports
»
How can I change my show totals diplayname
Rank: Newbie
Groups: Registered
Joined: 3/29/2022(UTC) Posts: 7 Thanks: 2 times
|
Hi I'm SealReport rookie I want to know how can I change my show totals display name for column(bottom row total>Average) PhotoLink
thanks all Edited by user Tuesday, March 29, 2022 9:59:08 AM(UTC)
| Reason: Not specified
|
|
|
|
Rank: Administration
Groups: Administrators
Joined: 12/20/2013(UTC) Posts: 1,209 Thanks: 14 times Was thanked: 206 time(s) in 199 post(s)
|
A simple way to change the total title for rows is to use the 'Cell Script' of the element: Code:@{
ResultCell cell=Model;
if (cell.IsTitle && cell.IsTotal)
{
cell.Value = "Average";
}
}
Then, for the total title for columns (which is actually the first cell of the last row of the table), use the 'Final Script' of the model: Code:@using System.Data
@{
ReportModel model = Model;
foreach (ResultPage page in model.Pages)
{
ResultTable dataTable = page.DataTable;
dataTable[dataTable.Lines.Count - 1, 0].Value = "Average";
}
}
|
1 user thanked epf for this useful post.
|
|
|
Rank: Newbie
Groups: Registered
Joined: 3/29/2022(UTC) Posts: 7 Thanks: 2 times
|
This method is useful for me
Thanks.
|
|
|
|
Seal Report Forum
»
Report Edition
»
Reports
»
How can I change my show totals diplayname
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.