It's all about the answers!

Ask a question

Permissions - and resetting a presentation that is protected


Steve Woodbridge (1352326) | asked Oct 23 '10, 7:35 p.m.
I set up permission on a specific field that is comprised of Yes and No radio buttons. So as a developer I shouldn't be able to update it (whereas the Team Lead WOULD be able to). Also, the default of the field is not set to Yes or No. So a person has to purposely select the Yes or No.

During my investigation, I found that even if I do not access to update the specific attribute, I can still select Yes or No buttons. But when I try to save the Work Item, it won't save. This is GOOD, because it shows the field/attribute was properly protected.

The problem is that the field does NOT reset itself to a non-selected state. So I cannot save the Work Item and would have to start all over again. This could be very aggravating for the customer if they had to cancel out and re-enter their information again.

Is there a way to make the field/attribute DISPLAY if a person does not have access to update it ? OR a way to may the field reset when the permissions error is triggered ?

2 answers



permanent link
Geoffrey Clemm (30.1k33035) | answered Oct 24 '10, 3:05 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
You should be able to make a field reset with the "revert" action, but
there is a bug there (work item 136972). You can work around that bug
by deleting the editor for that workitem, and opening it again.

WRT making a field be read-only in the GUI based on a dynamic
computation like this, I've submitted work item 137976 for that. If
there currently is a way to do so, I'll close that work item.

Cheers,
Geoff

On 10/23/2010 7:37 PM, sgw wrote:
I set up permission on a specific field that is comprised of Yes and
No radio buttons. So as a developer I shouldn't be able to update it
(whereas the Team Lead WOULD be able to). Also, the default of the
field is not set to Yes or No. So a
person has to purposely select the Yes or No.

During my investigation, I found that even if I do not access to
update the specific attribute, I can still select Yes or No buttons.
But when I try to save the Work Item, it won't save. This is GOOD,
because it shows the field/attribute was properly protected.

The problem is that the field does NOT reset itself to a non-selected
state. So I cannot save the Work Item and would have to start all
over again. This could be very aggravating for the customer if they
had to cancel out and re-enter their information again.

Is there a way to make the field/attribute DISPLAY if a person does
not have access to update it ? OR a way to may the field reset when
the permissions error is triggered ?

permanent link
Steve Woodbridge (1352326) | answered Nov 04 '10, 10:01 p.m.
Thanks. I came up with a workaround. Rather than yes/no radio buttons, I created an Enumeration with 3 values :

Select Value
Yes
No

I set the Default literal and Unassigned literal to "Select Value"

This way, if a person has set the value to Yes or No ... and they don't have permission to change that field, they can just re-select the "Select Value" and they will be able to save the Work Item - keeping all the other information they had just entered.

Your answer


Register or to post 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.