Permissions - and resetting a presentation that is protected
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 ?
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
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:
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 ?
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.
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.