1
votes

All,

I've been working on a custom timesheet report that uses multiple datasets (8 to be exact). Each dataset selects the data by the same ID field which is currently input as a parameter. It works great like that. But now I'm told that the end user wants to input a date and have all the reports printed out for that date rather than having to enter in an ID each time. Each timesheet is 2 - 3 pages. It is intended to emulate a form and contains some data but a lot of blank areas to allow the field people to write in any changes that have occurred.

My question, is this: what is the best way of accommodating the new requirement? Should I build it all as one big dataset and use the date as a parameter?

Should I create a wrapper report that would prompt for the date and then use the existing report as sub report? Would that even work?

Is there any way I can just create a new date parameter and put that ahead of the ID parameter and get them to print out like that? I've got a few hidden parameter fields on the body that get used in the page header and are used to link some of the datasets.

any help is appreciated.

1

1 Answers

1
votes

Easiest way to achieve this is indeed by creating a wrapper report with the date parameter. The data set in this report will then fetch all items (with ID) that match the query by the user. The report can then have a list for that dataset, with the original report as a subreport. If you pass the ID parameter from the dataset to the subreport you wouldn't need to change hardly anything in the original report.

Two things to watch out for:

  • the Report Header and Footer in a subreport are not rendered - these are only rendered for the wrapper report
  • you may need to tweak your page breaks in the subreport and on the new list in the wrapper report so each new form starts on a fresh page