How to check attribute's behaviour (mandatory or not mandatory).
Hi,
|
Accepted answer
An attribute can be read-only based on the values of other attributes during the save, so I doubt that you can determine whether it is read-only when in the editor.
Ralph Schoon selected this answer as the correct answer
Comments
Vignesh ramamoorthy Muniyandy
commented Jul 17 '17, 9:58 a.m.
Hi,
Donald Nong
commented Jul 19 '17, 2:27 a.m.
You completely missed the point. An attribute can be deemed as read-only after you submit the data to the server. If the server detects that you are trying to modify such an attribute, it will refuse and return an error. There is no simple way you can find this out beforehand.
Vignesh ramamoorthy Muniyandy
commented Jul 25 '17, 11:50 p.m.
Hi Donald,
1
Donald Nong
commented Jul 25 '17, 11:59 p.m.
Try to avoid doing something that brings no or little benefit. If the logic is on the server side, there is really no need for another "check". If an attribute is mandatory but has no value during the save, the save operation will fail and an error is returned to the client.
|
One other answer
Ralph Schoon (63.5k●3●36●46)
| answered Jul 26 '17, 2:52 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER edited Jul 26 '17, 2:56 a.m. You can determine that in the Java Server API, but not with attribute customization (at least not with any published API). See https://rsjazz.wordpress.com/2015/08/07/a-custom-condition-to-make-attributes-required-or-read-only-by-role-version-2/
|
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.