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

Community Tip - Visit the PTCooler (the community lounge) to get to know your fellow community members and check out some of Dale's Friday Humor posts! X

Provide method to set the display of string parameters at the point of display (tables, notes, etc.) to be "UPPER CASE", "Title Case", "Sentence case" or "lower case", independent from how the string is stored.

JeffAngelo
1-Newbie

Provide method to set the display of string parameters at the point of display (tables, notes, etc.) to be "UPPER CASE", "Title Case", "Sentence case" or "lower case", independent from how the string is stored.

Rather than relying on the user to enter string parameters using a specific case (UPPER, lower, Title, or Sentence) and then always displaying the parameter string as enterd, instead let the user specify the desired display style when the parameter is used. For example; use a suffix (U=UPPERCASE, L=lowercase, T=Title case, S= Sentence case and no suffix = use as entered, a.k.a. MiXedCase). The suffix could be similar to entering a session ID number. For example; &parameter_name:3,T (meaning show the value of parameter_name from the model with session ID 3 and diplay the string in title case. So if the value as stored is "This is a test sTring" then:

  • &parameter_name:3,T  would be displayed as "This Is A Test String"
  • &parameter_name:3,U would be displayed as "THIS IS A TEST STRING"
  • &parameter_name:3,S would be displayed as "This is a test string"
  • &parameter_name:3,L would be displayed as "this is a test string"
  • &parameter_name:3 would be displayed as "This is a test sTring"

Having this capability would allow more flexibility and more control over the display of parameter strings.


This thread is inactive and closed by the PTC Community Management Team. If you would like to provide a reply and re-open this thread, please notify the moderator and reference the thread. You may also use "Start a topic" button to ask a new question. Please be sure to include what version of the PTC product you are using so another community member knowledgeable about your version may be able to assist.
1 REPLY 1
TomU
23-Emerald IV
(To:JeffAngelo)

Fascinating idea.  I'm not sure the exact syntax makes sense.  It might be better to use the existing form for decimal display. For example: &parameter[U]

It would also be nice to have these available as actual commands that can be used in relations. Something like this: UPPER(<param_name>)

(Similar to these: http://help.ptc.com/creo_hc/creo30_pma_hc/usascii/#page/pma/fundamentals/fund_seven_sub/Operators_and_Functions_for_Stri…)

Top Tags