cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Upper case constraint for WTPart name (and number)?

sdickinson
Newbie

Upper case constraint for WTPart name (and number)?

Is it possible to force the value of a WTPart name to always be upper case? e.g if the user enters a value for name in lower case then it is automatically converted to upper case.

Thanks in advance,

Sam

3 REPLIES 3

Upper case constraint for WTPart name (and number)?

It should be possible to do this with a listener and I doubt that the
user will notice. On create or rename event, you can simple convert the
name to an uppercase. You will need to put in a check to see if it
already in upper case since changing it will issue another rename event.
The team name may show evidence of the original name however.


RE: Upper case constraint for WTPart name (and number)?

Thanks to everyone who responded... here's a summary.

PTC Technical Support answer - The requested functionality is not possible. The solution is to submit an enhancement request.

Everyone else's answers: -

  • Use a listener (this is the suggestion that I followed). In fact you need 2 listeners, one for CREATE and one for RENAME and they both need to check the name isn't already upper case otherwise you can get into and endless loop. Works perfectly!
  • Use JavaScript in the HTML page. Nice elegant idea but unfortunately it doesn't catch the cases where parts are created through BOM import from a spreadsheet or through the PSE.
Thanks again fro your help.

Re: Upper case constraint for WTPart name (and number)?

I added a product idea, since I believe that this kind of functionality should be configuration and not programming a listener.

Please vote for my idea.

Allow constraints on name attribute: upper/lower case, picklists

Announcements