Hello all,
when I try to use inline editing for an Entity in a Datagrid, the save button does not save the changes.
Thanks in advance!
Hello all,
when I try to use inline editing for an Entity in a Datagrid, the save button does not save the changes.
Thanks in advance!
Hi Mika
If you check your code editable="true"
you see the snake line
I see this as an indicator, that your loader is readonly.
Can you check your line
<loader id="testEntitiesDL" readOnly="false">
I think this is set to true in your case, correct ?
Regards
Felix
I changed the line but the problem the problem still occurs.
Hi Mika
https://docs.jmix.io/jmix/flow-ui/vc/components/dataGrid.html#auto-save
@Subscribe(id = "usersDc", target = Target.DATA_CONTAINER)
public void onUsersDcItemPropertyChange1(final InstanceContainer.ItemPropertyChangeEvent<User> event) {
dataContext.save();
}
If you add a Testproject, it would be easier to help
Best regards
Felix