[Logo] Track+ Support Forum - Support for Track+
  [Search] Search   [Recent Topics] Recent Topics   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
length of Title(synopsis) field  XML
Forum Index » Support
Author Message
hsonmezler



Joined: 05/02/2010 11:06:11
Messages: 5
Offline

Can i increase the length of Title(synopsis) field from 80 to 200?
Track+ Support 3



Joined: 11/08/2006 14:43:59
Messages: 422
Offline

You can create a custom field of type "Short text" for title:

At Administration > Customize > Custom fields...
1. Set a default value for the actual system field called Synopsis because it is a required field and should have a value even if it is removed from the issue edit forms. Eventually if it is the case you can rename the label (not the name) in to avoid having two fields with the same label "Title".
2. Create a new custom field of type "Short text" called Title.
At Administration > Customize > Custom forms > Form configuration...
3. Remove the original Synopsis field and put the new Title field in the differnt issue editing forms (screens).

The problem is that in some places the Synopsis field appears hardcoded, for example in some JasperReports. You should change than the report templates with the ReportStudio (http://www.trackplus.com/reportstudio.html)
hsonmezler



Joined: 05/02/2010 11:06:11
Messages: 5
Offline

Thanks..

I've defined a custom field with a length of 200. How do I set the length of the Input Box? I've attached a screenshot.


 Filename inputlength.png [Disk] Download
 Description
 Filesize 2 Kbytes
 Downloaded:  1 time(s)

Track+ Support 3



Joined: 11/08/2006 14:43:59
Messages: 422
Offline

Edit the following template <TomcatPath>\webapps\track\WEB-INF\classes\plugins\fieldType\templates\textBox.ftl and add the size attribute to the textField:

<#assign s=JspTaglibs["/WEB-INF/tlds/struts2/struts-tags.tld"]>
<@s.if test="invisible">
 
</@s.if>
<@s.else>
<@s.textfield name="${nameMapping}" theme="simple" size="60"
disabled="readonly" title="${tooltip}"/>
</@s.else>

A Tomcat restart is probably needed.
The disadvantage of this solution is that this template refers to all text boxes. It means the field called "Build" and any further custom text box will have the same length. But if you do not use the Build field (remove it from the forms) it could be a solution for you.
 
Forum Index » Support
Go to:   
Track+ Issue Tracker. Try Track+ bug tracking software for your project!