The is an args input, check the SysListPageInteractionBase
class, in the initializing
method the args object is retrieved:
this.setListPageType(this.listPage().listPageArgs());
You change the query based on this, check the ReturnTableListPageInteraction.setModeledQueryName()
method for example:
switch (this.getListPageType())
{
case ReturnTableListPageType::Main:
// Don't change query
break;
case ReturnTableListPageType::Open:
this.listPage().modeledQueryName(querystr(ReturnTableListPage_Open));
break;
[...]
}