You can access the query object in the Business Process and add/remove where clauses based on the current view.

 

public override AB_SelectReturnArgs am_Select(AB_SelectInputArgs inputArgs)
        {
              switch (inputArgs.ap_View)
            {
                case "FWUGV01_COMMAND":

                      if (inputArgs.ap_Query == null)
                      {
                          inputArgs.ap_Query = new AB_Query();
                      }

                    // Remove Group Type "SYSTEM" and add Group Type "COMMAND"
                    inputArgs.ap_Query.am_RemoveWhereClause(UserGroupsEntity.GroupTypeProperty.ap_PropertyName);
                    inputArgs.ap_Query.am_AddWhereClause(UserGroupsEntity.GroupTypeProperty.ap_PropertyName, "=", "COMMAND");

                    break;

            }


            return base.am_Select(inputArgs);
        }