[rt-users] Unique CustomField

2009-09-25 Thread Seth Lake
Would love a way to tag a custom field as requiring a unique, non
duplicate value (such as a serial number or UPC code).

While I'm begging I would also love a way to for capitalization in a
field also (such as a serial number or software license key).

Don't see any such mods on the wiki, anyone know if any of this has been
done before?

Thanks.
___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: sa...@bestpractical.com


Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
Buy a copy at http://rtbook.bestpractical.com


Re: [rt-users] Unique CustomField

2009-09-25 Thread Emmanuel Lacour
On Fri, Sep 25, 2009 at 09:46:41AM -0400, Seth Lake wrote:
 Would love a way to tag a custom field as requiring a unique, non
 duplicate value (such as a serial number or UPC code).
 
 While I'm begging I would also love a way to for capitalization in a
 field also (such as a serial number or software license key).
 
 Don't see any such mods on the wiki, anyone know if any of this has been
 done before?
 

In RT  3.6 (you would better run 3.8), you can define a rules for
customfield using a regexp.

So in your case, you can create an Enter one value CF with a
validation regexp maching your code rules.

___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: sa...@bestpractical.com


Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
Buy a copy at http://rtbook.bestpractical.com


Re: [rt-users] Unique CustomField

2009-09-25 Thread Jerrad Pierce
On Fri, Sep 25, 2009 at 09:46, Seth Lake sl...@bcssi.com wrote:
 While I'm begging I would also love a way to for capitalization in a
 field also (such as a serial number or software license key).
Seems like you could do that with your validation regexp.

 Would love a way to tag a custom field as requiring a unique, non
 duplicate value (such as a serial number or UPC code).
This is a little more complicated, but you might try making use of
experimental RE features allowing you to execute code within your
test expression
-- 
Cambridge Energy Alliance: Save money. Save the planet.
___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: sa...@bestpractical.com


Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
Buy a copy at http://rtbook.bestpractical.com


Re: [rt-users] Unique CustomField

2009-09-25 Thread Emmanuel Lacour
On Fri, Sep 25, 2009 at 04:54:22PM +0200, Emmanuel Lacour wrote:
 On Fri, Sep 25, 2009 at 09:46:41AM -0400, Seth Lake wrote:
  Would love a way to tag a custom field as requiring a unique, non
  duplicate value (such as a serial number or UPC code).
  
  While I'm begging I would also love a way to for capitalization in a
  field also (such as a serial number or software license key).
  
  Don't see any such mods on the wiki, anyone know if any of this has been
  done before?
  
 
 In RT  3.6 (you would better run 3.8), you can define a rules for
 customfield using a regexp.
 
 So in your case, you can create an Enter one value CF with a
 validation regexp maching your code rules.
 


well I re-read your email, and I'm not sure I answered your question ;)

If you wan't that if a user enter a low-case text, save it as uppercase,
you have to modify RT code.

For the unique value, you wan't that if a value was entered for a
ticket, it cannot be used in another ticket? If so, you would have also
to add this check in RT source code ;)

___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: sa...@bestpractical.com


Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
Buy a copy at http://rtbook.bestpractical.com