Datagrid not writing to the database

After auto generating the screens from a database, I did convert the <table> in a browse view to <datagrid>.

Unfortunately this step does not add the needed attribute
property
in the <columns><column …

after adding this attribute I see and can edit the data, but the records are not written to the database.

What do I have to do to get the data saved ?

Thank you for your help

Hello,

In the screen creation dialog, you can change table type to DataGrid, TreeTable, etc.

For the DataGrid inline editor, you can subscribe to EditorPostCommitEvent and there commit the record:

@Autowired
private DataManager dataManager;

@Subscribe("ordersTable")
public void onOrdersTableEditorPostCommit(DataGrid.EditorPostCommitEvent<Order> event) {
    dataManager.save(event.getItem());
}