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
Version: Windchill 12.1
Use Case: Good day I am a newbie and I am trying to create a new attribute under "Type and Attribute Management Utility" where it has multiple values in one line. For example, it must read XXX-XXXX-XXXX-XX-XX when I run a report and the input when creating a new part must have 5 blocks(fields) in a row separated by a dash. Please give suggestions.
Description:
Good day
I am a newbie and I am trying to create a new attribute under "Type and Attribute Management Utility" where it has multiple values in one line. For example, it must read XXX-XXXX-XXXX-XX-XX when I run a report and the input when creating a new part must have 5 blocks(fields) in a row separated by a dash.
Please give suggestions.
Hello @Markh74,
Thank you for your question.
Could you please share what you’ve tried so far and the outcomes?
Feel free to include any additional information that might be relevant and assist others in guiding you. Adding screenshots can also help us better understand what you’re trying to achieve.
Regards,
Vivek N
Community Moderation Team.
Hi @Markh74
You can try to use a constraint String format for your String attribute or Regular Expression
try String format syntax as CCC-CCCC-CCCC-CC-CC
or
Regular expression syntax as ...-....-....-..-..
PetrH
You gave a pattern of XXX-XXXX-XXXX-XX-XX
I have two questions:
Either way I'd use a regex constraint as @HelesicPetr has already mentioned.
FYI String Format constraint is a holdover from previous Windchill versions. PTC recommends using Regex for new constraints.