Hi All,
How can I get the query from a listPageInteraction class in an eventHandler? I have following scenario.
Class: SalesQuotationListPageInteraction
Method: initializeQuery()

I want to access query in eventHandler class and will then check query ranges there to perform some custom logic.
I have following eventHandler;
[PostHandlerFor(classStr(SalesQuotationListPageInteraction), methodStr(SalesQuotationListPageInteraction, initializeQuery))]
public static void SalesQuotationListPageInteraction_Post_initializeQuery(XppPrePostArgs args)
{
SalesQuotationListPage salesQuotationListPage;
Query query;
SalesQuotationListPageInteraction salesQuotationListPageInteraction = args.getThis();
ListPageArgs listPageArgs = salesQuotationListPageInteraction.listPage().listPageArgs();
if (listPageArgs && listPageArgs.enumTypeParameter() == enumNum(SalesQuotationListPage))
{
salesQuotationListPage = listPageArgs.enumParameter();
}
}
I have tried this method but it gives the query name not the actual query
str q = salesQuotationListPageInteraction.listPage().modeledQueryName();