Calculate the total in the table

How to display total price of price column into text field?

Hi @neo.pro.200x6 ,
You can to inject textField, subscribe CollectionChangeEvent event and make a calculation of the total price there
For example:

@Inject
private TextField<...> totalPriceField;
@Subscribe(id = "productsDc", target = Target.DATA_CONTAINER)
    public void onProductsDcCollectionChange(CollectionContainer.CollectionChangeEvent<Product> event) {
        totalPriceField.setValue(...);
    }

https://doc.cuba-platform.com/manual-7.2/manual.html#gui_collection_container