Rank: Newbie
Groups: Registered
Joined: 9/23/2019(UTC) Posts: 1 Location: Tg Mures
|
Hi everyone,
My report generates a table with entries between two dates configured in the Restrictions section of the model definition.
I want my report to display something like "Report for StartDate - EndDate", where StartDate and EndDate are the dates that I select in the date picker when the report is run.
I suspect there should be some variables which hold these dates.
Two questions: 1. What are they and how can I use them? 2. How to I define a title for my report?
Thank you.
|
|
|
|
Rank: Administration
Groups: Administrators
Joined: 12/20/2013(UTC) Posts: 1,209 Thanks: 14 times Was thanked: 206 time(s) in 199 post(s)
|
Yes, please check first https://sealreport.org/R...es#lineDynamicChartTitleTo have the dates from the restrictions, it should be something like: var restriction = report.Models[0].GetRestrictionByName("Order Date"); result = restriction.Date1.ToString() + "-" + restriction.Date2.ToString(); so it is pure C#, check that Date1 and Date2 are not null, and format the date as you want...
|
|
|
|
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.