Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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,

0 votes



11 answers

Permanent link
Why not using readOnly capabilities of the fields?

0 votes


Permanent link
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>

0 votes


Permanent link
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

0 votes


Permanent link
I tried upper case "O" but still it is not working in my client.

0 votes


Permanent link
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

0 votes


Permanent link
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,

0 votes


Permanent link
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

0 votes


Permanent link
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,

0 votes


Permanent link
Hi,
When I try "text" instead of HTML, and set the read only attribute "true", my problem solved.
For your information,

0 votes


Permanent link
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?

0 votes

1–15 items
page 1of 1 pagesof 2 pages

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: Feb 28 '11, 3:43 a.m.

Question was seen: 12,943 times

Last updated: May 08 '15, 1:11 p.m.

Confirmation Cancel Confirm