I have a dataview with at dataprocessor that connects to a mysql database.
When a record is add to dataview a request is sent to server, row inserted in database and new id returned in response. But the id in dataview is not shown. Only when I select it again.
Can anyone give me a tip on what to do?
After saving in database, id of item is updated but the item itself is not repainted. You can attach handler for onAfterUpdate of dataprocessor and from it call dataview.refresh(id) to repaint item in question.
Solution: attached handler for onAfterInsert of dataprocessor and from it call dataview.refresh() to repaint dataview.
dataview.refresh(id) coused an update call to server and dataview.refresh() did not.