Are there any non-editable presentation?
Hi,
I need a text area presentation for a custom work item attribute that is only editable programmatically but not through web or RTC client UI. Are there any built in presentation for this? Thanks, |
11 answers
Why not using readOnly capabilities of the fields?
|
Hi Philippe,
I set readonly property of the presentation "true". But I can still edit the workitem. <section id="javaDeployRequestPresentation.section.scripts"> |
Hi Baris,
Please replace "readonly" attribute by "readOnly" with an uppercase "O" and let me know. Attributes in XML are by default case sensitive. Kind regards |
I tried upper case "O" but still it is not working in my client.
|
Baris,
Sorry I was wrong. readonly attribute in your case doesn't take any uppercase on the "o". Checking your snipped xml I realized that you were trying to make "read only" and HTML field. I have the feelinthat neither an HTML field or a Description field can be set to read only. I have submitted a WI to understand the situation: https://jazz.net/jazz/web/projects/Rational%20Team%20Concert#action=com.ibm.team.workitem.viewWorkItem&id=155816 |
It can be HTML, text area, string or anything. The only thing I need is a non-editable attribute by gui. I will write to it in AttributePart extension.
Thanks, |
It can be HTML, text area, string or anything. The only thing I need is a non-editable attribute by gui. I will write to it in AttributePart extension. Add a Simple Text field. Give permission to no process role. When ever you want to edit this field, assign permission to the role you have (administrator for example) and modify the text |
Hi, thanks for the answer,
How can I give permission to no-process role? I will edit the field programmaticially in client plugin. If I can give permission to no-process role? Do you think it will work? Thanks, |
Hi,
When I try "text" instead of HTML, and set the read only attribute "true", my problem solved. For your information, |
It can be HTML, text area, string or anything. The only thing I need is a non-editable attribute by gui. I will write to it in AttributePart extension. Baris, As it is mentioned in https://jazz.net/jazz/web/projects/Rational%20Team%20Concert#action=com.ibm.team.workitem.viewWorkItem&id=155816 this problem seems to be resolved in RTC 3.0 regarding the HTML field. Did you give a try? |
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.