Hi,
I have the next code (in PaymentEdit screen, Transaction - Payment = Many-to-many association):
lookupPickerField.addValueChangeListener(e -> {
Transaction t = e.getValue();
if (t != null) {
transactionsDs.addItem(t);
t.setActive(false);
t.setStatus(TransactionStatusEnum.Paid);
// transactionsDs.getItem().setActive(false);
// transactionsDs.getItem().setStatus(TransactionStatusEnum.Paid);
}
});
Why
t.
works and transactionsDs.getItem()
doesn’t work?