Please help me add one more “And<>” to my statement.
This statement is all squiqqle free and works as expected.
PXSelectBase<AuditHistory> recordsToProcess = new PXSelectJoin<AuditHistory,
LeftJoin<QTCAuditHistoryReport,
On<QTCAuditHistoryReport.screenID, Equal<AuditHistory.screenID>,
And<QTCAuditHistoryReport.batchID, Equal<AuditHistory.batchID>,
And<QTCAuditHistoryReport.changeID, Equal<AuditHistory.changeID>>>>>,
Where<AuditHistory.changeDate, GreaterEqual<Required<AuditHistory.changeDate>>,
And<AuditHistory.changeDate, Less<Required<AuditHistory.changeDate>>,
And<QTCAuditHistoryReport.screenID, IsNull>>>>(this);
return recordsToProcess.Select(filter.StartDate, filter.EndDate.Value.AddDays(1).AddTicks(-1));
This is the “colorized” version:
My record set returns rows from the AuditHistory table that have null screen id’s and I want to exclude them.
I am trying to add on more And<> and I cannot get it to work (won’t compile...lots of red squiggles)
This is what I think should work, but I can’t seem to get it formatted correctly.
I am adding in the line in BOLD
PXSelectBase<AuditHistory> recordsToProcess = new PXSelectJoin<AuditHistory,
LeftJoin<QTCAuditHistoryReport,
On<QTCAuditHistoryReport.screenID, Equal<AuditHistory.screenID>,
And<QTCAuditHistoryReport.batchID, Equal<AuditHistory.batchID>,
And<QTCAuditHistoryReport.changeID, Equal<AuditHistory.changeID>>>>>,
Where<AuditHistory.changeDate, GreaterEqual<Required<AuditHistory.changeDate>>,
And<AuditHistory.changeDate, Less<Required<AuditHistory.changeDate>>,
And<AuditHistory.screenID, IsNotNull>,
And<QTCAuditHistoryReport.screenID, IsNull>>>> (this);
return recordsToProcess.Select(filter.StartDate, filter.EndDate.Value.AddDays(1).AddTicks(-1));
This is what it looks like “colorized”
All my “<” and “>” match up where they should.
Any ideas?
Thanks...