EventDriven Query on Page

Skip Navigation LinksHome  /  Support  /  Forums  /  DynamicPDF CoreSuite for .NET (v7)  /  EventDriven Query on Page

DynamicPDF CoreSuite for .NET (v7) Forum

 Jul 30 2014 12:55 PM
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?
 Jul 31 2014 9:36 AM
Posted by a ceTe Software moderator
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.
 Jul 31 2014 11:50 AM
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!

All times are US Eastern Standard time. The time now is 7:31 PM.