David Smith

David Smith

  • NA
  • 2k
  • 0

Back to parent report via drillthrough event

Nov 11 2010 11:36 AM
 
Can someone tell me what im missing. I have one parameter setup to jump to the next report which works fine. The issue is when I hit the button call "back to parent report" on the report viewer itself, I get a error saying some missing parameters or cridentals are missing, How is that so?  Below I have my reportdatasource name and reportdatasource value. Is this a bug, or im doing something wrong, can someone assist me.  thanks in advance.
 
case "Example.rdlc":
DateTime DateTime = Convert.ToDateTime(report.OriginalParametersToDrillthrough[0].Values[0].ToString());
genericDataSet.EnforceConstraints = false;
this.report.ReportEmbeddedResource = report.ReportEmbeddedResource;
this.rDataSource.Name = "Datatable";
this.rDataSource.Value = this.BindingSource.Filter = "TimeStamp = #" + DateTime + "#";
this.rDataSource.Value = this.BindingSource;
this.titleParameter = new ReportParameter("Title", this.BookTitle);
this.report.SetParameters(new ReportParameter[] { titleParameter });
this.report.DataSources.Add(rDataSource);
this.report.Refresh();
break;

Answers (1)