Hi,
Can you please help me with an equivalent method in Cuba 7?
myDs.addCollectionChangeListener(e -> {
e.getOperation();
});
Regards,
-n
Hi,
Can you please help me with an equivalent method in Cuba 7?
myDs.addCollectionChangeListener(e -> {
e.getOperation();
});
Regards,
-n
Have a look at this page:
https://doc.cuba-platform.com/manual-7.1/gui_collection_container.html
There’s an example of subscribing to a data container event near the bottom.
@Subscribe(id = "customersDc", target = Target.DATA_CONTAINER)
private void onCustomersDcCollectionChange(
CollectionContainer.CollectionChangeEvent<Customer> event) {
CollectionChangeType changeType = event.getChangeType();
Collection<? extends Customer> changes = event.getChanges();
// ...
}