How can I, in a controller function, set a custom error message that will be displayed in the Bootstrap theme list view page. If for instance a user tries to delete a row that is not allowed to be deleted he needs to be informed that the deletion has failed.
With the datagrid theme, such a message can be set using set_lang_string( 'delete_error_message',';My error message '), but this does not work in bootstrap theme.