Skip to content

Commit 5378d3c

Browse files
committed
show alert if feature table fails to load
1 parent d592059 commit 5378d3c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/java/com/esri/samples/featurelayers/statistical_query_group_and_sort/StatisticalQueryGroupAndSortController.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,8 @@ public void initialize() {
8484
.toList()).get(0).setGrouping(true);
8585
orderByTableView.getItems().add(new OrderByField(new QueryParameters.OrderBy("SUB_REGION", QueryParameters.SortOrder
8686
.ASCENDING)));
87+
} else {
88+
new Alert(Alert.AlertType.ERROR, "Failed to load feature table").show();
8789
}
8890
});
8991
}

0 commit comments

Comments
 (0)