Hi, how could I add an OK button for this tutorial Development beyond CRUD · aleksey-stukalov/workshop Wiki · GitHub, after this:
- Let’s implement the onBtnNewStatusClick method, that was created by the Studio:
public void onBtnNewStatusClick(Component source) {
Order selectedItem = ordersDs.getItem();
if (selectedItem != null) {
selectedItem.setStatus(OrderStatus.NEW);
ordersDs.commit();
}
}
Because this code works setting the order to “NEW”, but if I close the order browser, the changes are not saved.
Thank you.