@@ -85,7 +85,12 @@ public ExperimentRunListView(UserSchema schema, QuerySettings settings, @NotNull
8585
8686 public static QuerySettings getRunListQuerySettings (UserSchema schema , ViewContext model , String tableName , boolean allowCustomizations )
8787 {
88- QuerySettings settings = schema .getSettings (model , tableName , tableName );
88+ return getRunListQuerySettings (schema , model , tableName , null , allowCustomizations );
89+ }
90+
91+ public static QuerySettings getRunListQuerySettings (UserSchema schema , ViewContext model , String tableName , @ Nullable String dataRegionName , boolean allowCustomizations )
92+ {
93+ QuerySettings settings = schema .getSettings (model , dataRegionName != null ? dataRegionName : tableName , tableName );
8994 settings .getQueryDef (schema );
9095 settings .setBaseSort (new Sort ("-RowId" ));
9196 settings .setAllowChooseView (allowCustomizations );
@@ -107,6 +112,11 @@ protected void renderHeaderView(HttpServletRequest request, HttpServletResponse
107112 }
108113
109114 public static ExperimentRunListView createView (ViewContext model , ExperimentRunType selectedType , boolean allowCustomizations )
115+ {
116+ return createView (model , selectedType , null , allowCustomizations );
117+ }
118+
119+ public static ExperimentRunListView createView (ViewContext model , ExperimentRunType selectedType , @ Nullable String dataRegionName , boolean allowCustomizations )
110120 {
111121 UserSchema schema = QueryService .get ().getUserSchema (model .getUser (), model .getContainer (), selectedType .getSchemaName ());
112122 if (schema == null )
@@ -115,7 +125,8 @@ public static ExperimentRunListView createView(ViewContext model, ExperimentRunT
115125 selectedType = ExperimentRunType .ALL_RUNS_TYPE ;
116126 schema = QueryService .get ().getUserSchema (model .getUser (), model .getContainer (), selectedType .getSchemaName ());
117127 }
118- return new ExperimentRunListView (schema , getRunListQuerySettings (schema , model , selectedType .getTableName (), allowCustomizations ), selectedType );
128+ String tableName = selectedType .getTableName ();
129+ return new ExperimentRunListView (schema , getRunListQuerySettings (schema , model , tableName , dataRegionName , allowCustomizations ), selectedType );
119130 }
120131
121132 public void setShowUploadAssayRunsButton (boolean showUploadAssayRunsButton )
0 commit comments