Skip to content

Commit

Permalink
Filtering now works on custom table views
Browse files Browse the repository at this point in the history
  • Loading branch information
Aklakan committed Oct 13, 2023
1 parent 4ada875 commit 16df498
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -326,14 +326,15 @@ public void refreshTable() {
GridContextMenu<Binding> cxtMenu = tableGrid.addContextMenu();

cxtMenu.addItem("Show Query", ev -> {
// Extract the query from the underlying DataProviderSparqlBinding
String queryStr = Unwrappable.unwrap(tableGrid.getDataProvider(), DataProviderSparqlBinding.class, true).get().getRelation().toQuery().toString();
ConfirmDialog dlg = ConfirmDialogUtils.info("Query" , queryStr, "Ok");
dlg.setWidth("50%");
dlg.setHeight("50%");
dlg.open();
});

DataProviderUtils.wrapWithErrorHandler(tableGrid);
// DataProviderUtils.wrapWithErrorHandler(tableGrid);
tableDiv.removeAll();
tableDiv.add(tableGrid);
}
Expand All @@ -357,7 +358,7 @@ public void showShaclUploadDialog() {
RdfDataSource dataSource = dataProvider.getDataSource();
DataRetriever dataRetriever = VaadinShaclGridUtils.setupRetriever(dataSource, shaclModel);
dataProvider.setDataRetriever(dataRetriever);
System.out.println("TABLE REFRESH");
// System.out.println("TABLE REFRESH");

ShTemplateRegistry newTemplates = VaadinShaclGridUtils.loadTemplates(shaclModel);
templates.clear();
Expand Down

0 comments on commit 16df498

Please sign in to comment.