I trying to get he UI to refresh the displaying table, when the content of the underlying Container is changed.
I have tried
- markDirty
- markAsDirtyRecursive
- refreshRowCache
but none of these are working and it seems the only way to get a refresh done is to do
mytable.setContainerDataSource(mytable.getContainerDataSource());
but this seems to be more costly as this method reset many items that shouldn’t be reset.
here is my code below
SQLContainer containerDataSource = (SQLContainer) mytable.getContainerDataSource();
containerDataSource.addContainerFilter(new Compare.Equal("Field_A", 3));
mytable.setContainerDataSource(containerDataSource );
any help would be great