EventDriven query to return no rows NullReferenceException

EventDriven query to return no rows NullReferenceException

Forum member · Dec 11, 2009
How do I specify that an EventDrivenQuery is returning zero rows? If I return e.RecordSet = new EnumerableRecordSet( new object[0] ) or new DataTableRecordSet( new System.Data.DataTable() ) I get a NullReferenceException somewhere below Report.Layout().

Re: EventDriven query to return no rows NullReferenceException

Support · Dec 11, 2009
Hello, Currently it is not possible to return no rows from within an Event Driven Query. However we will look into this and see if there is a work around possible. We will post further updates as soon as we find anything. Thanks, ceTe Software Support Team

Re: EventDriven query to return no rows NullReferenceException

Forum member · Dec 14, 2009
This could be a dealbreaker-- we need some way of hiding a section of a report if there's no data for that section. Is there any other way of conditionally excluding material from the report?

Re: EventDriven query to return no rows NullReferenceException

Support · Dec 14, 2009
Hello, Yes, by passing a null object or a table without rows, it will give Null Reference Exception in the event driven query. You will have to use the query which returns some rows or a table which has rows in the event. Thanks, ceTe Software Support Team.