It's all about the answers!

Ask a question

Controlling editor presentation in work items


Steve Francisco (26139) | asked Apr 17 '09, 11:23 p.m.
I'd like finer control of how controls are displayed in my editor presentations. It seems like the tools are there but I don't know how to control some things. For example, I'd like a custom attribute for someone to enter a url in. I set it up as a String type (or smallString even), and when displayed in the editor it shows a large text area. I'd like it to display a single line entry field instead, but am not sure how to adjust that. I expect that I just need to know what key/value pair to set in the Presentation entry, but I don't know what options there are.

Another example is that I want people to enter a decimal number (like 1.25) but I don't see a "float" type (only integer and long). How do I go about adding custom types and attributes like that? Adding enumeration types seems to work nicely but I don't see a way to do other new types, or add associated behavior to them.

4 answers



permanent link
Jakub Jurkiewicz (59632) | answered Apr 20 '09, 5:20 a.m.
I'd like finer control of how controls are displayed in my editor presentations. It seems like the tools are there but I don't know how to control some things. For example, I'd like a custom attribute for someone to enter a url in. I set it up as a String type (or smallString even), and when displayed in the editor it shows a large text area. I'd like it to display a single line entry field instead, but am not sure how to adjust that. I expect that I just need to know what key/value pair to set in the Presentation entry, but I don't know what options there are.

Another example is that I want people to enter a decimal number (like 1.25) but I don't see a "float" type (only integer and long). How do I go about adding custom types and attributes like that? Adding enumeration types seems to work nicely but I don't see a way to do other new types, or add associated behavior to them.


Hello,

Please have a look at the followig document concerning work items customization: https://jazz.net/learn/LearnItem.jsp?href=content/docs/work-items-cust/index.html - you will find there list of possible types of custom attributes.
I just tried and I was able to create smallString attribute - in the work item editor it appeared as a small edit box.
Float attributes are not supported for custom attributes - I found the following work item addressing this: https://jazz.net/jazz/web/projects/Rational%20Team%20Concert#action=com.ibm.team.workitem.viewWorkItem&id=61040 - please add your comments and/or subscribe to it to get informed about any updates.

kind regards,
Jakub

permanent link
Daniel Cox (4261168) | answered Apr 23 '09, 5:45 p.m.
Unfortunately the small text boxes show up only in the rich UI, not the web UI. No matter what you do you get a textarea in the web UI.

permanent link
Jakub Jurkiewicz (59632) | answered Apr 24 '09, 5:14 a.m.
Unfortunately the small text boxes show up only in the rich UI, not the web UI. No matter what you do you get a textarea in the web UI.

Maybe a Work Item should be submitted to address this?

kind regards,
Jakub

permanent link
Daniel Cox (4261168) | answered Apr 24 '09, 9:12 a.m.
Maybe you could lobby for it to be in 2.0 :)

https://jazz.net/jazz/web/projects/Rational%20Team%20Concert#action=com.ibm.team.workitem.viewWorkItem&id=58738

Your answer


Register or to post your answer.