It's all about the answers!

Ask a question

Are there any non-editable presentation?


Baris Erdemir (1812819) | asked Feb 28 '11, 3:43 a.m.
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



permanent link
Philippe Krief (561155) | answered Feb 28 '11, 6:29 a.m.
JAZZ DEVELOPER
Why not using readOnly capabilities of the fields?

permanent link
Baris Erdemir (1812819) | answered Mar 01 '11, 2:15 a.m.
Hi Philippe,

I set readonly property of the presentation "true". But I can still edit the workitem.

<section id="javaDeployRequestPresentation.section.scripts">

<presentation attributeId="java_deploy_request.service_insertion_scripts" kind="com.ibm.team.workitem.kind.html" label="Service Insertion Scripts">
<property key="readonly" value="true"/>
<property key="labelVisible" value="true"/>
</presentation>
<presentation attributeId="java_deploy_request.exception_insertion_scripts" kind="com.ibm.team.workitem.kind.html" label="Exception Insertion Scripts">
<property key="readonly" value="true"/>
<property key="labelVisible" value="true"/>
</presentation>
<presentation attributeId="java_deploy_request.query_insertion_scripts" kind="com.ibm.team.workitem.kind.html" label="Query Insertion Scripts">
<property key="readonly" value="true"/>
<property key="labelVisible" value="true"/>
</presentation>
</section>

permanent link
Philippe Krief (561155) | answered Mar 01 '11, 3:36 a.m.
JAZZ DEVELOPER
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

permanent link
Baris Erdemir (1812819) | answered Mar 02 '11, 3:20 a.m.
I tried upper case "O" but still it is not working in my client.

permanent link
Philippe Krief (561155) | answered Mar 02 '11, 6:01 p.m.
JAZZ DEVELOPER
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

permanent link
Baris Erdemir (1812819) | answered Mar 04 '11, 3:42 a.m.
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,

permanent link
Uma venkata Lekkala (52519) | answered Mar 05 '11, 2:37 a.m.
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,


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

permanent link
Baris Erdemir (1812819) | answered Mar 07 '11, 3:19 a.m.
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,

permanent link
Baris Erdemir (1812819) | answered Mar 14 '11, 3:19 a.m.
Hi,
When I try "text" instead of HTML, and set the read only attribute "true", my problem solved.
For your information,

permanent link
Philippe Krief (561155) | answered Mar 14 '11, 10:50 a.m.
JAZZ DEVELOPER
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,

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


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.