how to allow editing an attribute (ie. Field) in the first visit to a State but hide it for any subsequent visit to the same state?
Below is a scenario required in an RTC (Work Item) Workflow.
1. To reach the State="In Review By Client", the custom attribute='Date Provided to Client" (type=timestamp) is set to be mandatory.
2. Once saved the Date Provided to Client gets hidden away such that no one can ever update this field.
Is Step #2 possible?
One option is to 'hide' the attribute for all other States except when State="In Review By Client". However, this means that once the workflow returns to this state ("In Review By Client"), the field will become visible again, and also become editable.
1. To reach the State="In Review By Client", the custom attribute='Date Provided to Client" (type=timestamp) is set to be mandatory.
2. Once saved the Date Provided to Client gets hidden away such that no one can ever update this field.
Is Step #2 possible?
One option is to 'hide' the attribute for all other States except when State="In Review By Client". However, this means that once the workflow returns to this state ("In Review By Client"), the field will become visible again, and also become editable.
One answer
In RTC 4.0 you can have dynamic read only attributes, where an attribute cannot be modified if some condition is true. You can see how to do this in the following video:
http://www.youtube.com/watch?v=9g8GHz6CxKQ. You can also read about dynamic read-only attributes here.
This does not hide the attribute, but if keeps it from being editable once it is set.
Comments
Hi, I have installed RTC 4 and i followed the step indicated in the article, i tested it on the rtc client for eclipse and it works, but when I tested on Firefox and Internet explorer doesnt work, do you know why this might be happening?
Nicolas,
I have seen a similar effect with a colleague, where the Eclipse client had a different behavior than the web UI in a similar context. This might be a know defect. Feel free to file a defect here: https://jazz.net/jazz/web/projects/Rational%20Team%20Concert#action=com.ibm.team.workitem.viewWelcome