Seal Report Forum
»
Report Edition
»
Reports
»
How to have Page table / Data table headers with restrictions
Rank: Member
Groups: Registered
Joined: 10/21/2019(UTC) Posts: 16
|
I have a data table in the report - I need to have a header that displays a title and selected restriction value.
In another report - I was able to do this for chart title by modifying the code. But I do not see how to implement this for the data table - Any suggestions would be helpful..thanks
|
|
|
|
Rank: Administration
Groups: Administrators
Joined: 12/20/2013(UTC) Posts: 1,209 Thanks: 14 times Was thanked: 206 time(s) in 199 post(s)
|
There are several ways to do that, I would suggest the following: - Select your 'Model Container' view, and add a 'Free View' - Move the new view before your 'Page Table' View - Edit the template of your view and put code like this: Code:@using Seal.Model
@using Seal.Helpers
@{
Report report = Model;
ReportView view = report.CurrentView;
ReportView modelView = report.CurrentModelView;
ReportModel reportModel = modelView.Model;
ResultPage page = report.CurrentPage;
}
<h3>@reportModel.GetRestrictionByName("Customer").Value1</h3>
This will add a header based on the restriction value enter by the user. Check also https://sealreport.org/R...es#lineDynamicChartTitle
|
|
|
|
Rank: Member
Groups: Registered
Joined: 10/21/2019(UTC) Posts: 16
|
Thank you. That worked perfectly!
|
|
|
|
Seal Report Forum
»
Report Edition
»
Reports
»
How to have Page table / Data table headers with restrictions
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.