Define context item for query called via method

オフライン

Hi,  

I am referencing this blog post: https://community.aras.com/b/english/posts/using-query-definitions-method-code

I am running a query via method, how can I set the condition as the query seems to return all possible results without a context item.