Hello,
I have an Invoice (entity) nested in Transaction (entity).
In Invoice I defined (and injected) a checkbox.
Now I want to access (get) this checkbox.getValue from TransactionEdit, inside of invoiceDs.addCollectionChangeListener or separate (in addValueChangeListener.).
How can I do that?
I’ve tried to define a new attribute - active (boolean) and connect checkBox to invoiceDs and property active. If I access it in this way I have null pointer exception.
if(event.getItems().get(0).getActive())
The problem is, after (transaction) save, checkbox not remains checked. Should be persistent in database.
Regards,
n