If an object cannot be deleted due to an association having the “Delete ‘MyEntity’ object only if it is not associated...” behaviour set, an error message can be displayed, for example:
“This Book cannot be deleted because it contains one or more Pages.”
It would be very helpful, however, if we could tailor the message using a placeholder (like $currentobject) so that we can tell the user exactly which object caused the problem, for example, using the message:
“The Book with title ‘{$CurrentObject/title}’ cannot be deleted because it contains one or more Pages.”
would give the improved error:
“The Book with title ‘The Jungle Book’ cannot be deleted because it contains one or more Pages.”