EventDriven Query on Page

EventDriven Query on Page

Forum member · Jul 30, 2014
I'm having some difficulty with an eventdriven query on a page within a document that has a report which has an eventdriven query. From C# code, I'm able to access the report's eventdrivenquery by DocumentLayouts.GetQueryById("ReportQuery") but the page's query when using GetQueryById("PageQuery") returns null. What am I missing here?

Re: EventDriven Query on Page

Support · Jul 31, 2014
Hello, The page’s query can be accessed the same way using GetQueryById() method. Null will be returned if it cannot find the query by the specified name. So please make sure you are passing the correct query name in your code. Thanks, ceTe Software Support Team.

Re: EventDriven Query on Page

Forum member · Jul 31, 2014
Thanks for response. That wasn't the issue. For whatever reason, the dplx file had not really saved the query as 'EventDriven' even though that's what appeared in the 'Query - Editor' window. Resolved issue by closing/reopening dplx file, set Query and tried again. Success!