{"id":567,"date":"2019-12-05T10:48:13","date_gmt":"2019-12-05T10:48:13","guid":{"rendered":"https:\/\/sdf-docs.mansystems.com\/docs\/acr-rules\/reliability\/associations-with-delete-behaviour-should-have-error-message\/"},"modified":"2020-03-20T08:44:58","modified_gmt":"2020-03-20T08:44:58","slug":"associationerrormessage","status":"publish","type":"docs","link":"https:\/\/sdf-docs.clevr.com\/?docs=acr-rules\/reliability\/associationerrormessage","title":{"rendered":"Delete behaviour should have error message if blue"},"content":{"rendered":"\n<p style=\"text-align:center\">Introduced in version: 1.3 (29 Jan 2020)<\/p>\n\n\n\n<p>Only applies to associations where the delete behavior is set to &#8220;delete only if not associated with&#8221; (see screenshot below). These associations are colored blue in Mendix Studio. <\/p>\n\n\n\n<p>The error message is there to help the user understand why a delete is not allowed. Without it, users might think the system is not behaving correctly.<\/p>\n\n\n\n<p><strong>Noncompliant example:<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"773\" height=\"701\" src=\"https:\/\/sdf-docs.clevr.com\/wp-content\/uploads\/2019\/12\/image.png\" alt=\"\" class=\"wp-image-569\" srcset=\"https:\/\/sdf-docs.clevr.com\/wp-content\/uploads\/2019\/12\/image.png 773w, https:\/\/sdf-docs.clevr.com\/wp-content\/uploads\/2019\/12\/image-480x435.png 480w\" sizes=\"(min-width: 0px) and (max-width: 480px) 480px, (min-width: 481px) 773px, 100vw\" \/><\/figure>\n\n\n\n<p><strong>Compliant example<\/strong>:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"776\" height=\"703\" src=\"https:\/\/sdf-docs.clevr.com\/wp-content\/uploads\/2020\/01\/image-46.png\" alt=\"\" class=\"wp-image-962\" srcset=\"https:\/\/sdf-docs.clevr.com\/wp-content\/uploads\/2020\/01\/image-46.png 776w, https:\/\/sdf-docs.clevr.com\/wp-content\/uploads\/2020\/01\/image-46-480x435.png 480w\" sizes=\"(min-width: 0px) and (max-width: 480px) 480px, (min-width: 481px) 776px, 100vw\" \/><\/figure>\n","protected":false},"featured_media":0,"parent":97,"menu_order":5,"comment_status":"open","ping_status":"closed","template":"","doc_tag":[],"class_list":["post-567","docs","type-docs","status-publish","hentry"],"comment_count":0,"_links":{"self":[{"href":"https:\/\/sdf-docs.clevr.com\/index.php?rest_route=\/wp\/v2\/docs\/567"}],"collection":[{"href":"https:\/\/sdf-docs.clevr.com\/index.php?rest_route=\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/sdf-docs.clevr.com\/index.php?rest_route=\/wp\/v2\/types\/docs"}],"replies":[{"embeddable":true,"href":"https:\/\/sdf-docs.clevr.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=567"}],"version-history":[{"count":6,"href":"https:\/\/sdf-docs.clevr.com\/index.php?rest_route=\/wp\/v2\/docs\/567\/revisions"}],"predecessor-version":[{"id":966,"href":"https:\/\/sdf-docs.clevr.com\/index.php?rest_route=\/wp\/v2\/docs\/567\/revisions\/966"}],"up":[{"embeddable":true,"href":"https:\/\/sdf-docs.clevr.com\/index.php?rest_route=\/wp\/v2\/docs\/97"}],"next":[{"title":"Empty variables should not be used in actions that throw null pointer exception","link":"https:\/\/sdf-docs.clevr.com\/?docs=acr-rules\/reliability\/emptyvariableaction","href":"https:\/\/sdf-docs.clevr.com\/index.php?rest_route=\/wp\/v2\/docs\/795"}],"prev":[{"title":"Day of year should not be used in parse\/format date time functions","link":"https:\/\/sdf-docs.clevr.com\/?docs=acr-rules\/reliability\/dayofyear","href":"https:\/\/sdf-docs.clevr.com\/index.php?rest_route=\/wp\/v2\/docs\/1174"}],"wp:attachment":[{"href":"https:\/\/sdf-docs.clevr.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=567"}],"wp:term":[{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/sdf-docs.clevr.com\/index.php?rest_route=%2Fwp%2Fv2%2Fdoc_tag&post=567"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}