kalel,
thought I would post in this thread since you are familular with this portion.
Having a problem with the Query Builder. I can get all the way to the ReportQuery.aspx but when i click the Preview button I get the following.
Code:
if (QueryBuilder1.GetWhereClause(ref whereClause, ref validationErrors))
{
ENTReportBO currentReport = CurrentReport;
ReportDocument report = newReportDocument();
report.Load(Server.MapPath(currentReport.FileName));
Type objectType = Type.GetType(currentReport.ObjectName);
object listObject = Activator.CreateInstance(objectType);
//This is where it fails
object[] data = (object[])objectType.InvokeMember("Select", BindingFlags.InvokeMethod, null, listObject, newobject[] { whereClause });
I get the following error:
"Exception has been thrown by the target of an invocation."
The debugger shows that the data object is null. The SQL that I used in the DAL QueryData file uses a good amount of aggregate functions. Do you think this is the cause. I have looked and doubled check all that I can think of. Also, I added a query filed that is not pulled by the selet statement, but I cant include that field in the Select statement because it has to be apart of an aggregate function which isnt possible (datetime). Any help is appreciated.
Thanks