Hi
I have a detail screen that I have used to process two types of transactions, “Work from Anywhere” and “Visit”. The screen’s original title “Work Away Office” is changed according to the user choice. Now, I want to customize the default success message “Work away office saved successfully”… when I click Save button to “Work from Anywhere is Saved Successfully” or “Visit is Saved Successfully” as the case may be. How can I do this?
Hi Mortoza,
You can override the getSaveNotificationText()
of StandardDetailView
to provide your own text for save notification. For example:
public class DepartmentDetailView extends StandardDetailView<Department> {
@Override
protected String getSaveNotificationText() {
return "Saved department " + getEditedEntity().getName();
}
}
Regards,
Konstantin